PUT /variants/{id}/push-channel-cost-price.json
Path parameters
-
id integer(int64) Required
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
accountingSync string | null Required
You may want to omit some items from syncing with your accounting integrations, such as QuickBooks and Xero.
Values are
active
ordisabled
. Default value isactive
. -
automaticallyBackorder string | null Required
Automatically backorder
Values are
vendor_default
,backorder
, orignore
. Default value isvendor_default
. -
backorderQuantity integer(int32) | null Required
Backorder quantity
Default value is
0
. -
barcode string | null
Barcode
-
commissionRate number | null Required
Commission rate
Default value is
0
. -
commissionRateRouting string | null Required
Commission rate routing
Values are
dropship_provider
orvariant
. Default value isdropship_provider
. -
commissionRateType string | null Required
Commission rate type
Values are
percentage
orfixed
. Default value ispercentage
. -
costPrice number Required
Cost price
Default value is
0
. -
countryOfOrigin string | null
Country of origin
-
createdAt string(date-time)
Created at
-
defaultPurchaseQuantity integer(int32) | null Required
Default purchase quantity
Default value is
1
. -
denyThreshold integer(int32) | null Required
Deny threshold
Default value is
0
. -
description string | null
Description
-
distanceUnit string | null Required
Distance unit
Values are
in
orcm
. Default value isin
. -
dropshipProviderAddressId integer(int32) | null
Dropship provider address
-
dropshipProviderAddressMapping string | null Required
Dropship provider address mapping
Values are
default
ormanual
. Default value isdefault
. -
dropshipProviderId integer(int32) | null
Dropship provider
-
dropshipProviderMapping string | null Required
Dropship provider mapping
Values are
brand_name
ormanual
. Default value isbrand_name
. -
dynamicInventoryPolicy boolean | null
Dynamic inventory policy
-
fulfillmentPolicy string | null Required
Fulfillment policy
Values are
vendor_default
,manual
,dropship
,fulfill
, orblended
. Default value isvendor_default
. -
grams number(float) | null Required
Grams
Default value is
0
. -
hsCode string | null
Hs code
-
id integer(int32)
Id
- imagesMapped object | null | array | boolean | integer | number | string
-
inventoryAllocated integer(int32) Required
Inventory allocated
Default value is
0
. -
inventoryFeeds integer(int32) | null Required
Inventory feeds
Default value is
0
. -
inventoryPolicy string Required
Inventory policy
Values are
ignore
,deny
,continue
,dropship
, ortrack
. Default value istrack
. -
inventoryQuantity integer(int32) Required
Inventory quantity
Default value is
0
. -
inventoryRouting string | null Required
Inventory routing
Values are
inventory_feed
ormanual
. Default value isinventory_feed
. -
inventorySync string | null Required
Select whether to sync inventory for this item. This may be useful if you want to omit specific SKUs from being stock managed in Jetti.
Values are
channel
ordisabled
. Default value ischannel
. -
inventoryType string Required
Inventory type
Values are
tracked
,serialized
,bundle
, orservice
. Default value istracked
. -
leadTime integer(int32) | null
Lead time
-
lowInventoryQuantity boolean | null
Low inventory quantity
-
minInventoryQuantity integer(int32) | null Required
Min inventory quantity
Default value is
0
. -
name string Required
Name
-
noInventoryPolicy string | null Required
No inventory policy
Values are
vendor_default
,manual
,dropship
, orreplenish
. Default value isreplenish
. -
notes string | null
Notes
-
orderSplitting string | null Required
Order splitting
Values are
group
,splitQuantity
, ordefault
. Default value isdefault
. -
packingDepth integer(int32) | null Required
Packing depth
Default value is
0
. -
packingHeight integer(int32) | null Required
Packing height
Default value is
0
. -
packingWidth integer(int32) | null Required
Packing width
Default value is
0
. -
position number(float) | null Required
Position
Default value is
0
. -
productId integer(int32) Required
Product
-
productType string | null
Product type
-
requiresShipping boolean | null
Requires shipping
-
resellerVisibility string | null Required
Reseller visibility
Values are
visible
,hidden
, orselected
. Default value isvisible
. -
serialPrefix string | null
Serial prefix
-
serialReference integer(int32) | null Required
Serial reference
Default value is
0
. -
serialSuffix string | null
Serial suffix
-
sku string Required
Sku
-
taxable boolean Required
Whether a tax is charged when the product variant is sold.
Default value is
true
. -
totalPurchaseItems integer(int32) Required
Total purchase items
Default value is
0
. -
totalSaleItems integer(int32) Required
Total sale items
Default value is
0
. -
updatedAt string(date-time)
Updated at
-
vendorId integer(int32) | null
Vendor
-
vendorSku string | null
Vendor sku
Maximum length is
50
.
curl \
-X PUT http://api.example.com/v1/variants/{id}/push-channel-cost-price.json \
-H "Content-Type: application/json" \
-d '{"accountingSync":"active","automaticallyBackorder":"vendor_default","backorderQuantity":0,"barcode":"string","commissionRate":0,"commissionRateRouting":"dropship_provider","commissionRateType":"percentage","costPrice":0,"countryOfOrigin":"string","createdAt":"2023-05-04T09:42:00+00:00","defaultPurchaseQuantity":1,"denyThreshold":0,"description":"string","distanceUnit":"in","dropshipProviderAddressId":42,"dropshipProviderAddressMapping":"default","dropshipProviderId":42,"dropshipProviderMapping":"brand_name","dynamicInventoryPolicy":true,"fulfillmentPolicy":"vendor_default","grams":0,"hsCode":"string","id":42,"images":[],"imagesMapped":{},"inventoryAllocated":0,"inventoryFeeds":0,"inventoryPolicy":"track","inventoryQuantity":0,"inventoryRouting":"inventory_feed","inventorySync":"channel","inventoryType":"tracked","leadTime":42,"levels":{},"lowInventoryQuantity":true,"minInventoryQuantity":0,"name":"string","noInventoryPolicy":"replenish","notes":"string","orderSplitting":"default","packingDepth":0,"packingHeight":0,"packingWidth":0,"position":0,"productId":42,"productType":"string","requiresShipping":true,"resellerVisibility":"visible","serialPrefix":"string","serialReference":0,"serialSuffix":"string","sku":"string","tags":["string"],"taxable":true,"totalPurchaseItems":0,"totalSaleItems":0,"updatedAt":"2023-05-04T09:42:00+00:00","vendorId":42,"vendorSku":"string"}'
{
"accountingSync": "active",
"automaticallyBackorder": "vendor_default",
"backorderQuantity": 0,
"barcode": "string",
"commissionRate": 0,
"commissionRateRouting": "dropship_provider",
"commissionRateType": "percentage",
"costPrice": 0,
"countryOfOrigin": "string",
"createdAt": "2023-05-04T09:42:00+00:00",
"defaultPurchaseQuantity": 1,
"denyThreshold": 0,
"description": "string",
"distanceUnit": "in",
"dropshipProviderAddressId": 42,
"dropshipProviderAddressMapping": "default",
"dropshipProviderId": 42,
"dropshipProviderMapping": "brand_name",
"dynamicInventoryPolicy": true,
"fulfillmentPolicy": "vendor_default",
"grams": 0,
"hsCode": "string",
"id": 42,
"images": [],
"imagesMapped": {},
"inventoryAllocated": 0,
"inventoryFeeds": 0,
"inventoryPolicy": "track",
"inventoryQuantity": 0,
"inventoryRouting": "inventory_feed",
"inventorySync": "channel",
"inventoryType": "tracked",
"leadTime": 42,
"levels": {},
"lowInventoryQuantity": true,
"minInventoryQuantity": 0,
"name": "string",
"noInventoryPolicy": "replenish",
"notes": "string",
"orderSplitting": "default",
"packingDepth": 0,
"packingHeight": 0,
"packingWidth": 0,
"position": 0,
"productId": 42,
"productType": "string",
"requiresShipping": true,
"resellerVisibility": "visible",
"serialPrefix": "string",
"serialReference": 0,
"serialSuffix": "string",
"sku": "string",
"tags": [
"string"
],
"taxable": true,
"totalPurchaseItems": 0,
"totalSaleItems": 0,
"updatedAt": "2023-05-04T09:42:00+00:00",
"vendorId": 42,
"vendorSku": "string"
}
{
"accountingSync": "active",
"automaticallyBackorder": "vendor_default",
"backorderQuantity": 0,
"barcode": "string",
"commissionRate": 0,
"commissionRateRouting": "dropship_provider",
"commissionRateType": "percentage",
"costPrice": 0,
"countryOfOrigin": "string",
"createdAt": "2023-05-04T09:42:00+00:00",
"defaultPurchaseQuantity": 1,
"denyThreshold": 0,
"description": "string",
"distanceUnit": "in",
"dropshipProviderAddressId": 42,
"dropshipProviderAddressMapping": "default",
"dropshipProviderId": 42,
"dropshipProviderMapping": "brand_name",
"dynamicInventoryPolicy": true,
"fulfillmentPolicy": "vendor_default",
"grams": 0,
"hsCode": "string",
"id": 42,
"images": [],
"imagesMapped": {},
"inventoryAllocated": 0,
"inventoryFeeds": 0,
"inventoryPolicy": "track",
"inventoryQuantity": 0,
"inventoryRouting": "inventory_feed",
"inventorySync": "channel",
"inventoryType": "tracked",
"leadTime": 42,
"levels": {},
"lowInventoryQuantity": true,
"minInventoryQuantity": 0,
"name": "string",
"noInventoryPolicy": "replenish",
"notes": "string",
"orderSplitting": "default",
"packingDepth": 0,
"packingHeight": 0,
"packingWidth": 0,
"position": 0,
"productId": 42,
"productType": "string",
"requiresShipping": true,
"resellerVisibility": "visible",
"serialPrefix": "string",
"serialReference": 0,
"serialSuffix": "string",
"sku": "string",
"tags": [
"string"
],
"taxable": true,
"totalPurchaseItems": 0,
"totalSaleItems": 0,
"updatedAt": "2023-05-04T09:42:00+00:00",
"vendorId": 42,
"vendorSku": "string"
}