Vai al contenuto principale
POST
Invia un nuovo UUID in Idempotency-Key (o clientOperationId; se invii entrambi devono coincidere) e riutilizzalo nei tentativi successivi. Controlla la consegna con Stato del checkout usando checkoutSessionId finché fulfillmentStatus è FULFILLED.
Il playground invia richieste reali e addebita subito il saldo prepagato.

Autorizzazioni

Authorization
string
header
obbligatorio

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

Scopes

rest:orders:write

Access to orders:write REST operations

Intestazioni

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
obbligatorio
clientOperationId
string<uuid>

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

Risposta

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

orderId
string
obbligatorio

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

checkoutSessionId
string
obbligatorio

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

balanceCents
integer
obbligatorio

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

Intervallo richiesto: x >= 0