Getting Warehouse Orders
This guide walks you through getting Warehouse Orders from the JUSDA API.
Authentication
JUSDA uses API keys for authentication. At this time API keys are assigned by JUSDA's Technology Team. To obtain a key, contact your JUSDA Sales representative.
Once you have an API key, to authenticate, it will be necessary to pass the key in the HTTP header of each call you make. For the header key pass x-api-key. Pass your key as the value. For example:
x-api-key=34A81032-979E-4EFC-9A6F-87E2973F3E20
If there is any problem authenticating your key, the API will respond with an HTTP 401 code.
Testing
JUSDA may provide you an API key that is set to our test environment. If instead you have a production API key, it's possible to use the test environment on any API call by including an environment attribute in the endpoint's query string. For example:
https://services.jusdausa.com/api/v1/Rates?environment=Test
API Endpoint
The URL for JUSDA APIs is:
https://services.jusdausa.com/api/v1
To this endpoint add the resource you are accessing. For example, the endpoint to get Warehouse Orders is:
https://services.jusdausa.com/api/v1/WarehouseOrders
Warehouse Order URL Parameters
The /WarehouseORder API accepts various filter values in its query string. Paging is also supported. Here are some example API calls with an explanation of how the query will execute.
https://services.jusdausa.com/api/v1/WarehouseOrder?orderNo=RJUSDA00003
The above example will retrieve a single Warehouse Order that has a OrderNo RJUSDA00003.
https://services.jusdausa.com/api/v1/WarehouseOrders?limit=10
The above example will retrieve the 10 most recent Warehouse Order.
https://services.jusdausa.com/api/v1/WarehouseOrders?limit=10&page=3
Limit specifies the maximum number of rows to return. Page specifies the page number. In this case, the shipments in positions 20-29 will be retrieved.
Get Warehouse Order Query String Paramaters
Use any of the following parameters in your HTTP GET query string to filter your search for existing warehouse orders.
- modifiedDateFrom: (optional) Supports search for shipments created or updated within a date range
- modifiedDateTo: (optional) Supports search for shipments created or updated within a date range
- orderNo: (optional) Retrieve a specific Shipment Number
- externalOrderIdentifier: (optional) Retrieve the order using your external order identifier
- limit: (optional) Default is 100
- page: (optional) Default is 1
- environment: (optional) Test or Production. Default is Production.
Sample Response Payload
[
{
"OrderNo": "RJUSDA00003",
"OrderDate": "2021-01-29T00:00:00",
"WarehouseCode": "USA-Whittier",
"CustomerName": "Ants Technology",
"ShipToName": "Alex",
"ShipToAddress1": "1 Fenton Street",
"ShipToAddress2": null,
"ShipToCity": "New York",
"ShipToStateProvince": "NY",
"ShipToPostalCode": "10036",
"ShipToCountryCode": "US",
"ShipToTelNo": "3235554561",
"ShipToEmail": "",
"Carrier": "UPS",
"ModeOfTransport": null,
"ServiceLevel": "UPS GROUND",
"FreightTerms": null,
"NotesToBuyer": null,
"NotesFromBuyer": null,
"ExternalOrderIdentifier": "RJUSDA00003",
"OrderStatusIdentifier": null,
"FulfillmentStatus": "Order Received",
"Items": [
{
"LineNo": "20",
"SKU": "test002",
"LineReference": "",
"Quantity": 1
},
{
"LineNo": "10",
"SKU": "5795",
"LineReference": "",
"Quantity": 1
}
]
}
]