Request Top-up

POST /api/alipay/intl/fund/topup/create.htm

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.

Show child parameters

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:

  • CASH
  • DEBITCARD
  • BANKACCOUNT
  • CREDITCARD

payerInfo object  

Extension segment for additional payment information.

REQUIRED when the top-up is through bank's bill payment for AML; omit otherwise.

Show child parameters

memo string  

Memo.

More information:

  • Maximum length: 64 characters

Response parameters

resultInfo object  REQUIRED

Result info of this response.

Show child parameters

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.

REQUIRED 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.

REQUIRED when the top-up request is processed successfully; verify it matches the corresponding request field.

Show child parameters

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.

REQUIRED when the top-up request is processed successfully; verify it matches the corresponding request field.

More information:

  • Maximum length: 32 characters
API Explorer

Request

Request Body

Response

Response Body

Result/Error codes

CodeValueMessageFurther action
SUCCESSSTransaction processing completed successfully. The top-up amount is added to the Alipay wallet account.
RISK_REJECTFTransaction is rejected due to the risk.The partner shall not retry the same transaction request.
ACCOUNT_STATUS_ABNORMALFAlipay account is invalid. Alipay account status abnormal.
PAYEE_ACCOUNT_NOT_EXISTFThe 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_LIMITFAmount exceeds limit. The total amount of daily top-up to the Alipay wallet account exceeds the limit.
TOPUP_FAILEDFThe top-up transaction failed.
SYSTEM_ERRORUAPI failed due to unknown reason.Retry is recommended.