Customers

The Customers API enables you to create, retrieve, update, and delete customer profiles. Use these endpoints to manage customer identity details, contact information, and track customers across transactions for reporting and compliance.

Customers API Endpoints

Create a new customer

Use Case

This endpoint is used to create a new customer.

Base URL

Create Customer Request Body
1
first_namestringNot Required

First name of the customer. This is typically used for identification and personalization in communications.

2
last_namestringNot Required

Last name or surname of the customer. Combined with the first name to form the full legal name.

3
emailstringRequired

A valid and unique email address used to identify and contact the customer. It also serves as a primary login credential.

4
phonestringNot Required

Customer’s active phone number, formatted in international standard (e.g., +233XXXXXXXXX). May be used for verification and notifications.

5
country_codestringNot Required

The country dial code used for phone number formatting (e.g., '+234' for Nigeria, '+1' for United States).

6
customer_typestringRequired

The type of customer account to create. Accepted values: 'individual' for personal accounts or 'business' for company accounts.

Request Body

Create Customer Response

Returns a Customer Response.

Standard response structure for all customer endpoints.

1
idstring

Unique identifier (UUID) assigned to the customer.

2
first_namestring

The customer’s given name.

3
last_namestring

The customer’s family name or surname.

4
emailstring

Email address associated with the customer.

5
customer_typestring

The type of customer account: ‘individual’ or ‘business’.

6
company_idstring

UUID of the company this customer belongs to.

7
created_bystring

UUID of the user or API client that created this customer.

8
is_activeboolean

Whether the customer account is currently active.

9
metadatastring

JSON string of additional metadata attached to the customer.

10
created_atstring

ISO 8601 timestamp when the customer was created.

11
updated_atstring

ISO 8601 timestamp of the most recent update to the customer record.

Response

Update Customer

Use Case

This endpoint is used to update an existing customer's information.

1
idstring (UUID)Required

The unique identifier of the customer you want to update

Update Customer

Update Customer Request Body
1
firstNamestringRequired

Customer's first name.

2
lastNamestringRequired

Customer's last name.

3
phonestringRequired

Customer's phone number in international format.

4
emailstringRequired

Customer's valid email address.

Request Body

Update Customer Response

Returns an updated CustomerResponse..

Note

The response is identical to that of Customer Response. Refer to the Customer Response. section for field explanations.

Update Customer Response

Blacklist A Customer

Use Case

This endpoint is used to mark a customer as blacklisted.

1
idstring (UUID)Required

Unique identifier of the customer to be blacklisted. This is passed as a path parameter.

2
blacklistbooleanRequired

Set to true to blacklist the customer, or false to remove them from blacklist.

Blacklist Customer

Blacklisted Customer Response

Returns an updated CustomerResponse. with blacklist: true..

1
idstring

A globally unique identifier (UUID) that uniquely identifies the customer record in the system.

2
firstNamestring

The first or given name of the customer. Used for display and personalization.

3
lastNamestring

The surname or family name of the customer. Useful for full name generation.

4
emailstring

A valid and unique email address associated with the customer. Used for communication and identification.

5
phonestring

The customer's phone number in international format. Optional but can be used for verification or contact.

6
countryCodestring

The country dial code used for phone number formatting (e.g., '+234' for Nigeria, '+1' for United States).

7
blacklistboolean

Indicates if the customer is blacklisted. A value of true means restricted from transactions.

8
createdAtstring

Timestamp (ISO 8601 format) indicating when the customer was created in the system.

9
updatedAtstring

Timestamp (ISO 8601 format) of the most recent update made to the customer's profile.

Blacklist Customer Response

Get Customer by ID, Reference or Email

Use Case

This endpoint is used to retrieve a single customer by id, ref, or email.

Get Customer by ID, Reference or Email

Response

Returns a Customer Response.

Note

The response is identical to that of Customer Response. Refer to the Customer Response. section for field explanations.

Get Customer by ID

Retrieve customers

Use Case

This endpoint is used to retrieve a list of all customers with optional filtering and pagination.

Get All Customers

Query Parameters
1
customersarray

An array of customer objects. Empty if no customers are found, but when present, contains detailed information about each customer.

2
metaobject

Contains pagination information including current page, items per page, total item count, total page count, and flags for previous/next pages.

3
pagenumber

The current page number of the results.

4
takenumber

The number of items returned per page.

5
itemCountnumber

Total number of customer items available.

6
pageCountnumber

Total number of pages available based on the current 'take' value.

7
hasPreviousPageboolean

Indicates whether there is a previous page of results available.

8
hasNextPageboolean

Indicates whether there is a next page of results available.

Fetch All Customers Response

Retrieved Response

Returns a paginated list of Customer Response[].

1
idstring (UUID)

A system-generated universally unique identifier (UUID) for the customer. Used to reference the customer internally.

2
firstNamestring

The customer’s given name. Typically used in user-facing communication or personalization.

3
lastNamestring

The customer’s surname. Helpful for identity verification or formal communications.

4
emailstring

The customer's unique email address, used for communication and login. Must follow standard email format.

5
phonestring

The customer's mobile number in international format (e.g., +234xxxxxxxxx). Useful for two-factor authentication or support.

6
countryCodestring

The country dial code used for phone number formatting (e.g., '+234' for Nigeria, '+1' for United States).

7
blacklistboolean

Boolean flag that indicates if the customer is blacklisted, true means they are blocked from certain actions.

8
createdAtstring (ISO 8601)

Timestamp in ISO 8601 format indicating when the customer profile was first created.

9
updatedAtstring (ISO 8601)

Timestamp in ISO 8601 format marking the last time the customer profile was updated.

Fetch All Customers Response
Did you find this page useful?