描述收银机上传零售退货订单时将会向后台设置的推送地址上推送零售退货订单信息,第三方接收到推送数据后直接输出success表示成功,成功后将不再推送,其他情况会重复推送,至多3次,推送数据为json对象,头内容格式 Content-Type:application/json;charset=utf-8
零售退货单相关信息可在index接口查看 http://dev.erp.miaomaiyun.com/apidoc_v2/Aapi_member_push_retail_refund/index.html
忽略本文档的URL描述,此文档为第三方推送文档,不是接口请求文档,下方有推送数据示例
URL{你的ERP域名}/app_member_push/aapi_member_push_retail_refund/push_explain
HTTP请求方式post
是否需要登录false
字段 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
ro_code | true | string | 零售退货单号 |
order_code | true | string | 原零售单号 |
stores_id | true | int | 门店ID |
stores_name | true | string | 门店名称 |
wh_code | true | string | 门店编号 |
pay_money | true | string | 原零售单支付金额 |
refund_money | true | string | 退款金额 |
addtime | true | int | 下单时间 Unix时间戳 |
addtimes | true | string | 下单时间 |
type | true | int | 退货类型 |
name | true | string | 会员姓名 |
mobile | true | string | 会员手机号 |
card_code | true | string | 会员卡号 |
custom | true | string | 自定义参数 |
sign | true | string | 签名 |
sign_v2 | true | string | 签名v2 |
goods | true | string | 零售退货单商品信息 |
goods[][goods_title] | true | string | 商品名称 |
goods[][barcode] | true | string | 商品条码 |
goods[][only_coding] | true | string | 商品唯一码 |
goods[][goods_spec_code] | true | string | 商品存货编码 |
goods[][unit] | true | string | 商品销售单位 |
goods[][spec] | true | string | 商品存货属性 |
goods[][xnum] | true | string | 商品销售数量 |
goods[][price] | true | string | 商品退货单价 |
goods[][refund_price] | true | string | 商品退货小计 |
pays | true | string | 零售退货单支付信息 |
pays[][pay_method] | true | int | 支付方式ID |
pays[][pay_method_name] | true | string | 支付方式名称 |
pays[][pay_money] | true | string | 支付金额 |
pays[][pay_time] | true | int | 支付时间 Unix时间戳 |
pays[][pay_times] | true | string | 支付时间 |
pays[][pay_code] | true | string | 支付单号 |
pays[][pay_serial_no] | true | string | 三方流水号 |
pays[][road_pay_status] | true | string | 原路退款状态 |
pays[][remark] | true | string | 备注 |
pays[][former_code] | true | string | 原支付单号 |
字段 | 类型及范围 | 说明 |
---|---|---|
success | string | 成功 |
TIPS{'ro_code':'T0057-200610154929-0001','order_code':'N0057-200610154445-0002','stores_id':'10','stores_name':'\u9ed8\u8ba4\u95e8\u5e97','wh_code':'6666','pay_money':'322.000','refund_money':'322.000','type':'1','addtime':'1591775371','addtimes':'2020-06-10','name':'','mobile':'','card_code':'','remark':'','goods':[{'goods_title':'\u5f69\u8272\u8d2d\u7269\u888b','barcode':'001','only_coding':'10030013','goods_spec_code':'28354710','unit':'\u4e2a','spec':'','xnum':'1.000','price':'0.000','refund_price':'0.000'},{'goods_title':'\u5fc3\u76f8\u5370\u9762\u5dfe\u7eb8','barcode':'6914068022652','only_coding':'10030001','goods_spec_code':'17953280','unit':'\u5305','spec':'','xnum':'1.000','price':'0.000','refund_price':'0.000'},{'goods_title':'\u5355\u978b','barcode':'851362586','only_coding':'1002020002','goods_spec_code':'60132495','unit':'\u53cc','spec':'','xnum':'1.000','price':'294.428','refund_price':'294.428'},{'goods_title':'\u871c\u70bc\u5ddd\u8d1d\u6787\u6777\u818f','barcode':'6902108000095','only_coding':'10030010','goods_spec_code':'54027936','unit':'\u74f62','spec':'','xnum':'1.000','price':'15.755','refund_price':'15.755'},{'goods_title':'\u5f69\u8272\u94c5\u7b14','barcode':'694153652','only_coding':'10030007','goods_spec_code':'74038965','unit':null,'spec':'','xnum':'1.000','price':'11.817','refund_price':'11.817'}],'pays':[{'pay_method':'1','pay_method_name':'\u73b0\u91d1\u652f\u4ed8','pay_money':'322.000','pay_time':'1591775369','pay_times':'2020-06-10','pay_code':'','pay_serial_no':'OPIX200610154929146','road_pay_status':'1','remark':'\u73b0\u91d1\u652f\u4ed8\u9000\u6b3e'}]}