Guide
Error responses
API errors use the response structure documented by ApiError:
{
"error": "redemption_pin_incorrect",
"description": "The supplied PIN is incorrect.",
"fields": []
}
error is the stable machine-readable contract. Values are lowercase snake_case, match [a-z][a-z0-9_]{0,62}, are never reassigned, and may be extended without a new API version. Clients must tolerate unknown identifiers, branch first on the HTTP status, and use description only for display or diagnostics. Descriptions may change without notice.
Gateway, proxy, OAuth, and provider callback responses may use a standards-owned or provider-owned format instead.
Status selection
| Status | Meaning | Client action |
|---|---|---|
400 Bad Request |
A required value or header is missing, the request shape, type, syntax, length, or format is malformed, or a supplied UUID cannot be resolved in the request context. The identifier is normally bad_request. |
Correct the request before retrying. Multiple invalid fields may be returned together. |
422 Unprocessable Content |
The request is syntactically valid but violates a domain rule. | Branch on error, correct the identified domain condition, then submit a new request. |
409 Conflict |
The request conflicts with the current state, such as a reference already in use, insufficient balance, or an operation that has already changed state. | Refresh relevant state before deciding whether to retry. Do not blindly retry non-idempotent requests. |
429 Too Many Requests |
The client exceeded its request rate. | Respect Retry-After when present and use exponential backoff with jitter. |
500 Internal Server Error |
An unexpected server error occurred. | Retry only when safe, using exponential backoff with jitter. Contact support if it persists. |
503 Service Unavailable |
The service is temporarily unavailable or undergoing maintenance. | Retry only when safe, using Retry-After when present and exponential backoff with jitter. |
When a request is refused because of a business rule or the current state, the response contains one error and an empty fields array. If several conditions prevent the request, the response reports only one of them. By contrast, 400 bad_request responses may list several invalid inputs in fields.
Common error identifiers
These identifiers describe cross-cutting HTTP and platform failures. Endpoint-specific domain identifiers should be preferred when one is documented by the operation. Identifiers marked as reserved are part of the shared API vocabulary but are not currently emitted by public platform operations; clients must not depend on receiving them.
| Identifier | Status | Meaning |
|---|---|---|
server_error |
500 | An unexpected server-side error occurred. Retry only when it is safe to repeat the operation. |
unauthorised |
401 | Authentication is missing or invalid. |
access_token_expired |
401 | Reserved. An explicit expired access-token response. Current authentication failures use unauthorised. |
access_token_revoked |
401 | Reserved. An explicit revoked access-token response. Current authentication failures use unauthorised. |
insufficient_scopes |
403 | Reserved. An explicit missing-scope response. Current scope failures use forbidden. |
forbidden |
403 | The authenticated principal is not permitted to perform the operation. |
bad_request |
400 | A required value or header is missing, or the request structure, type, syntax, length, or format is malformed. |
unprocessable_content |
422 | Reserved. The request is well-formed but cannot be processed as instructed and no more specific domain identifier is available. Current domain refusals use specific identifiers. |
method_not_allowed |
405 | The endpoint does not support the requested HTTP method. |
rate_limit_exceeded |
429 | The client exceeded its request rate. Respect Retry-After when present before retrying. |
not_found |
404 | The requested resource does not exist or is not visible to the authenticated principal. |
conflict |
409 | The request encountered a generic state or concurrency conflict and no more specific domain identifier is available. |
unsupported_api_version |
400 | The requested API version is unsupported or malformed. |
deprecated_endpoint |
400 | Reserved. The requested endpoint is no longer available in the selected API version. |
server_maintenance |
503 | The service is temporarily unavailable for maintenance. Retry only when safe, respecting Retry-After when present. |
Domain error catalog
Loyalty
| Identifier | Status | Meaning |
|---|---|---|
redemption_pin_incorrect |
422 | The well-formed customer redemption PIN is incorrect. |
staff_pin_incorrect |
422 | The well-formed staff PIN is incorrect. |
insufficient_balance |
409 | Current balance is insufficient for the requested mutation. |
minimum_redemption_not_met |
422 | The requested amount is below the configured minimum. |
merchant_reference_in_use |
409 | The merchant reference is already assigned to another operation. |
loyalty_program_redemption_unsupported |
422 | The selected program does not support redemption. |
loyalty_program_top_up_unsupported |
422 | The selected program does not support top-up. |
top_up_amount_not_permitted |
422 | The amount is outside the stored-value program's permitted top-up values. |
operation_already_reversed |
409 | The operation has already been reversed. |
redemption_expired |
409 | The redeemed value has expired and cannot be restored. |
loyalty_balance_operation_not_found |
422 | No operation matches the supplied operation identifier. |
loyalty_program_archived |
409 | The program is archived. |
loyalty_balance_expired |
409 | The funds, vouchers, stamps or points being redeemed have expired. |
loyalty_program_unavailable |
409 | The program is outside its availability window for adding benefits. |
loyalty_program_customer_tier_ineligible |
422 | The customer tier is not eligible for top-up or issuance. |
voucher_expired |
409 | The program cannot issue vouchers with an expiry after their start time and the current time. |
voucher_not_yet_usable |
409 | The batch's issued start time has not arrived. |
loyalty_program_outlet_ineligible |
422 | The selected outlet is not permitted by the current program. |
voucher_minimum_spend_not_met |
422 | Supplied eligible spend is below the current program minimum. |
voucher_saving_exceeds_eligible_spend |
422 | Actual saving exceeds supplied remaining eligible spend. |
voucher_saving_exceeds_benefit |
422 | Actual saving exceeds the issued fixed value, rounded percentage benefit or percentage cap. |
loyalty_program_exchange_unsupported |
422 | The selected balance is not a quantity pool. |
quantity_exchange_option_unavailable |
409 | The selected reward option is missing, changed destination during exchange or cannot resolve to a voucher program of the same merchant and currency. Refresh the balance before selecting an option again. |
quantity_redemption_option_unavailable |
409 | The selected direct-discount option is no longer present in the current quantity program. Refresh the balance before choosing again. |
quantity_minimum_spend_not_met |
422 | Supplied eligible spend is below the selected direct option minimum. |
quantity_saving_exceeds_eligible_spend |
422 | Actual quantity-discount saving exceeds supplied remaining eligible spend. |
quantity_saving_exceeds_benefit |
422 | Actual quantity-discount saving exceeds the fixed or rounded/capped percentage benefit. |
loyalty_program_revocation_unsupported |
422 | The selected program does not support quantity revocation. |
voucher_issuance_limit_exceeded |
409 | Requested quantity exceeds remaining program or customer lifetime issuance capacity. |
Orders
| Identifier | Status | Meaning |
|---|---|---|
source_reference_reused |
409 | An immutable capture already exists with different purchase facts. |
Customer and business state
| Identifier | Status | Meaning |
|---|---|---|
customer_tier_self_replacement |
422 | A tier cannot replace itself during archival. |
automatic_tier_upgrade_requires_spending_requirement |
422 | Automatic upgrade requires a spending requirement. |
customer_tier_archived |
409 | The selected customer tier is archived. |
default_customer_tier_archive_forbidden |
409 | The merchant's default tier cannot be archived. |
staff_member_invitation_exists |
409 | A pending invitation already exists for the address. |
staff_member_invitation_not_pending |
409 | The invitation is no longer pending. |
staff_member_already_exists |
409 | The user is already an active staff member. |
staff_member_self_edit_forbidden |
403 | Staff cannot perform this edit on their own profile. |
staff_pin_in_use |
409 | Another staff member currently uses the PIN. |
customer_not_found |
422 | No customer matches the supplied lookup value. |
customer_link_invalid |
422 | The recipient-details token is unknown, expired or belongs to another merchant. A token may represent a non-member. |
Kiosk and integrations
| Identifier | Status | Meaning |
|---|---|---|
linking_code_invalid |
422 | The linking code does not exist or has expired. |
kiosk_already_linked |
409 | The kiosk is already linked to an outlet. |
kiosk_outlet_link_required |
403 | The operation requires a linked outlet. |
whatsapp_message_templates_incompatible |
409 | Existing templates are incompatible with WhatsApp. |
whatsapp_phone_number_not_found |
Configuration setup | The selected WhatsApp phone number was not found. |
whatsapp_two_step_verification_pin_incorrect |
Configuration setup | The WhatsApp two-step verification PIN is incorrect. |
whatsapp_activation_failed |
409 | The phone number is already connected to another merchant. Also reported in configuration setup status when credentials are invalid or activation could not be completed. |
whatsapp_integration_not_configured |
409 | WhatsApp has not been configured for the merchant. |
whatsapp_template_submission_not_permitted |
422 | The template cannot currently be submitted. |
whatsapp_template_submission_unavailable |
503 | WhatsApp could not prepare the submission or did not confirm its outcome. Check submission history. |
marketing_campaign_conflict |
409 | The campaign configuration, sending dependencies or current state prevent the requested action. |
marketing_test_send_not_permitted |
409 | A test send could not be prepared, the recipient has opted out or the operation key was used for different input. |
integration_unsupported |
422 | The requested integration is unsupported in this context. |