Warehouse Search
{{api_url}}/shop/warehouse/searchReturns the warehouses on your account, with each warehouse's name, identifier, address, contact details, fulfillment order, service IDs, and zip code rules. Search by text and page through results with limit and limit_start. Results are always sorted by warehouse name, A to Z.
Use it to find a warehouse's warehouse_id from its name, which the inventory, bin location, and warehouse endpoints need, or to see which warehouse covers which zips. For one known warehouse, use Warehouse Get.
Query parameters
| Parameter | Type | Description |
|---|---|---|
search_term | string | Partial match against the warehouse's name, identifier, address (street, city, state, region, zip, country), contact person, company, phone, and email. Naperville returns every warehouse with Naperville in any of those fields. |
limit | integer | Number of warehouses to return. Default and maximum: 100. |
limit_start | integer | Number of warehouses to skip before returning results. Use it with limit to page: limit=25&limit_start=25 returns warehouses 26 through 50. |
just_count | integer | Set to 1 to return only total_warehouses, the number of matching warehouses, instead of the warehouses themselves. |
Examples
Every warehouse, up to 100:
{{api_url}}/shop/warehouse/search
Find a warehouse by name:
{{api_url}}/shop/warehouse/search?search_term=Main
Warehouses in one city:
{{api_url}}/shop/warehouse/search?search_term=Naperville
How many warehouses match, without the warehouses:
{{api_url}}/shop/warehouse/search?just_count=1
Response
Sorted by warehouse name, and trimmed to the key fields documented below:
{
"warehouses": [
{
"shop_warehouseid": "7", "warehouse_name": "Canada", "warehouse_identifier": "canada",
"city": "Brant and Norfolk (Waterford)", "zip": "N0E", "country": "CAN",
"fulfill_ord": "7", "use_zip_rules": "0",
"warehouse_zip_rules": [
{"shop_warehouse_zip_rule_id": "6", "shop_warehouse_zip_rule_warehouse_id": "7", "zip_rule": "0*"}
]
},
{
"shop_warehouseid": "3", "warehouse_name": "Main Warehouse (Midwest)", "warehouse_identifier": "main",
"street1": "123 Main St", "city": "Naperville", "state": "IL", "zip": "60540", "country": "USA",
"fulfill_ord": "3", "use_zip_rules": "0",
"warehouse_zip_rules": [
{"shop_warehouse_zip_rule_id": "4", "shop_warehouse_zip_rule_warehouse_id": "3", "zip_rule": "1*"},
{"shop_warehouse_zip_rule_id": "5", "shop_warehouse_zip_rule_warehouse_id": "3", "zip_rule": "2*"}
]
},
{
"shop_warehouseid": "4", "warehouse_name": "Secondary Warehouse (West)", "warehouse_identifier": "secondary",
"zip": "12345",
"fulfill_ord": "4", "use_zip_rules": "0",
"warehouse_zip_rules": [
{"shop_warehouse_zip_rule_id": "2", "shop_warehouse_zip_rule_warehouse_id": "4", "zip_rule": "9*"},
{"shop_warehouse_zip_rule_id": "3", "shop_warehouse_zip_rule_warehouse_id": "4", "zip_rule": "8*"}
]
}
],
"total_warehouses": "4"
}
| Field | Description |
|---|---|
warehouses | The matching warehouses, sorted by warehouse name, A to Z. null when nothing matches. |
total_warehouses | The number of warehouses matching your search across all pages, not just this page. |
Warehouse fields
| Field | Description |
|---|---|
shop_warehouseid | The warehouse ID. This is the warehouse_id the inventory, bin location, and order endpoints take. |
warehouse_name | The warehouse's display name. |
warehouse_identifier | The warehouse's short code, for example main. The same value appears in warehouse_identifier on order lines and in routing records. |
street1, street2, city, state, region, zip, country | The warehouse address. Zip Code Distance routing measures from this address. |
contact_person, company, phone, email | The warehouse's contact details. |
fulfill_ord | The warehouse's position in the Manual Sort priority list, used when warehouse_fulfill_order_method is set to Manual Sort. InfiPlex assigns it. |
use_zip_rules | 1 when the warehouse only fills orders whose ship-to zip matches one of its zip code rules. 0 when it is eligible for every order. |
kehe_id, wayfair_castlegate_id, three_pl_central_id, shopify_id, and the other \*_id fields | The warehouse's ID on a connected 3PL, fulfillment service, marketplace, or ERP. A fulfillment service ID is what routes the warehouse's orders to that service. Empty when the warehouse isn't tied to that service. Set these in the OMS at Inventory > Warehouses. |
warehouse_zip_rules | The warehouse's zip code rules, one entry per rule. null when the warehouse has no rules. They are listed whether or not use_zip_rules is on, but they only limit which orders the warehouse can fill when use_zip_rules is 1. |
Zip rule fields (warehouse_zip_rules)
| Field | Description |
|---|---|
shop_warehouse_zip_rule_id | The rule's ID. |
shop_warehouse_zip_rule_warehouse_id | The warehouse the rule belongs to. |
zip_rule | The rule: a zip prefix ending in the \* wildcard. 9\* matches every zip starting with 9, and 713\* matches every zip starting with 713, five-digit or ZIP+4. A rule without the wildcard, such as 60540, matches only that exact zip and misses 60540-1234. |
Before you build
search_termmatches anywhere in any of its fields, so a short term can return more than you expect.ILmatches warehouses in Illinois and also any name, street, or email containing "il". To pin down one warehouse, search by its name or identifier.search_termdoesn't search zip rules. To find the warehouse that covers a zip, readwarehouse_zip_ruleson each warehouse that hasuse_zip_rulesset to"1".- Check for
nullbefore looping, both onwarehousesand on each warehouse'swarehouse_zip_rules. A search with no matches, and a warehouse with no rules, both returnnull, not an empty array. - The sort order is by name, not by
fulfill_ord. To see the Manual Sort priority, order the results byfulfill_ordyourself. - Values come back as strings, including
total_warehouses,fulfill_ord, anduse_zip_rules. - A call returns at most 100 warehouses. On accounts with more, page with
limit=100, adding 100 tolimit_starteach time, until you've readtotal_warehouseswarehouses or a page returns fewer than 100. - Your API key needs Warehouse read permission. A key without it gets
403 Forbidden.
Related guides:
Authorization
Bearer token, sent in the Authorization header. Inherited from the collection.
Query Parameters
| Key | Value | Description |
|---|---|---|
just_count optional | Set to 1 if you want a count of warehouses found | |
limit optional | If this is set, then only this number of results will be returned | |
limit_start optional | If 100 results are returned and this is set to 25, the first 25 results will be omitted | |
search_term optional |
Example Request
curl --location --request GET '{{api_url}}/shop/warehouse/search' \
--header 'Authorization: Bearer {{auth_token}}'Example Responses
Warehouse Search
Request
curl --location --request GET '{{api_url}}/shop/warehouse/search' \
--header 'Authorization: Bearer YOUR_API_KEY'Response 200 OK
{
"warehouses": [
{
"shop_warehouseid": "7",
"shop_warehouse_siteareaid": "16",
"shop_warehouse_drop_shipper_id": null,
"warehouse_name": "Canada",
"warehouse_identifier": "canada",
"contact_person": "",
"company": "",
"street1": "",
"street2": "",
"city": "Brant and Norfolk (Waterford)",
"state": " ",
"region": "",
"zip": "N0E",
"country": "CAN",
"phone": "",
"email": "",
"fulfill_ord": "7",
"use_zip_rules": "0",
"netsuite_id": "",
"netsuite_inventory_kit_custom_fields": "",
"amazon_vendor_central_id": "C,D,E",
"wayfair_id": "",
"shopify_id": "",
"three_pl_central_id": "4",
"shipstream_id": "1",
"flexe_id": "529",
"midwest_id": "",
"zhenhub_id": "",
"overstock_id": "over",
"infiplex_fbi_id": "ifbi",
"qbo_inventory_asset_account": "81",
"amazon_today_id": "",
"magento_store_id": "",
"magento_stock_id": "",
"big_commerce_id": "",
"big_commerce_pickup_method_id": "",
"square_up_id": "",
"sellercloud_id": "sc1",
"walmart_id": "",
"newegg_vf_id": "",
"dsco_id": "",
"sams_club_id": "",
"teamwork_com_id": "",
"tiktok_id": "",
"finale_inv_id": "",
"infiplex_alerts_api_key": "",
"target_plus_id": "",
"true_value_id": "",
"amazon_com_id": "AmazonCanadaSupplySourceID",
"emery_jensen_dist_id": "",
"deposco_id": "",
"cin7_id": "Monterey Park - 533",
"logiwa_id": "b",
"ryder_id": "MADESCM",
"do_it_best_id": "02,05,07",
"keystone_id": "PacificNorthwest",
"seawide_id": "PacificNorthwest",
"ntp_id": "PacificNorthwest",
"kehe_id": "",
"meyer_dist_id": "",
"dot_foods_id": "MODESTO",
"zulily_id": "",
"bedbathbeyond_id": "",
"backyard_id": "",
"shiphero_id": "zzzzzOjEwOTcyNg==",
"costco_id": "Costco_123",
"veracore_id": "",
"wayfair_castlegate_id": "209354",
"snapfulfil_id": "",
"ppm_fulfillment_id": "PPM_Canada",
"epicor_id": "1",
"warehouse_zip_rules": [
{
"shop_warehouse_zip_rule_id": "6",
"shop_warehouse_zip_rule_warehouse_id": "7",
"zip_rule": "0*"
}
]
},
{
"shop_warehouseid": "3",
"shop_warehouse_siteareaid": "16",
"shop_warehouse_drop_shipper_id": null,
"warehouse_name": "Main Warehouse (Midwest)",
"warehouse_identifier": "main",
"contact_person": "main contact",
"company": "main company",
"street1": "123 Main St",
"street2": "",
"city": "Naperville",
"state": "IL",
"region": "",
"zip": "60540",
"country": "USA",
"phone": "234-999-7361",
"email": "main@email.com",
"fulfill_ord": "3",
"use_zip_rules": "0",
"netsuite_id": "4",
"netsuite_inventory_kit_custom_fields": "custitem_kit_qty_available_ny",
"amazon_vendor_central_id": "",
"wayfair_id": "",
"shopify_id": "11111469672",
"three_pl_central_id": "1",
"shipstream_id": "4",
"flexe_id": "238",
"midwest_id": "07",
"zhenhub_id": "AU Melbourne",
"overstock_id": "over naper",
"infiplex_fbi_id": "1,29",
"qbo_inventory_asset_account": "0",
"amazon_today_id": "11111-d4df-4435-9323-11111",
"magento_store_id": "2",
"magento_stock_id": "3",
"big_commerce_id": "2",
"big_commerce_pickup_method_id": "1",
"square_up_id": "111111H9T359X",
"sellercloud_id": "",
"walmart_id": "Walmart naperville",
"newegg_vf_id": "1",
"dsco_id": "01",
"sams_club_id": "828400_2",
"teamwork_com_id": "014",
"tiktok_id": "",
"finale_inv_id": "100001",
"infiplex_alerts_api_key": "11111OEWZ6GI48WXFYV5BWM46",
"target_plus_id": "t++",
"true_value_id": "1",
"amazon_com_id": "11111-d4df-4435-9323-1111111",
"emery_jensen_dist_id": "IL01",
"deposco_id": "DAXDT",
"cin7_id": "",
"logiwa_id": "logiwa1",
"ryder_id": "MADESCM",
"do_it_best_id": "03",
"keystone_id": "MidWest",
"seawide_id": "MidWest",
"ntp_id": "MidWest",
"kehe_id": "18",
"meyer_dist_id": "032",
"dot_foods_id": "ILLINOIS",
"zulily_id": "zuuu1",
"bedbathbeyond_id": "BBBBBB1",
"backyard_id": "backyard1",
"shiphero_id": "111111lOjE0NzAwOQ==",
"costco_id": "",
"veracore_id": "222222",
"wayfair_castlegate_id": "wayfair1",
"snapfulfil_id": "WAREHOUSE1",
"ppm_fulfillment_id": "PPM_Naperville",
"epicor_id": "",
"warehouse_zip_rules": [
{
"shop_warehouse_zip_rule_id": "4",
"shop_warehouse_zip_rule_warehouse_id": "3",
"zip_rule": "1*"
},
{
"shop_warehouse_zip_rule_id": "5",
"shop_warehouse_zip_rule_warehouse_id": "3",
"zip_rule": "2*"
}
]
},
{
"shop_warehouseid": "4",
"shop_warehouse_siteareaid": "16",
"shop_warehouse_drop_shipper_id": null,
"warehouse_name": "Secondary Warehouse (West)",
"warehouse_identifier": "secondary",
"contact_person": "Tom Smith",
"company": "Sample Company",
"street1": "1234 Main St",
"street2": "",
"city": "Naperville",
"state": "IL",
"region": "",
"zip": "60540",
"country": "USA",
"phone": "630-301-0108",
"email": "mark@infiplex.com",
"fulfill_ord": "4",
"use_zip_rules": "0",
"netsuite_id": "4",
"netsuite_inventory_kit_custom_fields": "",
"amazon_vendor_central_id": "",
"wayfair_id": "",
"shopify_id": "444444",
"three_pl_central_id": "2",
"shipstream_id": "2",
"flexe_id": "",
"midwest_id": "",
"zhenhub_id": "",
"overstock_id": "",
"infiplex_fbi_id": "",
"qbo_inventory_asset_account": "0",
"amazon_today_id": "",
"magento_store_id": "2",
"magento_stock_id": "2",
"big_commerce_id": "3",
"big_commerce_pickup_method_id": "2",
"square_up_id": "3333333",
"sellercloud_id": "109",
"walmart_id": "",
"newegg_vf_id": "3",
"dsco_id": "",
"sams_club_id": "",
"teamwork_com_id": "011",
"tiktok_id": "5555555555",
"finale_inv_id": "100003",
"infiplex_alerts_api_key": "55555433KBOEWZ6GI48WXFYV5BWM46",
"target_plus_id": "",
"true_value_id": "2",
"amazon_com_id": "AmazonVegasSupplySourceID",
"emery_jensen_dist_id": "",
"deposco_id": "",
"cin7_id": "",
"logiwa_id": "a",
"ryder_id": "MADESCM",
"do_it_best_id": "04",
"keystone_id": "California",
"seawide_id": "California",
"ntp_id": "California",
"kehe_id": "19",
"meyer_dist_id": "041",
"dot_foods_id": "ARIZONA",
"zulily_id": "",
"bedbathbeyond_id": "",
"backyard_id": "",
"shiphero_id": "5555555NlOjEzMzE5NQ==",
"costco_id": "",
"veracore_id": "",
"wayfair_castlegate_id": "209342",
"snapfulfil_id": "",
"ppm_fulfillment_id": "",
"epicor_id": "",
"warehouse_zip_rules": [
{
"shop_warehouse_zip_rule_id": "2",
"shop_warehouse_zip_rule_warehouse_id": "4",
"zip_rule": "9*"
},
{
"shop_warehouse_zip_rule_id": "3",
"shop_warehouse_zip_rule_warehouse_id": "4",
"zip_rule": "8*"
}
]
},
{
"shop_warehouseid": "8",
"shop_warehouse_siteareaid": "16",
"shop_warehouse_drop_shipper_id": null,
"warehouse_name": "Third Warehouse (East)",
"warehouse_identifier": "third",
"contact_person": "",
"company": "",
"street1": "",
"street2": "",
"city": "",
"state": "",
"region": "",
"zip": "",
"country": "",
"phone": "",
"email": "",
"fulfill_ord": "8",
"use_zip_rules": "0",
"netsuite_id": "netsuite id",
"netsuite_inventory_kit_custom_fields": "",
"amazon_vendor_central_id": "Amazon Vendor Central",
"wayfair_id": "wafer id",
"shopify_id": "55555535208",
"three_pl_central_id": "3",
"shipstream_id": "3",
"flexe_id": "",
"midwest_id": "",
"zhenhub_id": "",
"overstock_id": "",
"infiplex_fbi_id": "",
"qbo_inventory_asset_account": "0",
"amazon_today_id": "",
"magento_store_id": "",
"magento_stock_id": "",
"big_commerce_id": "",
"big_commerce_pickup_method_id": "",
"square_up_id": "",
"sellercloud_id": "",
"walmart_id": "",
"newegg_vf_id": "2",
"dsco_id": "",
"sams_club_id": "",
"teamwork_com_id": "014",
"tiktok_id": "",
"finale_inv_id": "",
"infiplex_alerts_api_key": "",
"target_plus_id": "",
"true_value_id": "3",
"amazon_com_id": "",
"emery_jensen_dist_id": "",
"deposco_id": "",
"cin7_id": "",
"logiwa_id": "c",
"ryder_id": "",
"do_it_best_id": "01",
"keystone_id": "GreatLakes",
"seawide_id": "GreatLakes",
"ntp_id": "GreatLakes",
"kehe_id": "",
"meyer_dist_id": "053",
"dot_foods_id": "OKLAHOMA",
"zulily_id": "",
"bedbathbeyond_id": "",
"backyard_id": "",
"shiphero_id": "777777dXNlOjEwMzI0Mg==",
"costco_id": "",
"veracore_id": "",
"wayfair_castlegate_id": "",
"snapfulfil_id": "",
"ppm_fulfillment_id": "",
"epicor_id": "3",
"warehouse_zip_rules": [
{
"shop_warehouse_zip_rule_id": "7",
"shop_warehouse_zip_rule_warehouse_id": "8",
"zip_rule": "3*"
},
{
"shop_warehouse_zip_rule_id": "8",
"shop_warehouse_zip_rule_warehouse_id": "8",
"zip_rule": "4*"
},
{
"shop_warehouse_zip_rule_id": "9",
"shop_warehouse_zip_rule_warehouse_id": "8",
"zip_rule": "5*"
},
{
"shop_warehouse_zip_rule_id": "10",
"shop_warehouse_zip_rule_warehouse_id": "8",
"zip_rule": "6*"
},
{
"shop_warehouse_zip_rule_id": "11",
"shop_warehouse_zip_rule_warehouse_id": "8",
"zip_rule": "7*"
}
]
}
],
"total_warehouses": "4"
}
