Skip to content

Warehouses

Returns a list of active warehouses configured for your account.

GET/api/v1/warehouses
ParameterTypeDefaultDescription
include_raw_materialbooleantrueInclude raw material warehouses
Terminal window
curl -X GET "https://api.prediko.io/api/v1/warehouses" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Main Warehouse",
"active": true,
"address": {
"address1": "123 Warehouse Blvd",
"address2": null,
"city": "Los Angeles",
"province": "CA",
"country": "US",
"zip": "90001"
},
"store_name": "My Store",
"is_combined": false,
"child_warehouses": []
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Combined Warehouse",
"active": true,
"address": {
"address1": "456 Distribution Dr",
"address2": "Suite 100",
"city": "New York",
"province": "NY",
"country": "US",
"zip": "10001"
},
"store_name": "My Store",
"is_combined": true,
"child_warehouses": ["East Warehouse", "West Warehouse"]
}
],
"total": 2
}
FieldTypeDescription
dataarrayList of warehouse objects
totalintegerTotal number of warehouses
FieldTypeDescription
idstringUnique warehouse identifier (UUID)
namestringWarehouse name (unique identifier)
activebooleanWhether the warehouse is active
addressobjectAddress details (see Address Object below)
store_namestringAssociated store name
is_combinedbooleanWhether this is a combined warehouse
child_warehousesarrayList of child warehouse names (if combined)
FieldTypeDescription
address1stringPrimary address line
address2stringSecondary address line
citystringCity name
provincestringState/province code
countrystringCountry code
zipstringPostal/ZIP code
Terminal window
curl -X GET "https://api.prediko.io/api/v1/warehouses?include_raw_material=false" \
-H "Authorization: Bearer YOUR_API_KEY"
StatusDescription
401Invalid or missing API key
500Internal server error