Skip to main content
Version: Lastest

Error Code API

Error Code API

Chat with AI▼

Common error code table for all APIs

EndPoint​

GET /credit-card/error-code/list

Header Params​

ParamRequiredData TypeDescriptionNote
X-APPOTAPAY-AUTHrequiredString How to create JWT_TOKEN
Content-TyperequiredStringValue: application/json
X-Request-IDoptionalStringUUIDv4 format. Request ID to check request when error occursmax:42
LanguageoptionalStringValue vi or en corresponding to payment link will be Vietnamese or English, (default: vi)

in:vi,en

{
"X-APPOTAPAY-AUTH": "JWT_TOKEN",
"Content-Type": "application/json",
"X-Request-ID": "Your_Unique_id",
"Language": "en"
}

Response Params​

ParamRequiredData TypeDescription
errorCoderequiredIntegerError code
messagerequiredStringError description
errorsoptionalArray of ObjectDetailed error description for fields if any
errors.fieldrequiredObjectField data with error
errors.reasonrequiredObjectDescription of field data with error

Success​

Http Status Code 200 - OK

{
"errorCode": 0,
"message": "Success",
"data": [
{
"code": 1,
"message": "Missing or Invalid Params"
}
]
}

Failure​

HTTP Status Code != 200

With errorCode returned, please refer to the error code table here

Example Code​

curl --location 'https://gateway.dev.appotapay.com/credit-card/error-code/list' \
--header 'X-APPOTAPAY-AUTH: JWT_TOKEN' \
--header 'Content-Type: application/json' \
--header 'X-Request-ID: Your_Unique_id' \
--header 'Language: en'

Request​

REQUEST

Development server
The value corresponding to the payment link can be in Vietnamese or English (default: vi)