Customers

The Customers section provides access to customer-related data including identity details, contact information, and blacklist status. This allows you to create, manage, and filter customer profiles within your system for transactional and compliance purposes.

Base URL

Create a new customer

Use Case

This endpoint is used to create a new customer.

Base URL

Create Customer Request Body
1
firstNamestring

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

2
lastNamestring

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

3
emailstring

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

4
phonestring

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

5
countryCodestring

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

First name of the customer

2
phonestringRequired

Customer's phone number

Request Body

Update Customer Response

Returns an updated CustomerResponse..


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.

Blacklisted 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 CustomerResponse.


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
pagenumber

Specifies which page of results to fetch. Used for paginating through large sets of customer records. Defaults to 1 if not provided.

2
limitnumber

Defines the number of customer records returned per page. Useful for controlling result size. Default is 20.

3
emailstring

Allows you to filter customers by their email address. Useful when searching for a specific customer.

4
blacklistboolean

Set to true to return only blacklisted customers, or false to exclude them. Helps in managing user access.

5
countryCodestring

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

Query Parameters

Retrieved Response

Returns a paginated list of CustomerResponse[].

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.

Sample Customer Response
Did you find this page useful?