Status Codes
The following table outlines the HTTP status codes, error codes, and their corresponding messages for Amazon Pay API responses.
| HTTP Status Code | Code | Message |
|---|---|---|
| 400 | InvalidArguments | The value of an argument is invalid. |
| 400 | InvalidMerchantId | Specified merchant ID does not exist. |
| 400 | InvalidChargeId | Specified charge ID does not exist. |
| 400 | InvalidRefundId | Specified refund ID does not exist. |
| 400 | InvalidCallbackUrl | Specified callback URL is not on approved list. |
| 400 | NonKYCAccount | Specified account is not KYC compliant. |
| 400 | InsufficientFunds | Charge could not be processed due to insufficient funds. |
| 400 | InsufficientLoadLimit | Charge could not be processed due to insufficient load limit. |
| 400 | DuplicateChargeId | Specified charge id has already been processed. |
| 400 | DuplicateRefundId | Specified refund id has already been processed. |
| 400 | ExcessRefundAmount | Specified refund amount exceeds allowable limit. |
| 400 | ChargeNotApproved | Specified charge id is not approved. |
| 401 | AuthorizationExpired | Specified signature has expired. |
| 401 | AuthorizationFailed | Specified signature is invalid. |
| 403 | InvalidAccessToken | Merchant is not authorized. The access token may be either malformed or unusable. |
| 500 | InternalServerError | An internal server error has occurred. Try your request again later. |