curl --request POST \
--url https://{base_url_domain}/api/global/v1/inventory/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"resource": {
"type": "Product",
"vendor_sku": "Vendor-SKU-1AD2",
"external_id": "11-993-9048",
"barcodes": [
"956623520-4",
"O-VS-Oregano-p3"
],
"goods_type": "NORMAL",
"is_available": true,
"is_visible": true,
"lot_type": {
"type": "LotType",
"id": 4
},
"weight": {
"value": 20,
"unit": "lb"
},
"dimensions": {
"length": 8,
"width": 6,
"height": 4,
"unit": "in"
},
"volume": {
"value": 300,
"unit": "in^3"
},
"inventory": {
"backorders": true,
"dynamic_allocation": true,
"virtual_inventory": "optimistic"
},
"export": {
"description": "Plastic children's toy with steel weights and ball bearings",
"customs_value": {
"amount": 99,
"currency": "USD"
},
"country_of_manufacture": "TW",
"hs_base_code": "8518.30",
"hs_country_extension": [
{
"country_id": "TW",
"extension": "002"
},
{
"country_id": "US",
"extension": "011"
}
]
},
"regulated_goods": {
"regulation": {
"type": "Regulation",
"id": 123
},
"technical_name": "Hydro Polymer Acetylene Coating",
"additional_information": "Flamable Liquid",
"net_weight": {
"value": 20,
"unit": "lb"
},
"container_type": "Plastic Box",
"container_meets_hazmat_specs": true,
"regulation_units": 5
},
"packaging": {
"require_packaging": true,
"require_weight_check": true,
"require_confirmation_per_item": true,
"unit_quantity": 1,
"bulk_quantity": 10,
"max_per_package": 15,
"is_ship_separately": true,
"ship_separately_tag": "PVC",
"can_tip": true,
"can_contain_other_items": true,
"is_handling_surcharge": true
},
"custom_fields": [
{
"code": "color",
"value": 13,
"label": "Red and Black"
},
{
"code": "cost_of_goods",
"value": 41.32
},
{
"code": "allow_mailer",
"value": true
}
],
"sku": "SKU-1AD",
"name": "Test Product",
"is_enabled": true,
"merchant": {
"type": "Merchant",
"id": 4
}
}
}
EOF{
"resource": {
"type": "<string>",
"id": 1
},
"meta": {
"processing_time": 123
}
}Creates a new Product or PackagingFeature in ShipStream according to the request body.
curl --request POST \
--url https://{base_url_domain}/api/global/v1/inventory/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"resource": {
"type": "Product",
"vendor_sku": "Vendor-SKU-1AD2",
"external_id": "11-993-9048",
"barcodes": [
"956623520-4",
"O-VS-Oregano-p3"
],
"goods_type": "NORMAL",
"is_available": true,
"is_visible": true,
"lot_type": {
"type": "LotType",
"id": 4
},
"weight": {
"value": 20,
"unit": "lb"
},
"dimensions": {
"length": 8,
"width": 6,
"height": 4,
"unit": "in"
},
"volume": {
"value": 300,
"unit": "in^3"
},
"inventory": {
"backorders": true,
"dynamic_allocation": true,
"virtual_inventory": "optimistic"
},
"export": {
"description": "Plastic children's toy with steel weights and ball bearings",
"customs_value": {
"amount": 99,
"currency": "USD"
},
"country_of_manufacture": "TW",
"hs_base_code": "8518.30",
"hs_country_extension": [
{
"country_id": "TW",
"extension": "002"
},
{
"country_id": "US",
"extension": "011"
}
]
},
"regulated_goods": {
"regulation": {
"type": "Regulation",
"id": 123
},
"technical_name": "Hydro Polymer Acetylene Coating",
"additional_information": "Flamable Liquid",
"net_weight": {
"value": 20,
"unit": "lb"
},
"container_type": "Plastic Box",
"container_meets_hazmat_specs": true,
"regulation_units": 5
},
"packaging": {
"require_packaging": true,
"require_weight_check": true,
"require_confirmation_per_item": true,
"unit_quantity": 1,
"bulk_quantity": 10,
"max_per_package": 15,
"is_ship_separately": true,
"ship_separately_tag": "PVC",
"can_tip": true,
"can_contain_other_items": true,
"is_handling_surcharge": true
},
"custom_fields": [
{
"code": "color",
"value": 13,
"label": "Red and Black"
},
{
"code": "cost_of_goods",
"value": 41.32
},
{
"code": "allow_mailer",
"value": true
}
],
"sku": "SKU-1AD",
"name": "Test Product",
"is_enabled": true,
"merchant": {
"type": "Merchant",
"id": 4
}
}
}
EOF{
"resource": {
"type": "<string>",
"id": 1
},
"meta": {
"processing_time": 123
}
}Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.
An object conforming to the Inventory Product or PackagingFeature schema to be created.
A Product contains information about a sellable item.
Show child attributes
This property describes the type of object in the response body.
Product For informational use only. Displayed during delivery processing to help match products.
Optional Field
"Vendor-SKU-1AD2"
May be used for external product sync.
"11-993-9048"
A comma separated list of unique packaging feature barcodes.
["956623520-4", "O-VS-Oregano-p3"]This defines the regulations, if any, assigned to a Product.
NORMAL Not RegulatedORM_D ORM-DLIMITED_QUANTITIES_COMMODITIES Limited Quantities: Consumer CommodityHAZMAT RegulatedNORMAL, ORM_D, LIMITED_QUANTITIES_COMMODITIES, HAZMAT This flag must be true to allow the Product to be ordered.
true, false This flag must be true to show the Product in the inventory feed.
true, false This LotType determines how a Product should be "burned" and whether lots with dissimilar data
can be "mixed".
Optional Field
This object defines the weight of the Product in imperial or metric units.
Optional Field
This object defines the length, width, and height of the Product in imperial or metric units.
Optional Field
Show child attributes
This distance value is usually assigned to the longest side of the object and is defined as a floating-point number up to 4 decimal places.
8
This value describes the horizontal distance of the subject defined as a floating-point number up to 4 decimal places.
6
This value describes the vertical distance of the subject defined as a floating-point number up to 4 decimal places.
4
The imperical or metric unit of measurement.
in, mm, cm, m This object defines the cubic size of the Product in imperial or metric units.
Optional Field
Show child attributes
This object describes how the Product Stock is defined, such as real config values, or Virtual Inventory, and how to handle Backorders.
Optional Field
Show child attributes
This determines if Product that is no longer in stock may be backordered or whether or not to use ShipStream's scoped configurations.
true
This will allow the Product to source from inventory in other warehouses in real-time if enabled, and can be set to use ShipStream's scoped configurations.
true
This is the method used to predict an esitmate of inventory available when kitting from the Product.
none, optimistic, realistic, pessimistic "optimistic"
This object contains fields for describing and codifying an internationally exportable Product.
Optional Field
Show child attributes
This is used to describe in detail the Product for international shipping and customs regulations.
"Plastic children's toy with steel weights and ball bearings"
The value of the products the purpose of calculating duties and taxes in the destination country.
2 letters Country ISO Code
"TW"
This is the Harmonized System Code (HS Code); a standardized numerical method of classifying traded products. These are 6 digit codes in the format ###.## which are associated with a standard HS Code Description.
"8518.30"
[
{ "country_id": "TW", "extension": "002" },
{ "country_id": "US", "extension": "011" }
]This object only applies a Product using the "Regulated" Goods Type, and describes the Regulation and container specifications for the Product.
Optional Field
Show child attributes
A reference to a Regulation by id.
Show child attributes
Must match against Regulation's Technical Name Pattern if specified.
"Hydro Polymer Acetylene Coating"
Must match against Regulation's Additional Regulatory Information Pattern if specified.
"Flamable Liquid"
Show child attributes
The Overpack Container Type can be a combination of material and container type such as Aluminum Box, Steel Drum, or a combination of a material and container type from these two lists:
Material: Aluminum, Fiberboard, Glass, Plywood, Plastic, Steel, WoodContainer: Bag, Bottle, Box, Bucket, Cylinder, Drum, Jerrican, Pail"Plastic Box"
This flag indicates that the RegulatedGoods container is sufficient for a regulated (HAZMAT) product.
true
These units are arbitrary and should be relative to the Regulation's Pickup Weight Limit. E.g. it could be in pounds, kilowatt/hours, etc.
5
This object defines how the shipping container/box for the Product is to be processed and whether there are any special instructions during packing.
Optional Field
Show child attributes
If Yes, packaging will require a Box with "Satisfies Overbox: Yes".
true, false true
If Yes, the associated product will require the use of a scale to verify that the package's weight falls within the expected amount. If this is set to No, this step will be skipped by the packer.
true, false true
If Yes, Packaging Products with "One Scan Per: Item" will require a scan for each item packed rather than just one for the first item in a package.
true, false true
Number of individually packaged items contained therein for purposes of special packaging features.
1
Prefer to split into packages when necessary using multiples of this amount.
10
The maximum quantity of this product to ever include in the same package. Multiply by "Unit Quantity" to achieve common units between other products with the same "Ship Separate Tag" value.
15
This item cannot ship in the same package as other items (unless they have the same "Ship Separate Tag").
true, false true
Applies only if "Ship Separate" is "Yes". Assign the same tag to treat similar products as interchangeable with respect to the "Ship Separate" and "Max Per Package" attribute.
"PVC"
If Yes, the item is allowed to be rotated vertically when packed.
true, false true
If Yes then other smaller items are allowed to be placed within this larger item. This is useful when the item is hollow or is a bin/bucket.
true, false true
The Packaging Surcharge is applicable when shipped without an Overbox.
true, false true
This will set any Product Attributes, pre-defined by the user, for the Product.
Optional Field
[
{
"code": "color",
"value": 13,
"label": "Red and Black"
},
{ "code": "cost_of_goods", "value": 41.32 },
{ "code": "allow_mailer", "value": true }
]The Stock Keeping Unit (SKU) is a unique identifier for the Product.
"SKU-1AD"
This is displayed as a short, descriptive title for the Product.
"Test Product"
Disabled products are effectively deleted.
true, false Created - The resource was created successfully.
Was this page helpful?