Skip to main content

Customers API

The Customers API allows you to create and manage customer information. Storing customer data makes it easier to process payments and track customer activity.

The Customer Object

Customer Object Properties

string
Unique identifier for the customer
string
Customer’s full name
string
Customer’s email address
string
Customer’s phone number
object
Additional data attached to the customer
string
Timestamp when the customer was created
string
Timestamp when the customer was last updated

API Endpoints

List All Customers

Retrieve a list of customers with pagination.

Query Parameters

integer
Number of items per page (default: 30, max: 100)
integer
Page number (default: 1)
Search by name, email, or phone

Create a Customer

Create a new customer.

Request Parameters

string
required
Customer’s full name
string
Customer’s email address (required if phone is not provided)
string
Customer’s phone number (required if email is not provided)
object
Additional data to attach to the customer

Example Request

Retrieve a Customer

Retrieve details of a specific customer.

Path Parameters

string
required
ID of the customer to retrieve

Update a Customer

Update an existing customer.

Path Parameters

string
required
ID of the customer to update

Request Parameters

string
Customer’s full name
string
Customer’s email address
string
Customer’s phone number
object
Additional data to attach to the customer

Example Request

Delete a Customer

Delete a customer.

Path Parameters

string
required
ID of the customer to delete

List Customer Payments

Retrieve a list of payments made by a specific customer.

Path Parameters

string
required
ID of the customer

Query Parameters

integer
Number of items per page (default: 30, max: 100)
integer
Page number (default: 1)
string
Filter by payment status

Best Practices

Collect Complete Information

Collect as much customer information as possible to improve payment success rates and reduce fraud.Include both email and phone when available.

Use Metadata Effectively

Use the metadata field to store additional information about your customers that’s relevant to your business.This can include user IDs from your system, subscription information, or other custom data.

Validate Customer Data

Validate email addresses and phone numbers before sending them to the API to ensure they’re in the correct format.This helps prevent errors and improves the quality of your customer data.

Implement Customer Search

Use the search parameter when listing customers to quickly find existing customers instead of creating duplicates.Search by email, phone, or name to find matching customers.

Payments API

Create and manage payments for customers

Transfers API

Send money to customers

Webhooks API

Receive notifications about customer events