Multi Location Inventory adds its own REST API next to the Rentals & Bookings API. Use it to connect a POS, a warehouse or scanner app, a channel manager or your own storefront. This page lists the endpoints and shows the ones you will use most.
Authentication and namespaces #
| Namespace | For | Who can use it |
|---|---|---|
/wp-json/ | The store: locations, stock, availability, prices, transfers, franchises | Users who can manage WooCommerce (administrators and shop managers) |
/wp-json/ | Read-only: the locations list, the place lookup and the calendar feeds | The locations list and the lookup: a signed-in user who can manage WooCommerce. The calendar feeds: anyone who has the secret feed address |
For the store endpoints, use WooCommerce REST API keys (WooCommerce > Settings > Advanced > REST API) with HTTP Basic authentication over HTTPS, or a logged-in session with a REST nonce. There are no keys limited to one location or one franchise: location staff and franchise owners use the admin screens.
simultilocation/v1 does not start with wc-, so WooCommerce keys do not work there (they answer 401). Use a WordPress Application Password (Users > Profile > Application Passwords) of a user who can manage WooCommerce as HTTP Basic, or the logged-in session with a REST nonce. The calendar feeds are the exception: they need no sign-in, because the secret in their address is the credential. To open the locations list and the lookup to visitors (for a storefront picker of your own), return true from the filter simultilocation_.
In the location, return_location, from and to parameters a location can be given by id, by code (TPA) or by web address name (tampa). Location ids inside a request body (locations, from_location_id, to_location_id) are numeric.
Stock by location for a product #
GET /wc-simultilocation/
Returns the product’s stock at each location. For a variation, use the variation’s id.
curl -u ck_xxx:cs_xxx https://yourstore.com/wp-json/wc-simultilocation/v1/stock/products/143273
{
"product_id": 143273,
"kind": "sale",
"mode": "selected",
"manage_stock": true,
"stock_total": 31,
"locations": [
{ "id": 1, "code": "ORL", "name": "Orlando", "offered": true, "quantity": 10, "low_stock": 4, "available": 10 },
{ "id": 9174, "code": "TPA", "name": "Tampa", "offered": true, "quantity": 2, "low_stock": 5, "available": 2 },
{ "id": 9175, "code": "MIA", "name": "Miami Beach", "offered": true, "quantity": 19, "low_stock": 6, "available": 19 }
]
}
kind is rental or sale; mode is selected (each location has its own stock) or everywhere (one shared stock); stock_total is WooCommerce’s stock for the product.
PUT /wc-simultilocation/
Changes the stock at one or more locations. Only the locations you name change. Each change is recorded in the stock journal as an adjustment.
curl -u ck_xxx:cs_xxx -X PUT -H "Content-Type: application/json" \
-d '{"locations":[{"id":9174,"quantity":12,"low_stock":4},{"id":9175,"offered":false}]}' \
https://yourstore.com/wp-json/wc-simultilocation/v1/stock/products/143273
Send "mode":"everywhere" to go back to one shared stock. A variable product’s parent is refused (see Multi Location Inventory Limitations and FAQ).
Availability and prices at a location #
GET /wc-simultilocation/
{ "product_id": 99868, "location": { "id": 9174, "code": "TPA", "slug": "tampa" },
"start": "2026-10-07 00:00:00", "end": "2026-10-10 00:00:00",
"requested": 1, "offered": true, "stock": "location", "available": 5, "ok": true }
product_id, location, start and end are required (start and end as Y-m-d or Y-m-d H:i, the end not before the start); quantity defaults to 1. stock is location when the product has its own stock per location and shared when all locations share one stock. An unknown product or location is a 404 (simultilocation_, simultilocation_), bad dates a 400 (simultilocation_). Add return_location for a one-way rental.
GET /wc-simultilocation/ takes the same parameters and returns the total, the price lines (including the location’s price rule and any one-way fee) and which rule applied.
GET /wc-simultilocation/ takes location, start and end (required), return_location (default: the same location), quantity and include_unavailable=1. It lists every product offered at the pick-up location that is free for the route and dates, each with available, ok, reason, total, unit and the price lines. Without include_unavailable the products that are not free are left out.
All endpoints #
Locations and price rules #
| Method | Endpoint | What it does |
|---|---|---|
| GET, POST | /locations | List or create locations |
| GET, PATCH, DELETE | /locations/{id} | Read, change or delete a location. Delete is refused while it has stock or bookings to come. |
| GET, PUT | /locations/ | The products offered at a location, with their units |
| GET, PUT | /locations/{id}/staff | Who works at a location |
| GET, POST | /locations/{id}/rates | A location’s price rules |
| PATCH, DELETE | /rates/{id} | Change or delete a price rule |
| GET | /availability, /availability/search | Availability at a location, or for a route and dates |
| GET | /pricing/quote | A price at a location |
GET /locations takes status, search, page and per_page (default 50, at most 100) and sets X-WP-Total and X-WP-TotalPages. GET /franchises takes status and search and is not paged. PUT /locations/ takes a list of { product_id, pickup, on_hand, lead_minutes } (or the list under items). PUT /locations/{id}/staff takes { "staff": [ { user_id, access, notify } ] } with access manager, staff or viewer, and the users must have a location role.
Stock and transfers #
| Method | Endpoint | What it does |
|---|---|---|
| GET, PUT | /stock/products/{id} | A product’s stock at each location |
| GET | /stock/positions | Units on hand and on the way at each location, and where each serial-numbered unit is |
| GET | /stock/timeline | A product day by day at each location (what Stock by location shows) |
| GET | /stock/alerts | Open shortage, late transfer, overdue and stock level alerts |
| POST | /stock/ | Acknowledge an alert |
| GET, POST | /transfers | List or plan transfers |
| POST | /transfers/instant | Move units now |
| GET | /transfers/ | Suggested transfers |
| GET, PATCH | /transfers/{id} | Read or change a planned transfer |
| POST | /transfers/, /receive, /cancel | Dispatch, receive or cancel |
| POST | /transfers/, /receive/scan | Dispatch or receive by scanning serial codes (codes[]) |
| GET | /moves | The stock journal, filtered by product_id, location_id, serial_id, booking_id, transfer_id, kind, date_from and date_to; paged with page and per_page |
/stock/positions, /stock/timeline and /transfers/ need product_id, and the product must have stock per location (otherwise 400 simultilocation_). /stock/timeline also takes location_id, from (Y-m-d) and days (1 to 90, default 14). GET /transfers takes segment, location_id, product_id, page and per_page (default 20). POST /transfers and /transfers/instant take from and to (a location id, code or address name) or from_location_id and to_location_id, depart_at, arrive_at, reason, carrier, notes and items ([ { product_id, quantity } ]); both answer 201 with the transfer. /transfers/ and /receive take lines. PATCH /transfers/{id} also answers to PUT. A plan that would leave a booking short, or an origin without the units, is a 409.
Franchises #
| Method | Endpoint | What it does |
|---|---|---|
| GET, POST | /franchises | List or create franchises |
| GET, PATCH, DELETE | /franchises/{id} | Read, change or delete a franchise |
| GET, PUT | /franchises/ | Owners and accountants |
| POST, DELETE | /franchises/ | Hand a location to the franchise, or back to the brand |
| POST | /locations/ | Copy another location’s range of products (without units) |
| GET | /franchises/ | The settlement for a period, as JSON or format=csv |
Locations list, lookup and calendar feeds #
| Method | Endpoint | What it does |
|---|---|---|
| GET | /simultilocation/ | Active locations with slug, name, kind, handover, city, today’s hours (hours_today), url, page, categories, the address and pin (not for a delivery-only depot) and the delivery area and windows. Needs a signed-in user who can manage WooCommerce (Application Password); not WooCommerce keys |
| GET | /simultilocation/ | The location that serves a place. Send q (a place or postcode), lat and lng, or postcode. Answers query, place, serves and nearest (each slug, name, how, distance_km) and a message when nothing serves it. Same sign-in as above; limited to 30 requests a minute per client (429 simultilocation_) |
| GET | /simultilocation/ | A location’s staff calendar: every pick-up and return there, from 7 days back to 90 days ahead (the address comes from the location screen) |
| GET | /simultilocation/ | The availability calendar of one rental product at one location, for channel managers: the dates no unit is free there, 180 days ahead, with no customer data. The product must be offered for pick-up at that location (the address comes from the location screen) |
Each feed address carries its own 48-character secret token, so the availability address you give a channel manager never reveals the staff feed. A wrong token, an archived location or a product the location does not offer all answer the same 404 rest_no_route. Calendar apps get text/calendar, not JSON; feeds are cached for a minute (staff feed) or five minutes (availability) and answer If-None-Match with 304.
Rentals & Bookings endpoints #
The Rentals & Bookings REST API (wc-sibooking/v1) keeps working as before. Its availability and quotes answer for the whole shop; use the Multi Location Inventory endpoints above for a single location.
