Get started

Sections

Theme switcher

Check where a gift card order is.

Header Parameters

Authorizationstring

Query Parameters

order_idstring Required

The order-id returned by giftCardRequestApi or paymentLink.

Max length
64

Response

200
Object

Where the order is.

Response Attributes

responseinteger
order-idstring
statusstring
Enum values:
issuedpendingunpaidrefundedcancelledfailed
payment-statusstring

Payment link orders only.

Enum values:
unpaidpaidrefunded
refusedboolean

Payment link orders only. Present and true when our card checks refused the payment after the bank approved it. The payment was cancelled, so the customer wasn't charged.

refusal-reasonstring

Sent with refused: true. postcode_mismatch (billing postcode not matched), no_3ds (3-D Secure not passed) or card_other_account (card already used on another account). Other codes may be added.

messagestring
giftcard-reference-idstring

Issued orders only.

giftcard-urlstring

Issued orders only.

giftcard-face-valuestring

Issued orders only.

currencystring

Issued orders only.

giftcard-expiry-datestring | null

Issued orders only.

issued-atstring

Issued orders only.

400
Object

order_id is missing.

Response Attributes

messagestring

Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.

error-codestring

Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.

errorstring

Alternative error message field used by a subset of endpoints (notably getToken and authentication failures). Integrators should check for both message and error when parsing failure responses.

responseinteger

Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on most error paths; a few auth-layer failures omit it.

401
Object

Authentication failed. The body is {"status": false, "message": ...} with one of: Access denied - token missing (no Authorization: Bearer header), Unauthorized - Invalid or expired token (bad or expired token; tokens live 10 hours), or Token expired - request a new token (Spendstream revoked your tokens). In every case call getToken again.

Response Attributes

messagestring

Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.

error-codestring

Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.

errorstring

Alternative error message field used by a subset of endpoints (notably getToken and authentication failures). Integrators should check for both message and error when parsing failure responses.

responseinteger

Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on most error paths; a few auth-layer failures omit it.

statusboolean
403
Object

Your publisher account has an IP allow-list and the request came from an address that is not on it. The API checks the caller's IP address on every request once a list exists. Ask Spendstream to add the address, or to clear the list if you do not want the restriction. See IP allow-listing in the guide.

Response Attributes

statusboolean
messagestring
404
Object

No order with this order_id was placed by your account.

Response Attributes

messagestring

Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.

error-codestring

Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.

errorstring

Alternative error message field used by a subset of endpoints (notably getToken and authentication failures). Integrators should check for both message and error when parsing failure responses.

responseinteger

Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on most error paths; a few auth-layer failures omit it.

order-idstring
Was this section helpful?

GET

/

Select
1

Response

Was this section helpful?