Zum Hauptinhalt springen
POST
Sende eine neue UUID im Header Idempotency-Key (oder clientOperationId; falls beide gesendet werden, müssen sie übereinstimmen) und wiederhole sie bei Fehlern. Prüfe die Bereitstellung über Checkout-Status abrufen mit checkoutSessionId bis fulfillmentStatus: "FULFILLED".
Der Playground sendet echte Anfragen und belastet dein Guthaben sofort.

Autorisierungen

Authorization
string
header
erforderlich

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

Scopes

rest:orders:write

Access to orders:write REST operations

Header

Idempotency-Key
string<uuid>

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

Body

application/json

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

purchase
object
erforderlich
clientOperationId
string<uuid>

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

Antwort

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

orderId
string
erforderlich

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

checkoutSessionId
string
erforderlich

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

balanceCents
integer
erforderlich

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

Erforderlicher Bereich: x >= 0