alipay.dut.customer.agreement.query
Auto-debit Acquiring customer sign status query Interface-- alipay.dut.customer.agreement.query
This interface can be used by merchant to query the three party agreement signed by the merchant, Alipay and the user.
Request
Service address
Environment | HTTPS request URL |
Production environment | |
Test environment |
Request parameters
Parameter | Type (length) | Description | Required | Example |
Basic parameter | ||||
service | String | Service Name | Y | alipay.dut.customer.agreement.query |
partner | String(16) | Partner ID that is composed of 16 digits beginning with 2088. | Y | 2088001159940003 |
_input_charset | String | The charset with which the request data is encoded. UTF-8 is supported. | N | UTF-8 |
sign_type | String | Sign type. DSA, RSA, and MD5 are supported. Use uppercase. | Y | RSA |
sign | String | Sign value | Y | e5815a4556db338ed237f7d3fd222184 |
Business parameter | ||||
product_code | String(64) | The code that identifies a payment solution signed between Alipay and the merchant partner. | Y | GENERAL_WITHHOLDING_P |
alipay_user_id | String | The unique id in Alipay for the user. It is a 16 digits number beginning with 2088. alipay_user_id and alipay_logon_id cannot be null at the same time. If both are provided, alipay_user_id will be used. | N | 2088101122675263 |
alipay_logon_id | String(100) | User’s logon id, can be email or cell phone number. alipay_user_id and alipay_logon_id cannot be null at the same time. If both are provided, alipay_user_id will be used. | N | abx@alitest.com |
third_party_type | String(32) | Type of the tird party who signs the agreement with Alipay and Alipay user. Default value is PARTNER | N | MERCHANT |
scene | String(100) | The code for specific scenario, identifying a business case which agreed between Alipay and the merchant. | Y | INDUSTRY|MEDICAL |
app_id | String | The app id of the Merchant in Alipay open platform. | N | 2014071600176280 |
external_sign_no | String(32) | The unique three-party payment agreement number provided by the partner. | Y | e8qdwl9casxor13 |
Response
Parameter | Type (length) | Description | Required | Example |
Basic parameter | ||||
is_success | String | Indicate if the request succeeds at gateway level. | Y | T |
sign | String | Sign value | N | 9107908ca1d018b32f82f7b40a27e4c3 |
sign_type | String | Sign type. DSA and RSA are supported. Use uppercase. | N | RSA |
error | String |
| N | ILLEGAL_SIGN |
Business parameter | ||||
principal_type | String | Agreement principal type:
| Y | CARD |
principal_id | String | Agreement principal id.
| Y | 2088101122675263 |
product_code | String | The code that identifies a payment solution signed between Alipay and the merchant partner. | Y | ONE_KEY_BUY |
scene | String | The code for specific scenario, identifying a business case which agreed between Alipay and the merchant. | Y | DEFAULT|DEFAULT |
thirdpart_type | String | Agreement third party type. | Y | PARTNER |
thirdpart_id | String | Agreement third party id. | Y | 2088102112738609 |
status | String | Status of the agreement:
| Y | NORMAL |
valid_time | String | Effective date of the agreement. Format: yyyy-MM-dd HH:mm:ss | Y | 2014-04-14 15:00:40 |
invalid_time | String | Expire date of the agreement. Format: yyyy-MM-dd HH:mm:ss | Y | 2115-02-01 00:00:00 |
sign_time | String | Initial sign time of the agreement. Format: yyyy-MM-dd HH:mm:ss | Y | 2014-04-14 15:00:40 |
sign_modify_time | String | The latest modification time of the agreement. Format: yyyy-MM-dd HH:mm:ss If never modified, sign_modify_time = sign_time | Y | 2014-04-14 15:00:40 |
external_sign_no | String | The unique third party payment agreement number. | Y | e8qdwl9casxor13 |
agreement_no | String | The agreement number | N | 2015031300000001 |
agreement_detail | String | Agreement detail in JSON format. | N | {"payToolSummaryDetails":[{"payToolSummary":"COUPON_DC_COUPON_DEFAULT","extInfo":null,"detailType":"PAYTOOLSUMMARY"},{"payToolSummary":"BANKCARD_CC_EXPRESS_DEFAULT","extInfo":null,"detailType":"PAYTOOLSUMMARY"},{"payToolSummary":"BANKCARD_CC_CARTOON_DEFAULT","extInfo":null,"detailType":"PAYTOOLSUMMARY"}]} |
agreement_detail
Parameter | Type (length) | Description | Required | Example |
payToolSummaryDetails | String | List of pay tools. Alipay system supports multiple pay tools. | N | [{"payToolSummary":"COUPON_DC_COUPON_DEFAULT","extInfo":null,"detailType":"PAYTOOLSUMMARY"},{"payToolSummary":"BANKCARD_CC_EXPRESS_DEFAULT","extInfo":null,"detailType":"PAYTOOLSUMMARY"},{"payToolSummary":"BANKCARD_CC_CARTOON_DEFAULT","extInfo":null,"detailType":"PAYTOOLSUMMARY"}] |
Samples
Request sample
https://mapi.alipay.com/gateway.do?sign=b1df9e289e6e4e5fc2a57ed6f24b46c0&product_code=GENERAL_WITHHOLDING_P&sign_type=MD5&service=alipay.dut.customer.agreement.query&partner=2088001159940003&external_sign_no=2088101122675263&third_party_type=MERCHANT