customer
维护客户信息
创建客户接口请求报文示例
createCustomer.sh
curl --request POST \
--url https://{paymentApiUrl}/V2022-03/customers \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
--data'{
"description": "It's VIP 40210 customer",
"email": "labdpno@163.com",
"firstName": "Smfrvi",
"lastName": "Txwtbs",
"phone": "13924343678"
}'
获取客户接口请求报文示例
getCustomer.sh
curl --request GET \
--url https://{paymentApiUrl}/V2022-03/customers/cus_1526753334131306496 \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
结果对象描述(创建客户接口、获取客户接口)
批量获取客户接口请求报文示例
getCustomerList.sh
curl --request GET \
--url https://{paymentApiUrl}/V2022-03/customers?pageIndex=1&pageSize=100 \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
结果对象属性描述(获取所有客户接口)
删除客户接口请求报文示例
curl --request DELETE \
--url https://{paymentApiUrl}/V2022-03/customers/cus_1526753334131306496 \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
结果对象描述(删除客户接口)
Last updated