Using TypeScript? Check out our GraphQL SDK for a fully typed client.
- Get customers (To fetch more than one customer at a time)
- Get customer by ID
- Get customer by email
customer:read
Get customers
Our API allows you to fetch customers as a collection using thecustomers query in GraphQL. This endpoint supports Pagination.
This is a very flexible endpoint which supports a variety of options for filtering and sorting, for full details try our API explorer.
Query
Variables
Get customer by ID
If you already have the ID of a customer from within Plain or one of our other endpoints you can fetch more details about them using thecustomer query in GraphQL.
Query
Variables
Get customer by email
To fetch a customer by email you can use thecustomerByEmail query in GraphQL.
Query
Variables

