Orders / API v1
Purchase a card
/api/partner/v1/ordersCreates exactly one card order. partnerReference is the case-sensitive idempotency identity; replay the same body after an ambiguous transport outcome. This operation does not accept or require an Idempotency-Key header. Price is resolved again in the server transaction before charge.
Authorization: Bearer <PARTNER_API_KEY>
Persist partnerReference and sku before sending. Resending with a new reference can create another purchase.
Read the retry guideRequest body application/json
partnerReferencestringrequiredCase-sensitive purchase idempotency identity.
min length: 1 · max length: 100
^[A-Za-z0-9._:-]+$skustringrequiredmin length: 1 · max length: 100
Response
New order or exact replay of the original order.
Cache-Control no-store
dataobjectrequiredShow fields
orderobjectrequiredShow fields
orderobjectrequiredShow fields
orderIdstringrequireduuid
partnerReferencestringrequiredstatusstringrequired"PROCESSING" · "COMPLETED" · "FAILED"
totalMinorintegerrequiredint64 · min: 1 · max: 9007199254740991
currencystringrequired"SAR"
skustringrequiredproductNameArstringrequiredproductNameEnstringrequiredchargedPriceMinorintegerrequiredint64 · min: 1 · max: 9007199254740991
chargedCurrencystringrequired"SAR"
faceValuestring | nullrequiredFrozen original provider denomination when supplied, not the charged SAR price. SKU-only OneCard orders may return null.
faceValueCurrencystring | nullrequiredPaired with faceValue; both fields are null when denomination metadata is unavailable.
min length: 3 · max length: 3
supportReferencestring | nullrequiredpollAfterSecondsinteger | nullrequiredAlways non-null while status is PROCESSING, including manual review.
min: 1
createdAtstringrequireddate-time
updatedAtstringrequireddate-time
completedAtstring | nullrequireddate-time
howToUseArstringrequiredhowToUseEnstringrequiredcredentialsobject | nullrequiredNull until fulfillment completes; populated credentials match OrderCredentials.
Show fields
serialstring | nullrequiredpinstring | nullrequiredusernamestring | nullrequired
replayedbooleanrequired
requestIdstringrequirederrorobject | nullrequirednull