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

# Customer calls

`customerCall` runs a Shopify customer-account GraphQL request. The app includes the customer access token when one is available.

```ts theme={null}
declare function customerCall<T>(
  query: string,
  properties?: object
): Promise<GraphQLResponse<T>>;
```

```ts theme={null}
const result = await customerCall<{ customer: { id: string } | null }>(
  `query { customer { id } }`
);
```

The resolved value has this shape:

```ts theme={null}
interface GraphQLResponse<T> {
  data: T;
  extensions: object | undefined;
  errors: object[] | undefined;
}
```

## Deprecated calls

Deprecated customer-account calls will be blocked. Migrate to the supported generic signature:
put the operation document in `query`, pass request values in the second `properties` object, and
handle the returned `data` and `errors` fields. The app adds the customer access token when one is
available.
