logoAccess

Error Codes

All machine readable error codes returned by the Access API, grouped by category.

Every API error response includes a code field that identifies the specific failure. Use it to handle errors programmatically without parsing the message string.

Error response shape
{
  "error": {
    "type": "invalid_request_error",
    "code": "not_found",
    "message": "Customer not found.",
    "doc_url": "https://docs.tryaccess.xyz/docs/errors/not_found"
  }
}

The doc_url in every error response links directly to the page for that code.

Input / Validation

Errors caused by malformed or missing request fields.

CodeHTTPDescription
parameter_missing400A required field was not provided
parameter_invalid400A field value failed validation
parameter_unknown400An unrecognised field was sent
invalid_psp400The specified PSP is not recognised

Resource State

Errors caused by the current state of a resource.

CodeHTTPDescription
not_found404The requested resource does not exist
duplicate409A resource with the same identifier already exists
invalid_state400The action is not allowed in the current resource state
already_paid400The invoice is already marked as paid
already_voided400The invoice has already been voided
subscription_already_canceled400The subscription is already canceled or scheduled to cancel

Auth

Errors related to API key authentication and permissions.

CodeHTTPDescription
unauthorized401API key is missing or invalid
forbidden403API key does not have permission for this action
key_generation_failed500Failed to generate an API key

Verification Pipeline

Errors from the payment receipt verification pipeline.

CodeHTTPDescription
verification_failed400Payment could not be verified
tx_ref_not_found404Transaction reference not found at the PSP
image_fetch_failed400Could not retrieve the receipt image
image_extraction_failed400Could not extract data from the receipt image
extraction_failed400Data extraction from the receipt failed
date_parse_failed400Could not parse the date from the receipt
empty_input400No input was provided for verification

Upstream / PSP

Errors from bank or PSP integrations.

CodeHTTPDescription
bank_fetch_failed502Failed to fetch transaction data from the bank or PSP
bank_url_build_failed500Could not construct the request URL for the PSP
unsupported_psp400The specified PSP is not supported

Upstream / Crypto

Errors from crypto payment and payout operations.

CodeHTTPDescription
crypto_payment_failed502A crypto payment operation could not be completed
crypto_payout_failed502A crypto payout could not be processed
crypto_currency_unavailable502The requested crypto currency is not available
crypto_estimate_failed502The conversion estimate could not be calculated
crypto_ipn_invalid400The crypto payment webhook signature is invalid

Database

CodeHTTPDescription
db_error500A database operation failed

Fallback

CodeHTTPDescription
internal_error500An unexpected internal error occurred

How is this guide?