Passer au contenu principal
POST
Envoyez un nouvel UUID dans Idempotency-Key (ou clientOperationId ; s’ils sont tous deux présents, ils doivent être identiques) et réutilisez-le en cas de nouvel essai. Suivez la livraison via Vérifier le statut du paiement avec checkoutSessionId jusqu’à fulfillmentStatus: "FULFILLED".
Le playground envoie des requêtes réelles et débite immédiatement votre solde prépayé.

Autorisations

Authorization
string
header
requis

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

Scopes

rest:orders:write

Access to orders:write REST operations

En-têtes

Idempotency-Key
string<uuid>

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

Corps

application/json

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

purchase
object
requis
clientOperationId
string<uuid>

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

Réponse

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

orderId
string
requis

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

checkoutSessionId
string
requis

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

balanceCents
integer
requis

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

Plage requise: x >= 0