> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List business locations

> Lists the stores registered to an Uber Direct organization.

`uber.listBusinessLocations` returns one page of an organization's stores, which Uber calls business locations.

```ts automations/list-uber-stores.automation.ts theme={null}
import { automation, markSignificant, onDashboardRun } from "automate.ax"
import { uber } from "automate.ax/uber"

export default automation("List stores", () => {
  onDashboardRun({ title: "List stores" })
  markSignificant(uber.listBusinessLocations({ limit: 100 }))
})
```

`organizationId` defaults to the connected customer ID. `limit` accepts 1 to 100 and defaults to 100. Pass `nextPageToken` from the output as `pageToken` to read the next page.

Each location includes `businessLocationId`, `name`, `phoneNumber`, `address`, `detailedAddress`, and `externalBusinessLocationId`, which is the `externalStoreId` you pass when creating deliveries.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.