Create a checkout

Idempotent on idempotencyKey — a replay returns 200 with the existing checkout.

Authentication

x-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
itemslist of objectsRequired
idempotencyKeystringRequired1-255 characters
expiresInSecondsintegerOptional3600-604800
successUrlstringOptionalformat: "uri"
cancelUrlstringOptionalformat: "uri"
metadatamap from strings to anyOptional

Response

Existing checkout (idempotent replay)

idstringformat: "uuid"
organizationIdstringformat: "uuid"
idempotencyKeystring
priceUsdSnapshotstring
Decimal string, 2dp
acceptedNetworksTokensSnapshotlist of maps from strings to any
matchToleranceBpsSnapshotinteger
refundGasPayerSnapshotenum
expiresAtdatetime
hostedUrlstring
Shareable checkout link
successUrlstring or null
cancelUrlstring or null
statusenum
metadatamap from strings to any or null
lineItemslist of objects
createdAtdatetime
updatedAtdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error