---
title: "Get Customers for Offline DB to sync"
method: GET
path: "/v1/offline-db/sync/customers"
tags: ["Special Endpoints"]
---

# Get Customers for Offline DB to sync

`GET /v1/offline-db/sync/customers`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/v1/offline-db/sync/customers`
- Auth: one of:
  - API key in header `sessionKey`
  - API key in header `clientCode`
  - API key in header `jwt`
- TypeScript: <https://skmtc.dev/erply/apis/crm-api/docs/v1/offline-db/sync/customers/get.ts> (a function with typed inputs; its response is checked against the schema)

Get customers that have been added or modified since the specified timestamp. Fetches only the columns that are actually needed for the Offline Database.

## Query parameters

- `lastModified` integer, required
- `skip` integer
- `take` integer
- `withTotalCount` boolean

## Response `200`

OK

- CustomersApiInternalServerGraphModelOfflineDbCustomer[]
  - `code` string
  - `countryID` integer
  - `creditLimit` integer
  - `customerGroupID` integer
  - `fullName` string
  - `gender` string
  - `id` integer
  - `mail` string
  - `mobile` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/erply/apis/crm-api.md) - [All operations](https://skmtc.dev/erply/apis/crm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/erply/apis/crm-api/revisions/36dd4cc370b2?raw)
