# Appendix B (Response Code)

## :white\_check\_mark: Response Code with Response Message List

| Response code                  | Response message                                                                                    |
| ------------------------------ | --------------------------------------------------------------------------------------------------- |
| SUCCESS                        | success                                                                                             |
| PROCESSING                     | transaction processing                                                                              |
| PWD\_INCORRECT                 | password is incorrect                                                                               |
| FAIL                           | failure.                                                                                            |
| TIMEOUT                        | timeout.                                                                                            |
| SYSTEM\_ERROR                  | system error.                                                                                       |
| PARAM\_INVALID                 | invalid parameter                                                                                   |
| PARAM\_ERROR                   | parameter format error                                                                              |
| ORDER\_PAID                    | order paid                                                                                          |
| ORDER\_USED                    | order number duplicated                                                                             |
| ORDER\_TYPE\_ERROR             | pre-authoried order                                                                                 |
| DB\_ERROR                      | database error                                                                                      |
| MER\_NO\_AUTH                  | no permission for the merchant                                                                      |
| CODE\_EXPIRE                   | QR code expired, please refresh and try again                                                       |
| AMOUNT\_NOT\_ENOUGH            | insufficient balance                                                                                |
| CARD\_NOT\_SUPPORT             | unsupported card                                                                                    |
| CURRENCY\_NOT\_SUPPORT         | unsupported currency                                                                                |
| ORDER\_CLOSED                  | order closed                                                                                        |
| ORDER\_REVERSED                | order cancelled                                                                                     |
| BANK\_ERROR                    | banking system anomaly                                                                              |
| AUTH\_CODE\_ERROR              | authorization code parameter error                                                                  |
| AUTH\_CODE\_INVALID            | authorization code validation fail                                                                  |
| REQ\_AGAIN                     | please restart a transaction                                                                        |
| REFUND\_INVALID                | refund amount greater than the amount paid                                                          |
| MERCHANT\_INVALID              | merchant information does not match                                                                 |
| REFUND\_FEE\_MISMATCH          | refund amount check fail                                                                            |
| REFUND\_NOT\_EXIST             | refund order not exist                                                                              |
| BODY\_NOT\_ENOUGH              | insufficient message header                                                                         |
| ORDER\_NOT\_EXIST              | original order not exist                                                                            |
| PRE\_AUTH\_FINISHED            | original order has been finished                                                                    |
| REVERSE\_NOT\_SUPPORT          | original order does not support revocation.                                                         |
| STATU\_FAIL                    | accepting institution abnormal state                                                                |
| SIGN\_FAIL                     | verification signature fail                                                                         |
| REFUND                         | transfer to refund                                                                                  |
| REFUND\_SUCCESS                | refund success.                                                                                     |
| PARTIAL\_REFUNDED              | partial Refunded                                                                                    |
| FULLY\_REFUNDED                | fully Refunded.                                                                                     |
| REF\_SUCCESS\_CHANGE           | <p>refund success, user card frozen, need</p><p>human intervention</p>                              |
| NOTPAY                         | unpaid                                                                                              |
| PAYERROR                       | payment failed                                                                                      |
| NO\_CHANNEL                    | no channel supported                                                                                |
| MER\_NO\_INFO                  | failed to get merchant information.                                                                 |
| MER\_ACCOUNT\_INSUFFICIENT     | merchant account balance is insufficient. Do not allow to refund.                                   |
| OTHER                          | other case.                                                                                         |
| SERIALNO\_EXIST                | the account request serial number already exists, can not be submitted again.                       |
| REASON\_TRADE\_BEEN\_FREEZEN   | corresponding trade has been frozen due to security issues. Please contact Alipay technical support |
| HAS\_NO\_PRIVILEGE             | no privilege. please contact Alipay technical support                                               |
| BUYER\_ERROR                   | the buyer does not exist.                                                                           |
| BUYER\_ENABLE\_STATUS\_FORBID  | buyer account status prohibits the refund                                                           |
| SELLER\_ERROR                  | the seller does not exist.                                                                          |
| TRADE\_STATUS\_ERROR           | the trade status is illegal.                                                                        |
| TRADE\_HAS\_FINISHED           | the trade has been finished.                                                                        |
| MERCHANT\_BALANCE\_NOT\_ENOUGH | merchant balance is not enough for refund.                                                          |
| TRADE\_CANCEL\_TIME\_OUT       | the cancellation request is beyond the opening hours.                                               |
| UNKNOW                         | indicates payment result is unknown);                                                               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ottpay.com/payment-api/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
