> For the complete documentation index, see [llms.txt](https://docs.flowretail.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowretail.com/docs/developers/api-documentation/organization/list-organizations.md).

# List organizations

List organizations.

Users with the ORGANIZATION permission get all organizations in the system. Other users only get the organizations they have access to.

```json
{"openapi":"3.0.2","info":{"title":"Flow Retail API version 2","version":"2.0.0"},"tags":[{"name":"Organization","description":"Organization"}],"servers":[{"description":"Flow Retail Production","url":"https://api.flowretail.com/v2"},{"description":"Flow Retail Stage","url":"https://api.stage.flowretail.com/v2"}],"security":[{"accessToken":[]},{"authToken":[]},{"integrationToken":[]}],"components":{"securitySchemes":{"accessToken":{"description":"Access token recevied after user login with a deviceToken","scheme":"bearer","type":"http"},"authToken":{"description":"Token received from the auth service","scheme":"bearer","type":"http"},"integrationToken":{"scheme":"bearer","type":"http"}},"parameters":{"organizationExternalIdQuery":{"description":"External reference to an organization.","in":"query","name":"organizationExternalId","required":false,"schema":{"type":"string"}},"organizationNameQuery":{"description":"Reference to the name of an organization.","in":"query","name":"organizationName","required":false,"schema":{"type":"string"}},"pageNumberQuery":{"description":"Reference to a specific page in a result set.","in":"query","name":"pageNumber","required":false,"schema":{"type":"integer"}},"pageSizeQuery":{"description":"The number of items per page in a result set.","in":"query","name":"pageSize","required":false,"schema":{"type":"integer"}},"sortByQuery":{"description":"Defines which field the resource list is sorted by.","in":"query","name":"sortBy","required":false,"schema":{"type":"string"}},"sortDirectionQuery":{"description":"Reference to a sort direction","explode":false,"in":"query","name":"sortDirection","schema":{"$ref":"#/components/schemas/SortDirectionENUM"},"style":"form"}},"schemas":{"SortDirectionENUM":{"description":"|ENUM      | Description |\n| ---------------- | ------------ |\n| ASC | Sort in ascending order|\n| DESC | Sort in descending order|\n","enum":["ASC","DESC"],"title":"SortDirectionENUM","type":"string"},"OrganizationResponseSchema":{"title":"OrganizationResponseSchema","type":"object","required":["address","city","countryCode","createdAt","email","externalId","isActive","lastModifiedAt","name","postalCode","phone","organizationUid","vatNumber","bankInfo","websiteUrl","appSettings"],"properties":{"address":{"type":"string"},"city":{"type":"string"},"countryCode":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"email":{"$ref":"#/components/schemas/EmailTYPE"},"externalId":{"type":"string"},"isActive":{"type":"boolean"},"lastModifiedAt":{"format":"date-time","type":"string"},"name":{"type":"string"},"postalCode":{"type":"string"},"phone":{"type":"string"},"organizationUid":{"$ref":"#/components/schemas/UID"},"vatNumber":{"$ref":"#/components/schemas/VatNumberTYPE"},"bankInfo":{"$ref":"#/components/schemas/BankInfoResponseSchema"},"websiteUrl":{"type":"string"},"appSettings":{"$ref":"#/components/schemas/OrgAppSettingResponseSchema"},"fiscal":{"$ref":"#/components/schemas/OrganizationFiscalResponseSchema"}}},"EmailTYPE":{"title":"Email","type":"string"},"UID":{"title":"UID","type":"string","pattern":"^[A-Za-z0-9-_]+"},"VatNumberTYPE":{"description":"VAT identification number for value added tax reporting purposes.","title":"VatNumber","type":"string"},"BankInfoResponseSchema":{"title":"BankInfoResponseSchema","type":"object","required":["accountNumber","bankName","iban","swift","giroAccountNumber"],"properties":{"accountNumber":{"type":"string"},"bankName":{"type":"string"},"iban":{"type":"string"},"swift":{"type":"string"},"giroAccountNumber":{"type":"string","description":"National giro/payment-slip creditor account tied to the bank account, e.g. the Danish FIK creditor number (8 digits). Used to emit a giro payment block (FIK) on electronic invoices."}}},"OrgAppSettingResponseSchema":{"title":"OrgAppSettingResponseSchema","type":"object","required":["requireGtinScanBeforeDeliverOut"],"properties":{"requireGtinScanBeforeDeliverOut":{"type":"boolean"}}},"OrganizationFiscalResponseSchema":{"title":"OrganizationFiscalResponseSchema","type":"object","description":"The organization's identity at the fiscal control system.\n\nThe object is absent for an organization that has nothing to do with\nfiscalization, which is every organization outside the countries the\nintegration covers. It appears as soon as anything fiscal has been\nentered or enrolled, and every field inside it is then present: a value\nnot yet assigned is an empty string, never null.\n","required":["unitId","credentialsStored","taxpayerId","taxpayerState"],"properties":{"unitId":{"type":"string","description":"Identifier of the organization as a unit at the fiscal control\nsystem. Not a secret, and the value most often mistyped, so it is\nreturned to be checked. Empty until it has been entered.\n"},"credentialsStored":{"type":"boolean","description":"Whether an API key and secret are stored for this organization.\nThe values are never returned. To confirm that a credential\nauthenticates, send it again in fiscal.credentials on an\norganization update: it is verified before it is stored.\n"},"taxpayerId":{"type":"string","description":"Identifier of the organization as a taxpayer at the fiscal control\nsystem. Written when the organization is enrolled, and empty until\nthen.\n"},"taxpayerState":{"description":"Current state of the organization's taxpayer at the fiscal control\nsystem. Empty until the organization has been enrolled. Nothing\nbelow it - a store's location, a till's register - can be created\nuntil this is COMMISSIONED.\n","$ref":"#/components/schemas/FiscalRegisterStateENUM"}}},"FiscalRegisterStateENUM":{"description":"State of a resource at the fiscal control system: an organization's\ntaxpayer, a store's location, or a till's register. The three share\none set of states and are commissioned top down.\n\nThe empty string is a state of its own: the resource has not been\nregistered yet. It exists because the fiscal objects carry no nullable\nfields - an object that is present has every field present, and \"not\nyet\" is the empty value.\n|ENUM | Description |\n| --- | --- |\n|  | Not registered at the fiscal control system |\n| ACQUIRED | Registered, not yet commissioned |\n| COMMISSIONED | Billing has started |\n| DECOMMISSIONED | Permanently retired, cannot be undone |","enum":["","ACQUIRED","COMMISSIONED","DECOMMISSIONED"],"title":"FiscalRegisterState","type":"string"},"Paging":{"description":"totalCount The total number of items in the result set.\n\npageSize The number of items per page.\n\npageNumber The current page in the result set.","properties":{"pageNumber":{"type":"integer"},"pageSize":{"type":"integer"},"totalCount":{"type":"integer"}},"required":["totalCount","pageSize","pageNumber"],"title":"Paging","type":"object"}},"responses":{"OrganizationListResponse":{"content":{"application/json":{"schema":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrganizationResponseSchema"},"type":"array"},"paging":{"$ref":"#/components/schemas/Paging"}},"required":["items","paging"],"type":"object"}}},"description":"Example response"}}},"paths":{"/tenants/{tenantUid}/organizations":{"get":{"description":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  List organizations.\n  \n  Users with the ORGANIZATION permission get all organizations in the system. Other users only get the organizations they have access to.","operationId":"get-tenants-organizations","parameters":[{"$ref":"#/components/parameters/organizationExternalIdQuery"},{"$ref":"#/components/parameters/organizationNameQuery"},{"$ref":"#/components/parameters/pageNumberQuery"},{"$ref":"#/components/parameters/pageSizeQuery"},{"$ref":"#/components/parameters/sortByQuery"},{"$ref":"#/components/parameters/sortDirectionQuery"}],"responses":{"200":{"$ref":"#/components/responses/OrganizationListResponse"}},"summary":"List organizations","tags":["Organization"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flowretail.com/docs/developers/api-documentation/organization/list-organizations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
