Skip to content
Developers
Pilot. The API is open to a small number of organisations and may change — every change is in the changelog.

Reference · Account

List sites

GET/v1/sites

Every site the key reaches, with its currency, time zone, and what the key may do there. A site the key does not reach is not listed.

Headers

  • Authorizationrequired

    An API key from Automation > Access in the Dnero portal, sent as Authorization: Bearer <key>.

    string

Responses

200 OK

  • datarequired

    The records, in a stable order.

    array of objects

    5 fields in each
    • accessrequired

      What this key may do at the site.

      object

      2 fields
      • cataloguerequired

        Products, categories, modifiers, taxes and menus. read lists them; write also creates and changes them.

        string · one of "none", "read", "write"

      • ordersrequired

        Orders. read looks them up; write also sends new ones.

        string · one of "none", "read", "write"

    • currencyrequired

      The currency the site trades in, ISO 4217. Every amount at this site is in its minor units.

      string

    • idrequired

      The site's id. Every site-level path takes it.

      string

    • namerequired

      The site's name.

      string

    • timeZonerequired

      The site's time zone, IANA. Times in the API are UTC; this says what local time they are.

      string

  • nextCursor

    Pass as cursor to get the next page. Absent on the last page.

    string