Troubleshooting
Common API and hosted checkout issues, their possible causes, and recommended next actions.
Authentication
Why do I get a 401 Unauthorized error?
A 401 response can indicate that authentication or authorization failed. Confirm that client_id and client_secret are present and match the credentials issued for the integration. Also confirm that the mandatory x-captoken is being sent where required and that the supplierId in the request matches the supplier associated with the token.
Request and Business Validation
Why do I get a 409 Conflict error?
A 409 response indicates that the transaction was identified as a duplicate. Check sourceTransactionReference and use a unique reference for each legitimate new transaction.
Why am I receiving a 422 Business Rule Failure response?
A 422 response occurs when Capricorn cannot process your transaction because one or more business-rule validations have failed.
The API returns the error type CAP:BUSINESS_RULE_FAILURE. Review the error message to identify the issue and correct the transaction details before resubmitting.
Availability and Rate Limiting
Why do I get a 429 Too Many Requests error?
A 429 response indicates that the rate limit was exceeded. Reduce the request rate and retry using controlled backoff behaviour.
What should I do when I get a 500 Internal Server Error?
A 500 response indicates an unexpected server-side failure. Retain the response details and tracking identifiers, then retry only when operationally appropriate.
What should I do when I get a 503 Service Unavailable error?
A 503 response indicates a temporary service or downstream availability problem. If Retry-After is returned, respect that value before retrying.
Hosted Checkout
What should I do if the hosted payment URL is no longer valid?
Create a new Payment Intent and initiate a new hosted checkout journey.
Why do I get a callback state mismatch?
The returned state does not match the value retained when creating the Payment Intent. Reject the callback and do not continue transaction processing from that callback.
Diagnostics
How can I use correlationId to track my request?
A correlation ID connects related request, response, logging and support information. The optional request header is named X-Correlation-ID; if omitted, the service can generate one. A response may include the ID in an X-Correlation-ID header or a correlationId body field. Retain the available values for operational tracking and support.
What information should I capture before escalating an issue?
Capture the timestamp, endpoint, HTTP status code and complete error response. Capture any correlationId in the response body and any X-Correlation-ID in the request or response headers. Provide the correlation ID to support; if the values differ, provide each one. Include sourceTransactionReference for transaction submissions and the separate x-transaction-id if returned. If no correlation ID is available, provide the other details.