https://api.warehousefs.com/public/v1/inventory
The inventory resource represents a "collection" of all of the current inventories recorded in the Shipvine Logistics system. Merchants can extract information about their stock levels by sending GET requests to this resource.
The method supports the following query parameters:
Parameter | Required? | Description |
---|---|---|
merchant-code | Yes | The unique merchant code assigned to the merchant's account. |
changed-since | No |
A date and time, in universal coordinated time (UTC). If specified, only inventory records that have been created at Shipvine Logistics since the specified date and time will be returned in the response. If not specified, the first few thousand current inventory records associated with the merchant's account will be returned. The date and time should be in a format that is readily parsable. The canonical date and time format is ISO 8601 format. For example, 1994-11-05T13:15:30Z. For most integrations, the typical behavior is to leave out the changed-since parameter on the first request of the installation, and then send the parameter on each subsequent request. Doing this keeps transfer times between the Shipvine Logistics API and the merchant's e-commerce server low by only sending the inventory records that have been created since the last request. |
Example Request Query String
https://api.warehousefs.com/public/v1/inventory?merchant-code=CONTOSO
Example Request Query String
https://api.warehousefs.com/public/v1/inventory?merchant-code=CONTOSO&changed-since=2009-10-15T16:45:00Z
No entity body may be specified in the request.
If successful, the API will return 200 OK as well as a <Inventories /> element in the entity body. See the XML schema for details about that element.
If any error occurs, the HTTP status code will not be
200 OK
. An <Errors /> element
may
be present in the entity body.
Example Response Entity Body
<?xml version="1.0" encoding="utf-8"?> <Inventories xmlns="urn:WarehouseFS-1.0"> <Inventory> <Item> <MerchantIdentifier>6146825-River Plaid-Medium</MerchantIdentifier> <-- (1) --> </Item> <Quantities> <QuantityOnHand>2</QuantityOnHand> <-- (2) --> <QuantityReserved>0</QuantityReserved> <-- (3) --> </Quantities> </Inventory> <Inventory> <Item> <MerchantIdentifier>6162318-Franklin Stripe-Medium</MerchantIdentifier> </Item> <Quantities> <QuantityOnHand>1</QuantityOnHand> <QuantityReserved>0</QuantityReserved> </Quantities> </Inventory> </Inventories>