Skip to content

Contract authority: OpenAPI is the machine-readable public v1 contract. This page is generated from the Privilege Integrator Pack. If prose and OpenAPI disagree, stop and contact Privilege.

11. Errors ​

Public envelope:

json
{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "Invalid credentials",
    "requestId": "irq_0123456789abcdef0123456789abcdef"
  }
}

X-Request-Id is also echoed on responses. Retain requestId when contacting Privilege support.

Useful public codes ​

GroupCodeTypical HTTP
AuthenticationUNAUTHENTICATED401
Client stateCLIENT_DISABLED403
TLS gateUNAVAILABLE403
ScopeINSUFFICIENT_SCOPE403
Outlet mappingOUTLET_UNMAPPED404
Outlet mappingOUTLET_DISABLED, OUTLET_UNAUTHORIZED403
Token / eligibilityTOKEN_INVALID400
Token / eligibilityTOKEN_EXPIRED, RESERVATION_EXPIRED410
Token / eligibilityMEMBERSHIP_INELIGIBLE, DEAL_NOT_REDEEMABLE, OFFER_UNSUPPORTED, RESERVATION_FORBIDDEN403 / 400
State / receiptINVALID_STATE, RECEIPT_CONFLICT, CONFLICT409
IdempotencyIDEMPOTENCY_KEY_REQUIRED400
IdempotencyIDEMPOTENCY_CONFLICT, IDEMPOTENCY_IN_PROGRESS409
ValidationVALIDATION_ERROR400
Rate limitRATE_LIMITED429
ServerINTERNAL_ERROR500

Privilege does not return stack traces or SQL in this envelope.


Privilege Developers — public External Integration documentation. OpenAPI is the machine-readable contract.