Locations
List location stock
Lists the stock state of every item, variation and modifier option in the location's published catalog, in menu order.
Esta página aún no está disponible en tu idioma.
https://api.maple.inc/v1/locations/{locationId}/catalog/stock API keyAn object you never set reads in_stock. Page with limit and starting_after, set to the last id of the previous page. Requires catalog:read and a grant for the location; the app need not be its order receiver.
Authorization
Send your API key as Authorization: Bearer <key>: mpk_test_… for test mode, mpk_live_… for live mode. Both use https://api.maple.inc/v1. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.
Parameters
-
locationIdstring required -
starting_afterstring -
limitinteger -
Maple-VersionstringThe API version your code expects. A version Maple does not serve answers 400
invalid_requestwithparamMaple-Version. See https://docs.maple.inc/developer-api/concepts/versioning Always2026-11-27.
Responses
200 OK
-
objectstring requiredAlways
list. -
dataobject[] required -
data[].objectstring requiredAlways
stock_status. -
data[].livemodeboolean required -
data[].idstring requiredMaple’s id for the object, as the catalog returns it in
id. Use it asstarting_after. -
data[].external_idstring requiredThe
external_idyou published the object under. -
data[].object_typestring requiredOne of
item,variation,modifier_option. -
data[].namestring required -
data[].stock_statusstring requiredOne of
in_stock,out_of_stock,low_stock. -
has_moreboolean required
Errors
-
400Bad request -
401Unauthorized -
403Forbidden -
404Not found -
409Conflict -
429Too many requests -
500Server error
Every error body is one error object: branch on its type and code; message is for people, param names the field at fault, and doc_url links the code on Errors.
A 429 also sends Retry-After: Seconds to wait before retrying; also returned as error.retry_after in the body.