https://api.warehousefs.com/public/v1/inbound-shipments/{merchantCode}
This version of the inbound shipments resource allows the merchant to query for a listing of inbound shipments that may have been recently completed.
The {merchantCode} field in the URL template should be replaced with the merchant code for the merchant that the inbound shipment belongs to..
Example Request URL
https://api.warehousefs.com/public/v1/inbound-shipments/CONTOSO?state=Complete&changed-since=2014-10-15T16:45:00Z
The method supports the following query parameters:
Parameter | Required? | Description |
---|---|---|
state | No |
Returns only inbound shipments matching the given state. Valid values are Complete, NotComplete, and Legacy (for inbound shipments received prior to 2014). |
changed-since | No |
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. |
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 inbound shipment.
If any error occurs, the HTTP status code will not be
200 OK
.
The entity body is an XML document that represents a listing of the inbound shipments. You can use the MerchantIdentifier field in the response to look up more details about the inbound shipment by issuing a GET request to Resource #2.
Example Response Entity Body
<?xml version="1.0" encoding="utf-8"?> <InboundShipments> <InboundShipment> <MerchantIdentifier>S12345</MerchantIdentifier> <State>Complete</State> </InboundShipment> <InboundShipment> <MerchantIdentifier>S54321</MerchantIdentifier> <State>NotComplete</State> </InboundShipment> </InboundShipments>
https://api.warehousefs.com/public/v1/inbound-shipments/{merchantCode}/{merchantIdentifier}
The inbound shipments resource allows the merchant to provide an advance shipment notification for new inventory being sent to Shipvine. Shipvine will reconcile the shipments it receives against the appropriate inbound shipment, and the merchant may inspect the manifest for discrepancies between what Shipvine was expected to receive and what Shipvine says it received.
The {merchantCode} field in the URL template should be replaced with the merchant code for the merchant that the items in the inbound shipment belong to.
The {merchantIdentifier} field in the URL should contain the merchant's identifier for the inbound shipment. This value should be clearly indicated on the parcels that are shipped to Shipvine. For example, the merchant's purchase order number is a good value to put here. It must be unique among all other inbound shipments associated with the merchant account.
Example Request URL
https://api.warehousefs.com/public/v1/inbound-shipments/CONTOSO/PO%20234-58
No query parameters may be included in the request.
The entity body is an XML document that represents the inbound shipment. If the inbound shipment already exists, it is replaced with the version specified in the XML document. If Shipvine has started receiving the inbound shipment, then it may not be updated and an error will be returned.
Example Request Entity Body
<?xml version="1.0"?> <InboundShipment> <!-- (1) --> <ExpectedAt>2014-02-28</ExpectedAt> <!-- (2) --> <Lines> <Line> <Item> <MerchantIdentifier>1891-212-15</MerchantIdentifier> <!-- (3) --> </Item> <QuantityExpected>7</QuantityExpected> <!-- (4) --> </Line> <Line> <Item> <MerchantIdentifier>1001-1-A3</MerchantIdentifier> </Item> <QuantityExpected>3</QuantityExpected> </Line> </Lines> </InboundShipment>
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 inbound shipment belongs to.
The {merchantIdentifier} field in the URL should contain the merchant's identifier for the inbound shipment.
Example Request URL
https://api.warehousefs.com/public/v1/inbound-shipments/CONTOSO/PO%20234-58
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 inbound shipment.
If any error occurs, the HTTP status code will not be
200 OK
; for example, if the inbound shipment can't be found, then a
404 Not Found
error is returned. An <Errors /> element
may
be present in the entity body.
The entity body is an XML document that represents the inbound shipment. If the inbound shipment already exists, it is replaced with the version specified in the XML document. If Shipvine has started receiving the inbound shipment, then it may not be updated and an error will be returned.
Example Response Entity Body
<?xml version="1.0" encoding="utf-8"?> <InboundShipment> <Merchant> <Code>CONTOSO</Code> </Merchant> <MerchantIdentifier>PO 20234-58</MerchantIdentifier> <ExpectedAt>2014-02-28</ExpectedAt> <Totals> <Expected>7</Expected> <!-- (1) --> <Resolved>11</Resolved> <!-- (2) --> <Unresolved>3</Unresolved> <!-- (3) --> </Totals> <ExpectedLines> <!-- (4) --> <ExpectedLine> <Item> <MerchantIdentifier>1891-212-15</MerchantIdentifier> <VariationsSummary>Size: 15</VariationsSummary> <ItemGroup> <MerchantIdentifier>1891-212</MerchantIdentifier> <Name>Vanguard Button Down Slim Super Check Shirt</Name> </ItemGroup> </Item> <QuantityExpected>7</QuantityExpected> <!-- (5) --> <QuantityReceived>6</QuantityReceived> <!-- (6) --> </ExpectedLine> </ExpectedLines> <UnexpectedLines> <!-- (7) --> <UnexpectedLine> <Item> <MerchantIdentifier>1123-34-A3</MerchantIdentifier> <!-- (8) --> <VariationsSummary>Size: A3</VariationsSummary> <ItemGroup> <MerchantIdentifier>1123-34</MerchantIdentifier> <Name>Fancy Tie</Name> </ItemGroup> </Item> <QuantityReceived>5</QuantityReceived> </UnexpectedLine> <UnexpectedLine> <Item> <Barcode>8675309999</Barcode> <!-- (9) --> </Item> <QuantityReceived>3</QuantityReceived> </UnexpectedLine> </UnexpectedLines> </InboundShipment>
The {merchantCode} field in the URL template should be replaced with the merchant code for the merchant that the inbound shipment belongs to.
The {merchantIdentifier} field in the URL should contain the merchant's identifier for the inbound shipment.
Example Request URL
https://api.warehousefs.com/public/v1/inbound-shipments/CONTOSO/PO%20234-58
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 empty entity body. This indicates that the inbound shipment was found and was deleted from the system.
If any error occurs, the HTTP status code will not be
200 OK
; for example, if Shipvine has already started work on the inbound shipment, then it can't be deleted. An <Errors /> element
may
be present in the entity body.