Pular para o conteúdo principal
POST
Cancel a payment

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Organization-Id
string

Tenant organization ID. Optional. The organization context is determined by the credentials you authenticate with; this header does not select or change it.

Idempotency-Key
string
obrigatório

Client-supplied idempotency key, a UUID. Required: a request without it, with a value that is not a UUID, or with the nil UUID (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012.

Parâmetros de caminho

id
string<uuid>
obrigatório

Payment identifier (UUID).

Exemplo:

"123e4567-e89b-12d3-a456-426614174000"

Corpo

application/json
reason
string
obrigatório

Resposta

Bad Request.

  • PBP-0012: Idempotency-Key is missing or is not a UUID.
code
string

Stable, machine-readable domain error code scoped to the emitting service (format: -NNNN).

detail
string

A human-readable explanation specific to this occurrence of the problem.

Exemplo:

"Property foo is required but is missing."

errors
object[] | null

Optional list of individual error details

instance
string<uri>

A URI reference that identifies the specific occurrence of the problem.

Exemplo:

"https://example.com/error-log/abc123"

status
integer<int64>

HTTP status code

Exemplo:

400

title
string

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

Exemplo:

"Bad Request"

type
string<uri>
padrão:about:blank

A URI reference to human-readable documentation for the error.

Exemplo:

"https://example.com/errors/example"

upstream
object

RFC 9457 extension member: the error a proxied third-party provider reported. Absent unless the emitting service explicitly surfaced one.