JCPay· Errors

Errors

Errors follow a consistent envelope:

{
  "error": {
    "code": "invalid_request",
    "message": "request body failed validation",
    "issues": { ... }
  }
}

Common codes

HTTPCodeMeaning
400invalid_requestBody failed validation (see issues)
401unauthenticatedMissing or invalid API key
403merchant_inactiveMerchant account not active
403insufficient_scopeAPI key missing required scope
404not_foundResource not found or belongs to another merchant
409conflictDuplicate request (idempotency in-flight)
429rate_limitedToo many requests; see Retry-After
500internal_errorSomething broke on our side