Skip to content

Response Codes

The API returns a unified response format for both success and errors. The result.code in the response body is the response code; use code for business logic, not msg.

result structure in response

json
{
  "result": {
    "code": "S0000",
    "msg": "Success"
  },
  "data": { ... }
}
FieldTypeDescription
result.codestringResponse code, see tables below
result.msgstringMessage (may change; use code in logic)

Response code list

CodeDescription
S0000Success
B0001Duplicate merchant order
B0002The selected payment method is unavailable
B0003Invalid payment state
C0000Invalid request
C0001Missing required parameter
C0002Invalid parameter format
C0003Invalid signature
C0004Unauthorized merchant
C0005Order number not found
P0001Payment is processing. (order created success, pending payment)
P0002Order status is invalid.
P0003Insufficient balance.
P0004Payment was cancelled.
P0005Merchant or payment configuration is invalid.
P0006Payment was rejected.
E0000Internal server error
E0001External system error