- 支付
- 私域
- 公域
- 营销
- 资金
- 会员
- 信用
- 安全
- 其他
支付宝订单信息同步接口
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/trade/orderinfo/sync
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/trade/orderinfo/sync' \
--header 'authorization: ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign' \
--header 'alipay-request-id: $requestid' \
--header 'Content-Type: application/json' \
--data-raw '{
"trade_no":"2018061021001004680073956707",
"orig_request_no":"HZ01RF001",
"out_request_no":"HZ01RF001",
"biz_type":"CREDIT_AUTH",
"order_biz_info":"{\"status\":\"COMPLETE\"}"
}'
响应示例响应示例
{
"trade_no":"20180610121001004680073956707",
"out_trade_no":"20180610010101001",
"buyer_user_id":"2088101117955611"
}
请求参数
Header 参数
authorization
string
必需
示例值:
ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign
alipay-request-id
string
必需
示例值:
$requestid
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
trade_no
string
支付宝交易号
orig_request_no
string
可选
out_request_no
string
必需
biz_type
string
必需
order_biz_info
string
可选
示例
返回响应
🟢200成功
application/json
Body
trade_no
string
支付宝交易号
out_trade_no
string