Request Top-up
Use this interface to create a top-up transaction.
Headers of this API are included in the HTTP body instead of the HTTP headers. |
Request Headers
Please refer to API Structure for the basics.
The value of the function header is alipay.intl.fund.topup.consult.
Response Headers
Please refer to API Structure for the basics.
Request parameters
topupRequestId string REQUIRED
The request id which is created by the payment provider. Unique reference ID generated by the partner system to identify the top-up request.
More information:
- Maximum length: 64 characters
payAmount object REQUIRED
Payment amount in the minor currency unit. Refer to ISO 4217.
userReference string REQUIRED
The reference number for Alipay user account. Reference number for Alipay Wallet.
More information:
- Maximum length: 32 characters
fundSource string REQUIRED
The fund source for top-up transaction. Identify the fund source for top-up transaction. Available values:
CASHDEBITCARDBANKACCOUNTCREDITCARD
payerInfo object
Extension segment for additional payment information.
when the top-up is through bank's bill payment for AML; omit otherwise.
memo string
Memo.
More information:
- Maximum length: 64 characters
Response parameters
resultInfo object REQUIRED
Result info of this response.
topupRequestId string REQUIRED
The request id which is created by the payment provider.
More information:
- Maximum length: 64 characters
fundOrderId string
A unique transaction ID generated by Alipay system.
A unique ID is generated by Alipay system for a payment transaction which has been processed by Alipay system, no matter whether the transaction is successful or rejected. This unique ID facilitates the following purposes:
- Transaction query
- Transaction recovery
- Transaction debug and trace
- Clearing
- Reconciliation
This data element is returned only when the top-up request is processed successfully. Please refer to the result code definition for details.
when the top-up request is processed successfully.
More information:
- Maximum length: 64 characters
payAmount object
Payment amount in the minor currency unit. Refer to ISO 4217.
This data element is returned only when the top-up request is processed successfully. Suggest to check if payAmount in the response matches that in the request; if mismatched, the client shall handle it as an exception and report a fatal error.
when the top-up request is processed successfully; verify it matches the corresponding request field.
userReference string
The reference number for Alipay user account. Reference number for Alipay Wallet.
This data element is returned only when the top-up request is processed successfully. Suggest to check if userReference in the response matches that in the request; if mismatched, the client shall handle it as an exception and report a fatal error.
when the top-up request is processed successfully; verify it matches the corresponding request field.
More information:
- Maximum length: 32 characters
Request
Response
Result/Error codes
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | Transaction processing completed successfully. The top-up amount is added to the Alipay wallet account. | |
| RISK_REJECT | F | Transaction is rejected due to the risk. | The partner shall not retry the same transaction request. |
| ACCOUNT_STATUS_ABNORMAL | F | Alipay account is invalid. Alipay account status abnormal. | |
| PAYEE_ACCOUNT_NOT_EXIST | F | The payee account does not exist. The provided userReference does not exist in the system. | The partner shall not retry the same transaction request. |
| AMOUNT_EXCEED_LIMIT | F | Amount exceeds limit. The total amount of daily top-up to the Alipay wallet account exceeds the limit. | |
| TOPUP_FAILED | F | The top-up transaction failed. | |
| SYSTEM_ERROR | U | API failed due to unknown reason. | Retry is recommended. |