- Default Group
- Product
- Inbound Plan
- Inventory
- Orders
Create Sales Order (with attachments)
POST
/v1/saleOrder/create
Request
Header Params
x-api-key
string
required
Example:
abc123(认证信息)
Content-Type
string
required
Example:
application/json
Body Params application/json
orderNo
string
required
carrier
string
optional
carrierCode
string
optional
warehouseCode
string
optional
currency
string
optional
paidAt
string
optional
shipToCountry
string
required
shipToState
string
required
shipToCity
string
required
shipToPostal
string
required
shipToAddress1
string
required
shipToAddress2
string
optional
shipToContact
string
required
buyerName
string
optional
buyerEmail
string
optional
shipToTelephone
string
required
thirdPartyAccount
string
optional
shipServiceLevel
string
optional
poNumber
string
optional
channelAccount
string
optional
isPrime
integer
optional
productItems
array [object {6}]
required
sku
string
optional
quantity
integer
optional
isInsure
integer
optional
isSignature
integer
optional
skuAmount
number
optional
insureAmount
number
optional
attachInfoItems
array [object {5}]
optional
name
string
optional
url
string
optional
file
string
optional
type
integer
optional
remark
string
optional
Example
{
"orderNo": "string",
"carrier": "string",
"carrierCode": "string",
"warehouseCode": "string",
"currency": "string",
"paidAt": "string",
"shipToCountry": "string",
"shipToState": "string",
"shipToCity": "string",
"shipToPostal": "string",
"shipToAddress1": "string",
"shipToAddress2": "string",
"shipToContact": "string",
"buyerName": "string",
"buyerEmail": "string",
"shipToTelephone": "string",
"thirdPartyAccount": "string",
"shipServiceLevel": "string",
"poNumber": "string",
"channelAccount": "string",
"isPrime": 0,
"productItems": [
{
"sku": "string",
"quantity": 0,
"isInsure": 0,
"isSignature": 0,
"skuAmount": 0,
"insureAmount": 0
}
],
"attachInfoItems": [
{
"name": "string",
"url": "string",
"file": "string",
"type": 0,
"remark": "string"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/v1/saleOrder/create' \
--header 'x-api-key: abc123(认证信息)' \
--header 'Content-Type: application/json' \
--data-raw '{
"orderNo": "string",
"carrier": "string",
"carrierCode": "string",
"warehouseCode": "string",
"currency": "string",
"paidAt": "string",
"shipToCountry": "string",
"shipToState": "string",
"shipToCity": "string",
"shipToPostal": "string",
"shipToAddress1": "string",
"shipToAddress2": "string",
"shipToContact": "string",
"buyerName": "string",
"buyerEmail": "string",
"shipToTelephone": "string",
"thirdPartyAccount": "string",
"shipServiceLevel": "string",
"poNumber": "string",
"channelAccount": "string",
"isPrime": 0,
"productItems": [
{
"sku": "string",
"quantity": 0,
"isInsure": 0,
"isSignature": 0,
"skuAmount": 0,
"insureAmount": 0
}
],
"attachInfoItems": [
{
"name": "string",
"url": "string",
"file": "string",
"type": 0,
"remark": "string"
}
]
}'
Responses
🟢200成功
application/json
Body
statusCode
number
required
status
number
required
code
number
required
message
string
required
data
object
required
orderId
integer
required
Example
{
"statusCode": 200,
"status": 0,
"code": 200,
"message": "创建订单成功",
"data": {
"orderId": 193252852
}
}
Modified at 2023-12-12 02:15:02