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
firstNamestringNot Required

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

2
lastNamestringNot 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
countryCodestringNot Required

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

Request Body

Create Customer Response

Returns a Customer Response.

Standard response structure for all customer endpoints.

1
idstringRequired

Universally unique identifier (UUID) assigned to the customer. This ID is used to reference the customer across all systems and APIs.

2
firstNamestringOptional

The customer's given name. Useful for personalization in communications and customer interfaces.

3
lastNamestringOptional

The customer’s family name or surname. When combined with the first name, it forms the customer’s full name.

4
emailstringRequired

A unique and valid email address associated with the customer. Used for communication, verification, and login purposes.

5
phonestringOptional

Customer’s contact phone number in international format (e.g., +233XXXXXXXXX). May be used for notifications or identity verification.

6
countryCodestring

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

7
blacklistbooleanRequired

Indicates whether the customer is blacklisted (true) or allowed (false). Blacklisted customers are restricted from performing certain actions.

8
createdAtstringRequired

The date and time when the customer record was initially created, formatted as an ISO 8601 timestamp (e.g., '2024-11-05T12:34:56Z').

9
updatedAtstringRequired

The date and time of the most recent update to the customer record, also in ISO 8601 format.

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?