alipay.intl.merchant.common.indirectMerchant.maintain (for online payments)
You can use this interface to register and store secondary merchants information for online payments into Alipay system by setting the operationType field to ADD. You can also use this interface to modify the registered information of secondary merchants by setting the operationType field to MODIFY.
Request
Service address
Environment | URL |
Production | https://open-sea.alipay.com/api/alipay/intl/merchant/common/indirectMerchant/maintain.htm |
Request 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
|
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.
|
Request body
Parameter | Description |
merchantId String(64) | A unique partner ID to identify a contracted Alipay Account.
|
operationType String | Specify the purpose of using this interface. The value can be one of the following items.ADD: add a new record.MODIFY: modify an existing record.
|
sellerInfo SellerInfo | Seller information, see SellerInfo for details.
|
notifyUrl String(1024) | The merchant notify url
|
extendInfo String(2048) | Reserved for extended information
|
Sub-parameters
sellerInfo
siteInfos
Parameter | Description |
siteType String(20) | Site type. For website URL, the value for this parameter must be WEB. For app download URL, the value for this parameter must be APP. Use uppercase.
|
siteUrl String(256) | Site URL.
|
siteName String(128) | Site name
|
Response
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 | Date time with timezone, see RFC 3339 Section 5.6 for details.
|
reqMsgId String(64) | The unique ID assigned by client to identify a request message
|
reserve String(256) | Key/Value formatted parameter for future use
|
Response body
Parameter | Description |
resultInfo ResultInfo | See resultInfo for details.
|
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
|
Result code
Basic result code
ResultID | 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 |
Sample
Sample request
{
"request": {
"head": {
"version": "2.0.4",
"function": "alipay.intl.merchant.common.indirectMerchant.maintain",
"clientId": "385XPU2C2Y0GBK03",
"reqTime": "2019-03-11T00:00:00+00:00",
"reqMsgId": "332111111111",
"reserve": "{}"
},
"body": {
"merchantId": "$!{merchantId}",
"operationType": "ADD",
"sellerInfo": {
"sellerId": "yoka_global_m1",
"sellerName": "Alipay (China) Network Technology Co., Ltd",
"sellerMcc": "4111",
"paymentScene": "ONLINE",
"sellerType": "ENTERPRISE",
"siteInfos": [
{
"siteType": "WEB",
"siteUrl": "https://yoka.com",
"siteName": "websit"
},
{
"siteType": "APP",
"siteUrl": "https://app.yoka.com",
"siteName": "websit"
}
],
"registrationNo": "83720154037071",
"registrationCountry": "CN",
"registrationAddress": "Lujiazui, Pudong, Shanghai",
"shareholderName": "Zhangsan",
"shareholderId": "69833444422",
"settlementNo": "1551263547569833",
"contactNo": "086+13001720000",
"contactEmail": "Zhangsan@alipay.com",
"customerServiceNo": "086+13701720000",
"customerServiceEmail": "test@alipay.com"
}
}
},
"signature": "testing_signature"
}
Sample response
{
"response": {
"body": {
"resultInfo": {
"resultCode": "SUCCESS",
"resultCodeId": "00000000",
"resultMsg": "Success",
"resultStatus": "S"
}
},
"head": {
"clientId": "385XPU2C2Y0GBK03",
"function": "alipay.intl.merchant.common.indirectMerchant.maintain",
"reqMsgId": "332111111111",
"respTime": "2019-03-29T22:27:02-07:00",
"version": "2.0.4"
}
},
"signature": "COSDtCc8cZlVG/ABueiaBnWQb77gg9cqSa18p5HEXGnb6bkQzZijzy5oT/Yz8g+8QegmLkNV476dMXVN99/ScHRRR6ylDlCgNWNDXTQKwBtTTYYLcLeuEqHQc5FdMgenqjv0eKcOMNHswovv+gQFjbAJa1xg1kLW9vmJbdotpXc7nTni8/AJi+Mpof37pCy6TYFXiyir4Gejj31r2WKQl0aPDJT6F6AutQI2rYAaaHryaAfxbEcJb8Y5W+THqxL0Jm2qQBr19rBFUVbfJPaMCRJEmIU72NoxVcDp8x033+8HVbUxOfgQyFlo83JhmXC9YLnNN3wG+AfA0mItrRBaCw=="
}