https://api.warehousefs.com/public/v1/item-groups/{merchantCode}/{groupMerchantIdentifier}/items/{itemMerchantIdentifier}
The items resource allows the merchant to programmatically enter catalog information into the Shipvine Logistics system. In Shipvine's vocabulary, an item is the individual stock-keeping unit (SKU) that is shipped. All of these items belong to one (and only one) item group. An item group can have zero or more items within it and it defines some common information about the items that it contains: name, country of origin, harmonized code, etc.
For example, let's say that you're selling a t-shirt that has an image of a surfer printed on it, but the t-shirt comes in four different sizes and four different fabric colors. You'd define one item group named "Surfer T-Shirt" and then put 16 items within it (for variations such as Red/Small, Red/Medium, Blue/Small, etc.).
The {merchantCode} field in the URL template should be replaced with the merchant code for the merchant that the item belongs to.
The {groupMerchantIdentifier} field in the URL should contain the merchant's identifier for the item group that contains the item.
The {itemMerchantIdentifier} field in the URL should contain the merchant's identifier for the item. This is the most important value because this value is used in many other APIs.
Example Request URL
https://api.warehousefs.com/public/v1/item-groups/CONTOSO/SURFER/items/SURFER-RED-S
No query parameters may be included in the request.
The entity body is an XML document that represents the item. If the item exists, it is updated with the information specified in the XML document.
Example Request Entity Body
<?xml version="1.0"?> <!-- (1) --> <Item> <Weight> <!-- (2) --> <Magnitude>0.25</Magnitude> <Unit>Pounds</Unit> </Weight> <Variations> <!-- (3) --> <Variation> <Type>Size</Type> <Value>Small</Value> </Variation> <Variation> <Type>Color</Type> <Value>Red</Value> </Variation> </Variations> <Barcodes> <!-- (4) --> <Barcode>1234567890</Barcode> </Barcodes> </Item>
If successful, the API will return 200 OK and an empty entity body.
If any error occurs, the HTTP status code will not be 200 OK
. An <Errors /> element may be present in the entity body.
The {merchantCode} field in the URL template should be replaced with the merchant code for the merchant that the item belongs to.
The {groupMerchantIdentifier} field in the URL should contain the merchant's identifier for the item group to which the item belongs.
The {itemMerchantIdentifier} field in the URL should contain the merchant's identifier for the item.
Example Request URL
https://api.warehousefs.com/public/v1/item-groups/CONTOSO/SURFER/items/SURFER-RED-S
No query parameters may be included in the request.
No entity body may be included in the request.
If successful, the API will return 200 OK and an entity body containing an XML document that represents the item.
If any error occurs, the HTTP status code will not be 200 OK
; for example, if the item can't be found, then a 404 Not Found
error is returned. An <Errors /> element may be present in the entity body.
Example Response Entity Body
<?xml version="1.0" encoding="utf-8"?> <Item> <ItemGroup> <MerchantIdentifier>SURFER</MerchantIdentifier> <Name>Surfer T-Shirt</Name> </ItemGroup> <MerchantIdentifier>SURFER-RED-M</MerchantIdentifier> <Weight> <Magnitude>0.3</Magnitude> <Units>Pounds</Units> </Weight> <Variations> <Variation> <Type>Size</Type> <Value>Medium</Value> </Variation> <Variation> <Type>Color</Type> <Value>Red</Value> </Variation> </Variations> <Barcodes> <Barcode>1234567890</Barcode> </Barcodes> <Inventory> <!-- (1) --> <QuantityOnHand>0</QuantityOnHand> <QuantityReserved>0</QuantityReserved> </Inventory> </Item>