alipay.intl.acquiring.offline.notify.pay
Alipay will notify merchant’s website of the result data it processed through initiative notification from server after it completes the processing of request data of merchant. These result data are asynchronous notification parameters from server. As a merchant, you need to send a response to this request with the required parameters according to this document.
Request header
Parameter | Description |
version String(8) | The API version
|
function String(128) | The API name
|
clientId String(32) | The unique ID assigned by Alipay to identify a client that makes API calls
|
reqTime Date time | Request time. Date time with timezone, see RFC 3339 Section 5.6 for details
|
reqMsgId String(64) | Request message ID. The unique ID assigned by client to identify a request message
|
reserve String(256) | Reserved parameter. Key-Value formatted parameter for future use
|
Request body
Parameter | Description |
resultInfo ResultInfo | Result info. See resultInfo for details
|
merchantId String(64) | The acquirer ID, assigned by Alipay. You can get this parameter with your Alipay account. Note: This parameter is returned only when
|
acquirementId String(64) | Alipay transaction ID. The unique transaction ID assigned by Alipay only when the transaction succeeds. Note: This parameter is returned only when
|
merchantTransId String(64) | Merchant transaction ID. The unique ID assigned by the merchant to identify a transaction. Only when the transaction succeeds, this field is returned
|
orderAmount Money | Transaction amount. The value for this field must be the same as that of
|
payAmount Money | Payment amount, might have different currency with the transaction amount.This parameter is returned only when
|
conversionRate ExchangeRate | The exchage rate between the transaction amount and payment amount.This parameter is returned only when
|
paymentTime Date time | The time when the payment occurred. Date time with timezone, see RFC 3339 Section 5.6 for details.This parameter is returned only when
|
acquiringSite String | Acquiring site.This parameter is returned only when
|
userSite String | Payment user site.This parameter is returned only when
|
userId String(64) | User ID.This parameter is returned only when
|
userLoginId String(64) | User login id in the payment site.This parameter is returned only when
|
createTime Date time | The time when the transaction is created. Date time with timezone, see RFC 3339 Section 5.6 for details.This parameter is returned only when
|
settleOrder SettleOrder | Settlement information. This parameter is returned only when
|
extendInfo String(2048) | Extended information. Key-Value formatted parameter for future use
|
Response head
Parameter | Description |
version String(8) | The API version
|
function String(128) | The API name
|
clientId String(32) | The unique ID assigned by Alipay to identify a client that makes API calls
|
respTime Date time | Response time. Date time with timezone, see RFC 3339 Section 5.6 for details
|
reqMsgId String(64) | Request message ID. The unique ID assigned by client to identify a request message
|
reserve String(256) | Reserved parameter. Key-Value formatted parameter for future use
|
Response body
Parameter | Description |
resultInfo ResultInfo | Result info. See resultInfo for details
|
Subparameters
resultInfo
Parameter | Description |
resultStatus String(2) | The request status can be:
|
resultCodeId String(8) | An 8-digit code that is used to identify a result. When
|
resultCode String(64) | The result code
|
resultMsg String(256) | Result message. When
|
Money
Parameter | Description |
currency String(3) | The 3-letter currency code. See supported currencies for details
|
value Number(16) | The amount. This value must be provided in the smallest common currency unit. For example, to create a charge for $1.00, you can set orderAmount: value=100 (100 cents)
|
ExchangeRate
Parameter | Description |
baseCurrency String(3) | The base currency
|
exchangeCurrency String(3) | The exchange currency
|
rate String(16) | The exchange rate of
|
SiteEnum
SettleOrder
Parameter | Description |
settleOrderAmount Money | Merchant settlement amount and currency.See Money for details.
|
settleExchangeRate ExchangeRate | Settlement exchange rate.This parameter is returned only when
|
extendInfo String(2048) | Reserved for extended info
|
Result code
Basic result code
resultCodeId | resultCode | resultStatus | Remarks |
00000000 | SUCCESS | S | Success |
00000901 | UNKNOWN_EXCEPTION | U | API call failed because of unknown reasons. |
00000004 | PARAM_ILLEGAL | F | The parameter is incorrect. |
00000007 | INVALID_SIGNATURE | F | The signature is invalid. |
Sample
Request sample
{
"request":{
"head":{
"version":"2.0.4",
"function":"alipay.intl.acquiring.offline.notify.pay",
"clientId":"385xxxxxxxxx0001",
"reqTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"123xxxxxxxxxxxxxxx3fda",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
},
"merchantId":"211xxxxxxxxxxxxxx2999",
"acquirementId":"201xxxxxxxxxxxxxxxxxxxxx2747",
"merchantTransId":"510xxxxxxxxxxxxx1234",
"orderAmount":{
"currency":"USD",
"value":"239"
},
"paymentTime":"2016-07-04T12:08:56+05:30",
"acquiringSite":"ALIPAY_SG",
"userSite":"ALIPAY_CN",
"userId":"208xxxxxxxxx7485",
"userLoginId":"123***@163.com",
"createTime":"2016-07-04T12:08:56+05:30",
"extendInfo":"{\"merchantNotifyUrl\":\"notifyUrl\"}"
}
},
"signature":"signature string"
}
Response sample
{
"response":{
"head":{
"version":"2.0.4",
"function":"alipay.intl.acquiring.offline.notify.pay",
"clientId":"385xxxxxxxxx0001",
"respTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"123xxxxxxxxxxxxxxx3fda",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
}
}
},
"signature":"signature string"
}