Warehouse
Methods
Entity Properties
ShipStream supports multiple warehouses. Use this API endpoint to retrieve your list of warehouses.
warehouse.list
()
Retrieve warehouses list.
Parameters
The method is used without parameters.
Return Value
An array of objects with warehouse information.
Example Request
Retrieve warehouses information:
{
"jsonrpc" : 2.0,
"id" : 1234,
"method" : "call",
"params" : [
"be1c13ed4e03f0ed7f1e4053dfff9658",
"warehouse.list",
[]
]
}
Example Response
{
"jsonrpc" : 2.0,
"id" : 1234,
"error" : null,
"result" : [
{
"warehouse_id" : 1,
"name" : "Warehouse 1",
"is_active": 1,
"address": {
"street1": "4616 Crossroads Park Dr",
"street2": "",
"city": "Liverpool",
"country": "US",
"region": "NY",
"postcode": "13088"
}
},
{
"warehouse_id" : 2,
"name" : "Warehouse 2",
"is_active": 1,
"address": {
"street1": "3900 Produce Rd",
"street2": "",
"city": "Louisville",
"country": "US",
"region": "KY",
"postcode": "40218"
}
}
]
}
Warehouse Properties
warehouse_id |
The internal warehouse ID.
|
---|---|
name |
The "Name" property.
|
is_active |
Flag whether warehouse is active.
|
address |
The address of the warehouse. Details.
|
Warehouse Address Properties
street1 |
The street address. First Line
|
---|---|
street2 |
The street address. Second Line
|
city |
The city.
|
country |
The country code ISO 3166-1.
|
region |
The region code ISO 3166-2.
|
postcode |
The "Postal Code" property. Pass as a string to prevent leading 0s from being dropped.
|