Skip to main content

Standardized format

All error responses follow a standardized format:
{
  "type": "error type",
  "code": "error code",
  "message": "error message"
}

1. Error Types

2. invalid_request_error

Error CodeError MessageHow to Fix
missing_parameterMandatory parameter is missingCheck whether all required request parameters are provided. Add any missing fields (e.g., amount, currency).
invalid_parameterparameter is invalidVerify the format and value range of the corresponding parameter.

3. idempotence_error

Error CodeError MessageHow to Fix
request_being_processedrequest is being processedEnsure requests are not sent too frequently, particularly within a short interval.
key_mismatch_accountkey does not belong to account
key_mismatch_apiapi associated with key is not the originalRequest the original endpoint directly.
invalid_key_formatinvalid idempotency key formatUsing uuid v4

4. account_error

Error CodeError MessageHow to Fix
account_not_foundaccount not found or deactivated
sub_account_not_foundsub-account associated with the on-behalf-of not found or deactivatedEnsure the ID specified in the x-on-behalf-of header corresponds to a valid sub-account.
user_not_founduser associated with account not found or deactivated
product_not_foundproduct not found or inactiveContact technical support.

5. payment_error

6. refund_error

Error CodeError MessageHow to Fix

7. payout_error

Error CodeError MessageHow to Fix
payout_disabledThe Payout service has not been enabled
disabled_transfer_typeThis type of payout is disabled by the merchant (e.g., auto-withdrawal turned off)
invalid_currencyInvalid currencyUse a valid and supported currency code.
invalid_amountInvalid amount
invalid_parameterMissing, malformed, or non-compliant request parameters (e.g., currency code not following ISO 4217, negative amount)Verify all required parameters are provided and formatted correctly.
merchant_account_invalidMerchant Account Invalid
insufficient_balanceMerchant’s available balance is insufficient
payout_create_failPayout create fail
payout_not_foundPayout not foundVerify the payout ID is correct and the payout exists.