alipay.intl.merchant.common.indirectMerchant.archive
This interface is used by the acquirer to archive secondary merchant and store information.
Request
Service address
Environment | URL |
Production | https://open-sea.alipay.com/api/alipay/intl/merchant/common/indirectMerchant/archive.htm |
Request Parameters
Parameter | Description |
Basic Parameter | |
function String(128) | Service Name
|
version String(8) | The API version
|
clientId String(32) | A unique partner ID to identify a contracted Alipay Account.
|
reqTime Date time | Date time with timezone, see RFC 3339 Section 5.6 for details.
|
reqMsgId String(64) | The unique ID assigned by the client to identify a request message. Note: The reqMsgId identifies a unique system request, but it is not used to identify a unique business request.
|
reserve String(256) | Key-Value formatted parameter for future use. This parameter is required when you are an ISV. If you are an ISV, you need to provide the isvAccesstoken value.
|
Business Parameter | |
merchantId String(64) | A unique partner ID to identify a contracted Alipay Account.
|
sellerId String(32) | A unique ID assigned by the partner to identify a secondary merchant. The ID can contain letters, numbers, and underscores.
|
storeId String(32) | Store ID, need to be unique for each group of PID and MID. This parameter is only for the OFFLINE payment.
|
paymentScene String | Payment method of the secondary merchant, the value is ONLINE for online payments and is OFFLINE for offline payments.
|
Sync Response
Parameter | Description |
Basic parameters | |
version String(8) | The API version
|
function String(128) | Service Name
|
clientId String(32) | A unique partner ID to identify a contracted Alipay Account.
|
reqTime Date time | Date time with timezone, see RFC 3339 Section 5.6 for details.
|
reqMsgId String(64) | The unique ID assigned by the client to identify a request message. Note: The reqMsgId identifies a unique system request, but it is not used to identify a unique business request.
|
reserve String(256) | Key-Value formatted parameter for future use. This parameter is required when you are an ISV. If you are an ISV, you need to provide the isvAccesstoken value.
|
Business parameters | |
resultInfo ResultInfo | See resultInfo for details.
|
Sub-parameters
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) | When
|
Business Logic Errors
Returned result | Description | Solution |
MERCHANT_DATA_NOT_FOUND | The merchant data not found. | Enter the correct parameters and send the request again. |
Result code
Basic result code
resultCodeId | resultCode | resultStatus | Remarks |
00000000 | SUCCESS | S | Success |
00000019 | PROCESS_FAIL | F | General business failure |
00000901 | UNKNOWN_EXCEPTION | U | API failed because of unknown reasons |
00000004 | PARAM_ILLEGAL | F | The parameter is incorrect. |
00000007 | INVALID_SIGNATURE | F | The signature is invalid. |
00000008 | KEY_NO_FOUND | F | The key is not found. |
00000014 | API_IS_INVALID | F | The API is invalid or nonactivated. |
00000016 | OAUTH_FAILED | F | The oAuth authentication failed. |
00000021 | ACCESS_DENIED | F | Access denied |
00000024 | REQUEST_TRAFFIC_EXCEED_LIMIT | F | The request traffic exceeds the limit. |
12014152 | CLIENT_FORBIDDEN_ACCESS_API | F | The Client is not authorized to use this API. |
12014155 | UNKNOWN_CLIENT | F | Unknown client |
12014156 | INVALID_CLIENT_STATUS | F | Invalid client status |
00000030 | SIGN_TYPE_INVALID | F | The sign type is invalid |
Examples
Request Sample
{
"request":{
"head":{
"version":"2.0.4",
"function":"alipay.intl.merchant.common.indirectMerchant.archive",
"clientId":"2014000014442",
"reqTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"merchantId":"21020000001",
"sellerId":"83410102",
"storeId":"83401020001",
"paymentScene":"ONLINE"
}
},
"signature":"signature string"
}
Response Sample
{
"response":{
"head":{
"version":"2.0.4",
"function":"alipay.intl.merchant.common.indirectMerchant.archive",
"clientId":"2014000014442",
"respTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
}
}
},
"signature":"signature string"
}