POST /sale-items.json
Body Required
- allocation object | null | array | boolean | integer | number | string
-
bundleQuantity integer(int32) | null Required
Bundle quantity
Default value is
0
. -
bundleSaleItemId integer(int32) | null
Bundle sale item
-
channelCompareAtPrice number | null
Channel compare at price
-
channelPrice number | null
Channel price
-
cloneSaleItemId integer(int32) | null
Clone sale item
-
commercialInvoicePrice number | null
Commercial invoice price
-
costPrice number | null
Cost price
-
discount number | null
Discount
- discountAllocated object | null | array | boolean | integer | number | string
Any of: Discount allocated
Discount allocated
Discount allocated
Discount allocated
Discount allocated
Discount allocated
-
dropshipProviderId integer(int32) | null
Dropship provider
-
externalId string | null
External
-
externalVariantId string | null
External variant
-
inventoryProcessed integer(int32) Required
Inventory processed
Default value is
0
. -
isBundle boolean Required
Is bundle
Default value is
false
. -
location string | null
Location
-
locked boolean Required
Locked
Default value is
false
. -
manualRouting string | null
Manual routing
Values are
dropship
orfulfill
. -
name string Required
Name
-
orderRouting string | null Required
Order routing
Values are
automated
,manual
, orignore
. Default value isautomated
. -
preventDuplicates boolean | null Required
Prevent duplicates
Default value is
false
. -
price number Required
Price
Default value is
0
. - properties object | null | array | boolean | integer | number | string
-
quantity integer(int32) Required
Quantity
Default value is
1
. -
quantityCancelled integer(int32) Required
Quantity cancelled
Default value is
0
. -
quantityInvoiced integer(int32) Required
Quantity invoiced
Default value is
0
. -
quantityRefunded integer(int32) Required
Quantity refunded
Default value is
0
. -
quantityReturned integer(int32) Required
Quantity returned
Default value is
0
. -
saleId integer(int32) Required
Sale
-
subtotal number Required
Subtotal
Default value is
0
. -
tax number Required
Tax
Default value is
0
. -
taxRate number(float) | null
Tax rate
-
taxable boolean Required
Taxable
Default value is
false
. -
unallocated boolean | null Required
Unallocated
Default value is
false
. -
variantId integer(int32) | null
Variant
-
warehouseId integer(int32) | null
Warehouse
curl \
-X POST http://api.example.com/v1/sale-items.json \
-H "Content-Type: application/json" \
-d '{"allocation":{},"bundleQuantity":0,"bundleSaleItemId":42,"channelCompareAtPrice":42.0,"channelPrice":42.0,"cloneSaleItemId":42,"commercialInvoicePrice":42.0,"costPrice":42.0,"discount":42.0,"discountAllocated":{},"discounts":{},"dropshipProviderId":42,"externalId":"string","externalVariantId":"string","inventoryProcessed":0,"isBundle":false,"location":"string","locked":false,"manualRouting":"dropship","name":"string","notes":{},"orderRouting":"automated","preventDuplicates":false,"price":0,"properties":{},"quantity":1,"quantityCancelled":0,"quantityInvoiced":0,"quantityRefunded":0,"quantityReturned":0,"saleId":42,"subtotal":0,"tax":0,"taxRate":42.0,"taxable":false,"unallocated":false,"variantId":42,"warehouseId":42}'
{
"allocation": {},
"bundleQuantity": 0,
"bundleSaleItemId": 42,
"channelCompareAtPrice": 42.0,
"channelPrice": 42.0,
"cloneSaleItemId": 42,
"commercialInvoicePrice": 42.0,
"costPrice": 42.0,
"discount": 42.0,
"discountAllocated": {},
"discounts": {},
"dropshipProviderId": 42,
"externalId": "string",
"externalVariantId": "string",
"inventoryProcessed": 0,
"isBundle": false,
"location": "string",
"locked": false,
"manualRouting": "dropship",
"name": "string",
"notes": {},
"orderRouting": "automated",
"preventDuplicates": false,
"price": 0,
"properties": {},
"quantity": 1,
"quantityCancelled": 0,
"quantityInvoiced": 0,
"quantityRefunded": 0,
"quantityReturned": 0,
"saleId": 42,
"subtotal": 0,
"tax": 0,
"taxRate": 42.0,
"taxable": false,
"unallocated": false,
"variantId": 42,
"warehouseId": 42
}
{
"allocation": {},
"bundleQuantity": 0,
"bundleSaleItemId": 42,
"channelCompareAtPrice": 42.0,
"channelPrice": 42.0,
"cloneSaleItemId": 42,
"commercialInvoicePrice": 42.0,
"costPrice": 42.0,
"createdAt": "2023-05-04T09:42:00+00:00",
"discount": 42.0,
"discountAllocated": {},
"discounts": {},
"dropshipProviderId": 42,
"externalId": "string",
"externalVariantId": "string",
"id": 42,
"inventoryProcessed": 0,
"isBundle": false,
"location": "string",
"locked": false,
"manualRouting": "dropship",
"name": "string",
"notes": {},
"orderRouting": "automated",
"preventDuplicates": false,
"price": 0,
"properties": {},
"quantity": 1,
"quantityCancelled": 0,
"quantityInvoiced": 0,
"quantityRefunded": 0,
"quantityReturned": 0,
"saleId": 42,
"subtotal": 0,
"tax": 0,
"taxRate": 42.0,
"taxable": false,
"unallocated": false,
"updatedAt": "2023-05-04T09:42:00+00:00",
"variantId": 42,
"warehouseId": 42
}