Reference · Account
Check a key
/v1/meSays which organisation a key belongs to, what it is called, its rate limit, and every site it reaches with what it may do at each. Call it first, to check a key works and to learn the site ids every other call takes.
Headers
AuthorizationrequiredAn API key from Automation > Access in the Dnero portal, sent as
Authorization: Bearer <key>.string
Responses
- missing_keyinvalid_keykey_expired+1 more
- key_revokedassistant_keykey_without_access+7 more
- rate_limited
- server_error
- upstream_unavailable
200 OK
keyrequiredThe key this request was made with.
object
4 fields
idrequiredThe key's id. Quote it when asking Dnero about this key.
string
namerequiredThe name the key was given in the Dnero portal.
string
rateLimitrequiredRequests this key may make per minute.
integer
expiresAtWhen the key stops working. Absent for a key that does not expire.
string · date-time
organisationrequiredThe organisation the key belongs to.
object
2 fields
idrequiredThe organisation's id.
string
namerequiredThe organisation's name.
string
sitesrequiredEvery site the key reaches, by name.
array of objects
5 fields in each
accessrequiredWhat this key may do at the site.
object
2 fields
cataloguerequiredProducts, categories, modifiers, taxes and menus. read lists them; write also creates and changes them.
string · one of "none", "read", "write"
ordersrequiredOrders. read looks them up; write also sends new ones.
string · one of "none", "read", "write"
currencyrequiredThe currency the site trades in, ISO 4217. Every amount at this site is in its minor units.
string
idrequiredThe site's id. Every site-level path takes it.
string
namerequiredThe site's name.
string
timeZonerequiredThe site's time zone, IANA. Times in the API are UTC; this says what local time they are.
string