For the complete documentation index, see llms.txt. This page is also available as Markdown.

Error Reference

Every error, on every endpoint, uses one envelope:

{
  "error": {
    "code": "INSUFFICIENT_FLOAT",
    "message": "issuance would exceed the available partner float",
    "traceId": "9c1f4b7a-2e58-4d03-8a61-5f7c2d9e0b13"
  }
}
Field
Notes

code

Stable, machine-readable. Branch your logic on this, never on message.

message

Human-readable. Wording may change; do not parse it.

traceId

Quote this to us in any support request and we can find the exact call. This is the same value as X-Trace-Id, whether you supplied it or we generated it.

Error codes

HTTP
Code
Meaning
Retry?

400

INVALID_REQUEST

Malformed JSON or failed validation. The message says what failed.

Only after fixing the payload

401

UNAUTHORIZED

Missing, expired, or invalid token.

Yes, after refreshing the token

403

FORBIDDEN_SCOPE

Token lacks the required scope.

No, contact us

403

FORBIDDEN_PRODUCT

That product is not enabled for you.

No, contact us

403

PARTNER_INACTIVE

Your partner account is not active.

No, contact us

404

PRODUCT_NOT_FOUND

Unknown productCode.

No

409

PRODUCT_INACTIVE

Known product, currently disabled.

No, contact us

422

AMOUNT_OUT_OF_BOUNDS

Outside the agreed min/max for the product.

No

422

EXPIRY_OUT_OF_RANGE

expiresAt outside the permitted window.

No

409

DUPLICATE_REQUEST

Idempotency conflict. See Idempotency and Retries.

Only for the in-flight case

409

IDEMPOTENCY_KEY_EXPIRED

Idempotency key reused outside the 24 hour replay window.

Only with a new key

422

INSUFFICIENT_FLOAT

Your outstanding exposure leaves no headroom.

Yes, once float frees up

404

VOUCHER_NOT_FOUND

Unknown issuanceId, or not yours.

No

429

RATE_LIMITED

Too many requests.

Yes, backing off

500

INTERNAL_ERROR

Our side.

Yes, same idempotency key

503

SERVICE_UNAVAILABLE

Our side, temporary.

Yes, same idempotency key

Notes by code

Authentication and access

  • UNAUTHORIZED: request a fresh token and retry. See Authentication.

  • FORBIDDEN_SCOPE: the token does not carry the scope the endpoint requires (vouchers:issue or vouchers:read).

  • FORBIDDEN_PRODUCT: the product is not enabled for your partner account.

  • PARTNER_INACTIVE: your partner account is not active and cannot access the API.

Validation

  • INVALID_REQUEST: includes metadata violations. See Metadata.

  • PRODUCT_NOT_FOUND: the product code is not recognised. Confirm it with List Products.

  • PRODUCT_INACTIVE: the product is recognised but currently disabled.

  • AMOUNT_OUT_OF_BOUNDS: the amount falls outside the product's minimum or maximum. For fixed value products, only the exact value is accepted.

  • EXPIRY_OUT_OF_RANGE: the supplied expiresAt falls outside the permitted window.

Idempotency

  • DUPLICATE_REQUEST: the key was reused with a different body, or with an identical request still in progress. In the in-flight case a Retry-After header is returned.

  • IDEMPOTENCY_KEY_EXPIRED: the key was reused outside the 24 hour replay window. Use a new key to submit the request as a new one.

Limits

  • INSUFFICIENT_FLOAT: issuing this voucher would exceed your available float. Retry once vouchers are redeemed, expire, or fail. See Voucher Statuses.

  • RATE_LIMITED: too many requests in a given period. Back off and retry.

Lookup

  • VOUCHER_NOT_FOUND: the issuanceId does not exist, or does not belong to you. The two cases are indistinguishable by design.

Zapper-side failures

  • INTERNAL_ERROR and SERVICE_UNAVAILABLE: safe to retry with the same idempotency key.

Last updated