订单消息结构(使用队列读取接口获取云收订订单消息的数据结构)
消息内容
| 名称 | 是否必须 | 类型 | 示例值 | 字段描述 |
|---|---|---|---|---|
| data | 否 | object | 获取结果数据 | |
|
||||
消息结构
{
"data": {
"data_type": "zx_order",
"msg_id": "5D1425280AAD22048D66276CEC09F553",
"from_node_id": "1600196038",
"to_node_id": "1308146133",
"from_type": "youzan",
"datacenter": {
"order_id": "E20190627100839074600007",
"lastmodify": "2019-06-27 10:08:39",
"type": "cloud",
"order_type": "youzan",
"data": {
"tid": "E20190627100839074600007",
"title": "xxx",
"created": "2019-06-27 10:08:39",
"status": "TRADE_ACTIVE",
"pay_status": "PAY_NO",
"ship_status": "SHIP_NO",
"has_invoice": {},
"payer_register_no": "",
"invoice_title": "xx",
"invoice_desc": "xx",
"invoice_fee": "0",
"total_goods_fee": "6.0",
"total_trade_fee": "6.00",
"discount_fee": "0.0",
"payed_fee": "6.00",
"point_fee": "0.0",
"shipping_tid": "",
"shipping_type": "",
"shipping_fee": "",
"is_delivery": "",
"is_cod": "false",
"payment_tid": "1",
"payment_type": "在线支付",
"pay_time": "2019-06-27 10:08:39",
"goods_discount_fee": "1.0",
"orders_discount_fee": "0.0",
"promotion_details": {
"pmt_id": "5862973",
"pmt_describe": "新店开业优惠券",
"pmt_amount": "1.00"
},
"receiver_name": "张建建",
"receiver_mobile": "1370xx15017",
"receiver_email": "xxx@qq.com",
"receiver_state": "北京市",
"receiver_city": "北京市",
"receiver_district": "大兴区",
"receiver_address": "四合路与鹿四路交叉口西100米 南海家园二里(东门)",
"receiver_zip": "21000",
"receiver_phone": "137xx215017",
"receiver_time": "",
"seller_uname": "",
"seller_alipay_no": "",
"seller_mobile": "",
"seller_phone": "",
"seller_name": "",
"seller_email": "",
"seller_memo": "",
"seller_flag": "",
"buyer_name": "张建",
"buyer_alipay_no": "",
"buyer_id": "",
"buyer_uname": "张建",
"buyer_email": "",
"buyer_memo": "",
"buyer_message": "买家留言发货前请联系我",
"buyer_phone": "187xx215017",
"buyer_state": "",
"orders_number": "2",
"trade_memo": "xxxx",
"orders": {
"oid": "1524641731089273739",
"type": "goods",
"iid": "482754194",
"title": "测试商品二(不发货,不退款)",
"items_num": "2",
"weight": "",
"price": "1.0",
"sale_price": "1.0",
"discount_fee": {},
"total_order_fee": {},
"order_items": {
"bn": "A001",
"name": "测试商品二(不发货,不退款)",
"sku_id": "110",
"sku_properties": "",
"iid": "482754194",
"weight": "",
"price": "1.0",
"sale_price": "1.0",
"total_item_fee": "2.0",
"num": "2",
"item_type": "product",
"discount_fee": "0.0"
},
"status": "close or active",
"refund_status": "SUCCESS(退款成功)"
},
"is_brand_sale": "normal",
"trade_type": "fixed"
}
}
}
}
退款售后消息数据结构(通过队列数据读取接口获取售后消息数据结构)
消息内容
| 名称 | 是否必须 | 类型 | 示例值 | 字段描述 |
|---|---|---|---|---|
| data | 是 | object | 售后消息数据结构 | |
|
||||
消息结构
{
"data": {
"to_node_id": "",
"datacenter": {
"lastmodify": "",
"refund_id": "",
"order_id": "",
"order_type": "",
"data": {
"refund_id": "",
"refund_type": "",
"outer_id": "",
"attribute": "{\"key1\":\"value1\", \"key2\":\"value2\"}",
"refund_phase": "",
"refund_version": "",
"tid": "",
"sid": "",
"has_good_return": "",
"company_name": "",
"status": "",
"oid": "",
"cs_status": "",
"reason": "",
"refund_fee": "",
"descd": "",
"payment_id": "",
"trade_status": "",
"created": "",
"seller_nick": "",
"buyer_nick": "",
"modified": "",
"operation_constraint": "",
"refund_item_list": {
"return_item": {
"price": "",
"oid": "",
"modified": "",
"num": "",
"item_id": "",
"outer_id": ""
}
}
}
},
"data_type": "",
"msg_id": "",
"from_type": "",
"from_node_id": ""
}
}
分销订单消息结构(使用队列读取接口获取云收订分销订单消息的数据结构)
消息内容
| 名称 | 是否必须 | 类型 | 示例值 | 字段描述 |
|---|---|---|---|---|
| data | 否 | object | 获取结果数据 | |
|
||||
消息结构
{
"data": {
"to_node_id": "",
"datacenter": {
"order_id": "",
"lastmodify": "",
"type": "",
"order_type": "",
"data": {
"fenxiao_id": "",
"tc_order_id": "",
"supplier_memo": "",
"pay_type": "",
"trade_type": "",
"distributor_from": "",
"id": "",
"status": "",
"buyer_nick": "",
"memo": "",
"supplier_from": "",
"tsupplier_username": "",
"distributor_username": "",
"created": "",
"alipay_no": "",
"total_fee": "CNY",
"post_fee": "",
"distributor_payment": "",
"snapshot_url": "",
"pay_time": "",
"consign_time": "",
"modified": "",
"receiver": {
"name": "",
"phone": "",
"mobile_phone": "",
"province": "",
"city": "",
"country": "",
"address": "",
"zip": ""
},
"sub_purchase_orders": [
{
"refund_fee": "",
"id": "",
"fenxiao_id": "",
"sub_tc_order_id": "",
"item_id": "",
"item_outer_id": "",
"sku_id": "",
"sku_outer_id": "",
"sku_properties": "",
"num": "",
"title": "",
"price": "",
"distributor_payment": "",
"buyer_payment": "",
"status": ""
}
]
}
},
"data_type": "",
"msg_id": "",
"from_type": "",
"from_node_id": ""
}
}
发票消息结构(发票信息)
消息内容
| 名称 | 是否必须 | 类型 | 示例值 | 字段描述 |
|---|---|---|---|---|
| data | 否 | object | 获取结果数据 | |
|
||||
消息结构
{
"data": {
"to_node_id": "1804186939",
"datacenter": {
"invoice_type": "blue",
"payer_name": "鄂尔多斯市xxx",
"userId": "2201229",
"topic": "alibaba_invoice_Apply",
"tid": "596862691553935532",
"pubTime": "51623-09-08 00:35:40",
"payer_register_no": "91150602575664748G",
"platform_tid": "596862691553935532",
"id": "8928895600920458",
"platform_code": "TM",
"business_type": "1",
"trigger_status": "buyer_payed",
"pubAppKey": "124979",
"invoice_kind": "0",
"content": "buyer_payed",
"outgoingTime": "51623-09-08 00:40:14",
"apply_id": "01wQpUTSvTYM3WNxxZgHZuozObzt7tmMQlTIFHCsMqJ6I",
"invoice_items": {
"item_name": "京东方潮牌智能体脂秤体脂称电子秤体重秤运动减脂肥男女生宿舍 悦享版",
"price": "159.0",
"specification": "",
"amount": "59.0",
"quantity": "1"
},
"invoice_amount": "59.0",
"userNick": "xxx旗舰店"
},
"data_type": "einvoice",
"msg_id": "7858C1E3AC100067F3B51A15DEAA5BBB",
"from_type": "taobao",
"from_node_id": "1705176031"
}
}