Pular para o conteúdo principal
POST
Envie um novo UUID em Idempotency-Key (ou clientOperationId; se enviar ambos, devem ser iguais) e reutilize-o em novas tentativas. Acompanhe a entrega em Status do checkout com checkoutSessionId até fulfillmentStatus: "FULFILLED".
O playground envia requisições reais e debita seu saldo pré-pago imediatamente.

Autorizações

Authorization
string
header
obrigatório

ProxyLayer API key. See the API Overview for key modes and scopes.

Scopes

rest:orders:write

Access to orders:write REST operations

Cabeçalhos

Idempotency-Key
string<uuid>

Optional when clientOperationId is sent in the body; both values must match if supplied. UUID for this purchase.

Corpo

application/json

Purchase payload and optional clientOperationId (required if Idempotency-Key header is omitted).

purchase
object
obrigatório
clientOperationId
string<uuid>

Body alternative to the Idempotency-Key header. One of the two is required; if both are sent, they must match.

Resposta

Paid order ID, checkout session ID, and updated prepaid balance.

orderId
string
obrigatório

Paid order ID. Look it up in GET /api/v1/orders to track delivery.

checkoutSessionId
string
obrigatório

Checkout session ID. Poll GET /api/v1/checkouts/{id} to track delivery.

balanceCents
integer
obrigatório

Remaining prepaid balance in USD cents (on idempotent replays, reflects balance at replay time).

Intervalo obrigatório: x >= 0