Saltar al contenido principal
POST
Envía un UUID nuevo en Idempotency-Key (o clientOperationId; si envías ambos deben coincidir) y reutilízalo en reintentos. Consulta Consultar estado del checkout con checkoutSessionId hasta fulfillmentStatus: "FULFILLED".
El playground envía solicitudes reales y descuenta tu saldo prepago de inmediato.

Autorizaciones

Authorization
string
header
requerido

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

Scopes

rest:orders:write

Access to orders:write REST operations

Encabezados

Idempotency-Key
string<uuid>

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

Cuerpo

application/json

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

purchase
object
requerido
clientOperationId
string<uuid>

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

Respuesta

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

orderId
string
requerido

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

checkoutSessionId
string
requerido

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

balanceCents
integer
requerido

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

Rango requerido: x >= 0