跳到主要内容
版本:v2.0

修改订单手机号

将订单归属会员手机号更换为新号码。支持一次传多个订单号。

POST/api/exchangeOrderPhone

请求参数​

名称类型描述是否必填默认值备注
tokenString身份校验令牌必填-由 获取访问令牌 获得
ordernumString订单号必填-多个用英文逗号分隔
phoneString新手机号必填--

CURL​

V1​

curl --location --request POST 'https://open.xinduobang.cn/api/exchangeOrderPhone' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'token=YOUR_TOKEN' \
--data-urlencode 'ordernum=NO20230511203452547280' \
--data-urlencode 'phone=13900001111'

V2(appid 为 V2 版本)​

curl --location --request POST 'https://open.xinduobang.cn/api/exchangeOrderPhone' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-Timestamp: 1770000000' \
--header 'X-Nonce: 3f9c1a7b2e6d4058' \
--header 'X-Signature: <computed_hmac_sha256>' \
--data-urlencode 'token=YOUR_TOKEN' \
--data-urlencode 'ordernum=NO20230511203452547280' \
--data-urlencode 'phone=13900001111'

成功响应​

{
"code": 0,
"msg": "操作成功",
"data": []
}

失败响应​

HTTP状态码错误码描述排查建议
200非 0业务错误确认订单号存在、手机号格式正确

相关接口​