文档
测试

销售订单新建

POST
https://middle.merchant.keythus.com/api/v1/order/sale/create

请求头

参数名
类型
描述
必填
content-type
string
content-type
必填

请求参数

参数名
类型
描述
必填
apiKey
string
Api Key
必填
apiSecret
string
Api Secret
必填
sign
string
签名
必填
timestamp
string
时间戳
必填
data
object
数据
必填
referenceNumber
string
关联单号
必填
saleType
string
销售类型(参考基础信息->销售类型)
必填
salePlatform
string
销售平台(参考基础信息->销售平台)
必填
saleSite
string
销售站点
必填
saleTime
datetime
销售时间(yyyy-MM-dd HH:mm:ss)
必填
totalItemsPrice
decimal
明细价格
必填
totalDiscountPrice
decimal
折扣价格
必填
totalSubPrice
decimal
小计价格
必填
totalTaxPrice
decimal
税款价格
必填
totalShippingPrice
decimal
运费价格
必填
totalPrice
decimal
总共价格
必填
currency
string
币种
必填
remark
string
备注
必填
address
object
收件地址
必填
fullName
string
姓名
必填
company
string
公司
必填
phone
string
电话
必填
email
string
邮箱
必填
countryCode
string
国家/地区编码
必填
country
string
国家/地区
必填
provinceCode
string
省/州编码
必填
province
string
省/州
必填
city
string
城市
必填
county
string
区/县
必填
address1
string
地址1
必填
address2
string
地址2
必填
address3
string
地址3
必填
zipCode
string
地址4
必填
items
object
货品明细
必填
itemId
string
明细Id(不能重复)
必填
productCode
string
货品编码
必填
productName
string
货品名称
必填
productNameEn
string
货品名称英文
必填
productLink
string
货品链接
必填
quantity
int
货品数量
必填
unitPrice
decimal
货品单价
必填
totalPrice
decimal
货品总价
必填
currency
string
币种
必填
taxPrice
decimal
货品税款
必填

响应参数

参数名
类型
描述
必填
success
bool
结果
必填
code
int
编码
必填
msg
string
消息
必填
language
string
语言
必填
data
string
业务单号
必填

说明 / 示例

1.请求报文: { "apiKey":"${apiKey}", "apiSecret":"${apiSecret}", "sign":"${sign}", "timestamp":"${timestamp}", "data":{ "referenceNumber":"2317311967001", "saleType":"OW01", "salePlatform":"OP1007", "saleSite":"welooc", "saleTime":"2020-05-26 10:06:34", "totalItemsPrice":"18.99", "totalDiscountPrice":"0", "totalSubPrice":"18.99", "totalTaxPrice":"0", "totalShippingPrice":"0", "totalPrice":"18.99", "shipping":{ "fullName":"Lonnie Snowden", "company":"", "phone":"(662) 541-5012", "email":"", "countryCode":"US", "provinceCode":"MS", "province":"Mississippi", "city":"Tunica", "county":"", "address1":"1620 Cummins Avenue", "address2":"", "address3":"", "zipCode":"38676" }, "items":[ { "itemId": "1265825091316297730", "productCode":"820201170002", "productName":"纯色特殊面料绑带三角杯分体高切比基尼", "productNameEn":"WELOOC Ribbed Bralette String Bikini Set", "productLink":"https://cdn.shopify.cn/s/files/1/0114/6621/1390/products/group_1661_590x.png?v=1585241335", "quantity":1, "taxRate":0, "taxPrice":0, "unitPrice":18.99, "totalPrice":18.99, "currency":"USD", "remark":null } ] } } 2.响应报文: { "success":true, "code":0, "msg":"成功", "language":"zh", "count":1, "data":null }