文档
测试

订单数据回显

GET
/sale-order/the-echo-data

接口描述

添加、编辑销售单时数据的回显

请求头

参数名
类型
描述
必填
token
string
token
必填

请求参数

参数名
类型
描述
必填
id
int
销售单ID
必填

响应参数

参数名
类型
描述
必填
SaleOrder
array
销售单信息
必填
shop_id
int
店铺ID
必填
platform_order_id
int
平台订单ID
必填
sold_date_time
datetime
销售时间 如:2020-10-10 08:00:00
必填
saveChildrenString
array
商品信息
必填
yangtao_sku
string
洋桃SKU
必填
sku
string
sku
必填
shop_item_id
string
Item ID
必填
transaction_id
string
销售项交易ID
必填
sale_price
float
售价
必填
discount
float
折扣金额
必填
picUrl
string
产品头图
必填
product_name
string
产品名称
必填
product_id
int
产品ID
必填
quantity
int
产品数量
必填
stock
int
可用库存
必填
shipping_fee
float
订单运费
必填
SaleOrderAttrExtend
array
销售单扩展属性信息
必填
shop_order_number
string
平台单号
必填
payment_method
int
支付方式ID
必填
payment_transaction_id
string
支付交易号
必填
created_notes
string
备注
必填
type
int
订单类型ID
必填
SaleOrderCustomerInfo
array
销售单客户信息
必填
customer_fullname
string
客户姓名
必填
customer_phone
string
手机
必填
customer_email
string
邮箱
必填
customer_state
string
省份
必填
customer_city
string
城市
必填
customer_town
string
必填
customer_street1
string
街道地址1
必填
customer_zip
string
邮编
必填
orderTypeList
array
订单类型列表
必填
paymentList
array
支付方式列表
必填

说明 / 示例

````json { "code": 1, "msg": "成功", "data": { "saleOrder": { "shopId": 396, "platformOrderId": "test", "soldDateTime": "2020-12-02 00:00:00", "saveChildrenString": [ { "_class": "bg-success", "id": "", "yangtao_sku": "2004010020210015082000", "sku": "562164", "shop_item_id": "", "transaction_id": "", "sale_price": "100.0000", "discount": 0, "picUrl": "/AZY9E/3A3MR6O.jpg", "product_name": "纯色V领套头毛衣紫色 F", "product_id": "562073", "quantity": 1 } ] }, "saleOrderAttrExtend": { "shopOrderNumber": "test1", "paymentMethod": 71, "paymentTransactionId": "123123as", "createdNotes": "test" }, "saleOrderCustomerInfo": { "customerFullname": "tao liu", "customerPhone": "13250521950", "customerEmail": "a136697483@163.com", "customerState": "New South Wales", "customerCity": "testtest", "customerTown": "testtest", "customerStreet1": "test1", "customerZip": "3737" }, "orderTypeList": { "1": "普通", "3": "重发/补发", "4": "赠送", "5": "拆单", "6": "刷单" }, "paymentList": { "71": "支付宝", "72": "微信" } } } ````