---
title: "List accounts"
method: GET
path: "/accounts/public"
tags: ["Customers"]
---

# List accounts

`GET /accounts/public`

## Request

- Base URL: `https://api.paperlessparts.com/v1`
- URL: `https://api.paperlessparts.com/v1/accounts/public`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/paperlessparts/apis/paperless-parts-api/docs/accounts/public/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of accounts. The accounts are returned 20 results at a time and can be iterated over by using the page parameter.

## Query parameters

- `search` string
- `page` string
- `erp_code` string
- `null_erp_code` boolean

## Response `200`

Successful response

- object[]
  - `name` string: The name of the account
  - `erp_code` string: The ERP code of the account
  - `id` integer: the ID of the account
  - `phone` string: Account phone number
  - `phone_ext` string: Account phone number extension
  - `type` string: Account type, either customer or vendor

## Other responses

- `404`: Not found response

---

[API](https://skmtc.dev/paperlessparts/apis/paperless-parts-api.md) - [All operations](https://skmtc.dev/paperlessparts/apis/paperless-parts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paperlessparts/apis/paperless-parts-api/revisions/3eb132ead1fe?raw)
