Locations
List locations
Lists the locations the authenticated app has been granted access to.
https://api.maple.inc/v1/locationsAPI keyAuthorization
Send your API key as Authorization: Bearer <key>: mpk_test_… against the sandbox (https://api.staging.maple.inc/v1), mpk_live_… against production. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.
Responses
200 OK
-
objectstring requiredAlways
list. -
dataobject[] required -
data[].objectstring requiredAlways
location. -
data[].idstring required -
data[].namestring or null required -
data[].statusstring requiredOne of
active,inactive,paused. -
data[].timezonestring or null required -
data[].phonestring or null required -
data[].addressobject required -
data[].address.line1string or null required -
data[].address.line2string or null required -
data[].address.citystring or null required -
data[].address.regionstring or null required -
data[].address.postal_codestring or null required -
data[].address.countrystring or null required
Errors
-
400Bad request -
401Unauthorized -
403Forbidden -
429Too many requests
Every error body names the error in _tag, explains it in message, and says where to report it in feedback. See Errors.
A 429 also sends Retry-After: Seconds to wait before retrying; also returned as retry_after in the body.