发布订单
http请求地址:https://openapi.uupt.com/v2_0/addorder.ashx
http请求方式:POST
调用说明
(注:参数以form-data方式传递,不是json方式)
调用参数说明
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
price_token | string | 是 | 金额令牌,计算订单价格接口返回的price_token |
order_price | string | 是 | 订单金额,计算订单价格接口返回的total_money |
balance_paymoney | string | 是 | 实际余额支付金额计算订单价格接口返回的need_paymoney |
receiver | string | 是 | 收件人 |
receiver_phone | string | 是 | 收件人电话 手机号码; 虚拟号码格式(手机号_分机号码)例如:13700000000_1111 |
note | string | 否 | 订单备注 最长140个汉字 |
callback_url | string | 否 | 订单提交成功后及状态变化的回调地址 |
push_type | string | 是 | 推送方式(0 开放订单,2测试订单)默认传0即可 |
special_type | string | 是 | 特殊处理类型,是否需要保温箱 1需要 0不需要 |
callme_withtake | string | 是 | 取件是否给我打电话 1需要 0不需要 |
pubusermobile | string | 否 | 发件人电话,(如果为空则是用户注册的手机号) |
pay_type | string | 否 | 支付方式:1=企业支付 0账户余额支付(企业余额不足自动转账户余额支付) |
ordersource | string | 否 | 订单来源标示,示例(1=美团 2=饿了么 3=其他) |
shortordernum | string | 否 | 订单平台短单号(0-10000),该单号会展示给骑手突出展示:“美团 #1” |
sign | string | 是 | 加密签名,详情见 消息体签名算法 |
nonce_str | string | 是 | 随机字符串,不长于32位 |
timestamp | string | 是 | 时间戳,以秒计算时间,即unix-timestamp |
openid | string | 是 | 用户openid,详情见 获取openid接口 |
appid | string | 是 | appid |
返回说明
正常情况下,UU跑腿会返回下述数据包(注:参数以json方式)
返回参数说明
参数名 | 描述 |
---|---|
ordercode | 订单号 |
origin_id | 第三方对接平台订单id |
nonce_str | 随机字符串,不长于32位 |
sign | 加密签名,详情见消息体签名算法 |
appid | 第三方用户唯一凭证 |
return_msg | 返回信息,如非空,为错误原因,如签名失败、参数格式校验错误 |
return_code | 状态,ok/fail表示成功 |
错误时返回的json数据包
错误码说明服务示例
sign系统自动生成无需增加
参数名 | 值 | 类型 | 是否必须 | 备注 |
---|---|---|---|---|
appkey | string | 是 | 应用秘钥(appkey) | |
price_token | string | 是 | 金额令牌,计算订单价格接口返回的price_token | |
order_price | string | 是 | 订单金额,计算订单价格接口返回的total_money | |
balance_paymoney | string | 是 | 实际余额支付金额计算订单价格接口返回的need_paymoney | |
receiver | string | 是 | 收件人 | |
receiver_phone | string | 是 | 收件人电话 手机号码; 虚拟号码格式(手机号_分机号码)例如:13700000000_1111 | |
note | string | 否 | 订单备注 最长140个汉字 | |
callback_url | string | 否 | 订单提交成功后及状态变化的回调地址 | |
push_type | string | 是 | 推送方式(0 开放订单,2测试订单)默认传0即可 | |
special_type | string | 是 | 特殊处理类型,是否需要保温箱 1需要 0不需要 | |
callme_withtake | string | 是 | 取件是否给我打电话 1需要 0不需要 | |
pubusermobile | string | 否 | 发件人电话,(如果为空则是用户注册的手机号) | |
pay_type | string | 否 | 支付方式:1=企业支付 0账户余额支付(企业余额不足自动转账户余额支付) | |
ordersource | string | 否 | 订单来源标示,示例(1=美团 2=饿了么 3=其他) | |
shortordernum | string | 否 | 订单平台短单号(0-10000),该单号会展示给骑手突出展示:“美团 #1” | |
nonce_str | string | 是 | 随机字符串,不长于32位 | |
timestamp | string | 是 | 时间戳,以秒计算时间,即unix-timestamp | |
openid | string | 是 | 用户openid,详情见 获取openid接口 | |
appid | string | 是 | appid |
请求参数
返回结果: