alipay.fund.auth.order.freeze
Call the alipay.fund.auth.order.freeze interface to unfreeze full or partial amount of funds.
Request
Service address
Environment | HTTPS request URL |
Production environment | |
Test environment |
Request parameters
Parameter | Description |
Basic parameter | |
app_id String (32) | The unique ID that is assigned by Alipay to identify an application. Example: |
method String (128) | Interface name Example: |
format String (40) | Only JSON is supported. Example: |
charset String (10) | The charset with which the request data is encoded. GBK and UTF-8 are supported. Example: |
sign_type String (10) | Signature type. RSA and RSA2 are supported. Use uppercase. Example: |
sign String (344) | Signature value |
timestamp String (19) | The time when the merchant server sends the request. The format is yyyy-mm-dd hh:mm:ss. Example: |
version String (3) | The API version. The value is fixed as 1.0. Example: |
notify_url String (256) | The URL for receiving asynchronous notifications after the pre-auth is completed. Example: |
app_auth_token String (40) | To query authorization information. Example: Note: After a merchant authorizes an ISV to use certain APIs, Alipay will assign an app_auth_token to the ISV. The ISV can use this interface to query the authorization information such as the authorizer and authorized APIs corresponding to the app_auth_token. For more details, see Overview of the app authorization (in Mandarin). |
biz_content String | Collection of request parameters. The maximum length is not limited. Except for common parameters, all other request parameters must be passed in to this parameter. |
Business parameter | |
auth_no String (64) | Payment authorization code Example: |
out_request_no String (64) | The serial number of a merchant's funds pre-auth request. The number must be unique at the merchant end. Example: |
amount Price(11) | Frozen amount Example: |
remark String(100) | Operation description. Example: |
Response
Synchronous response
Parameter | Description |
Basic parameter | |
code String (16) | The gateway return code, which indicates whether the request is accepted by Alipay gateway. Example: |
msg String (32) | Description of the gateway return code Example: |
sub_code String (16) | Processing result of the request Example: |
sub_msg String (64) | Description of the processing result of the request |
sign String (344) | The sign value. See Signature for details. |
Business parameter | |
auth_no String(64) | Payment authorization code Example: |
out_order_no String (64) | The transaction number of funds pre-auth assigned by merchant system. Example: |
out_request_no String (64) | The serial number of a merchant's funds pre-auth request. The number must be unique at the merchant end. Example: |
operation_id String(64) | The serial number of funds operation assigned by Alipay. Example: |
amount Price (11) | Frozen amount Example: |
status String(20) | Status of the funds operation. Possible values include:
Example: |
gmt_trans Date (20) | The time when the authorized funds unfreeze successfully. The format is yyyy-mm-dd hh:mm:ss. Example: |
credit_amount Price (11) | Credit amount. The unit is RMB. Example: |
fund_amount Price (11) | Balance amount. The unit is RMB. Example: |
Asynchronous response
Parameter | Description |
auth_no String (64) | The transaction number of funds pre-auth assigned by Alipay, which is composed of 28 digits. Example: |
operation_id String (64) | The serial number of funds operation assigned by Alipay. Example: |
out_order_no String (64) | The transaction number of funds pre-auth assigned by merchant. Example: |
out_request_no String (64) | The serial number of funds operation request assigned by merchant. Example: |
operation_type String (20) | Funds operation type. Possible values include:
Example: |
amount Price (11) | The total amount of funds frozen in the transaction currency, rounded to 2 decimal places. Example: |
status String (20) | Status of the funds pre-auth. Possible values are:
Example: |
payer_user_id String (32) | Payer's Alipay user ID Example: |
payer_logon_id String (100) | The payer's Alipay login ID, email, or phone number are supported. Example: |
gmt_trans Date | The time when the funds pre-auth changed. The format is yyyy-mm-dd hh:mm:ss. Use GMT+8. Example: |
gmt_create Date | The time when the funds pre-auth succeed. The format is yyyy-mm-dd hh:mm:ss. Example: |
total_freeze_amount String (11) | The total frozen amount. The unit is the transaction currency used when the funds were frozen. Example: |
total_unfreeze_amount String (11) | The total unfrozen amount. The currency is the transaction currency used when the funds were frozen. Example: |
total_pay_amount String (11) | The total paid amount. The currency is the transaction currency used when the funds were frozen. Example: |
rest_amount String (11) | The total paid amount. The currency is the transaction currency used when the funds were frozen. Example: |
credit_amount String (11) | The credit amount. The currency is RMB. Example: |
fund_amount String (11) | The balance amount. The currency is RMB. Example: |
total_freeze_credit_amount String(11) | Total frozen credit amount. The currency is RMB.
|
Total_freeze_fund_amount String(11) | Total frozen balance amount. The currency is RMB. |
total_unfreeze_credit_amount String(11) | Total unfrozen credit amount. The currency is RMB.
|
total_unfreeze_fund_amount String(11) | Total unfrozen balance amount. The currency is RMB.
|
total_pay_credit_amount String(11) | Total paid credit amount. The currency is RMB.
|
total_pay_fund_amount String(11) | Total paid balance amount. The currency is RMB.
|
rest_credit_amount String(11) | Rest credit amount. The currency is RMB.
|
rest_fund_amount String(11) | Rest balance amount. The currency is RMB.
|
Notification trigger condition
Trigger condition name | Description | Note |
fund_auth_unfreeze | Pre-auth fund is unfrozen. | true (trigger notification) |
Error codes
Error Code | Description |
ILLEGAL_ARGUMENT | The parameter is incorrect. Check each request parameter according to the API specification. For cashier, get the customer to refresh the payment code and try the pre-auth again. |
UNIQUE_VIOLATION | Repeated order number. Get the cashier to cancel the order and retry. |
SYSTEM_ERROR | System error |
PAYER_USER_STATUS_LIMIT | Abnormal customer account |
AUTH_ORDER_NOT_EXIST | The pre-auth order does not exist. |
REQUEST_AMOUNT_EXCEED | The unfreezing amount exceeds the frozen amount. |
ILLEGAL_STATUS | Illegal order status |
ORDER_ALREADY_FINISH | Order completed |
ORDER_ALREADY_CLOSED | Order closed |