Customers

The Customers API allows you to create and manage customers on your integration.

Create Customer - POST

Initialize a transaction from your backend

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Body Parameters

Name
Type
Description

first_name

string

First name of the customer

last_name

number

Last name of the customer

nin

string

NIN of the customer

bvn

string

BVN of the customer

phone

string

Phone number of the customer

email

string

Email address of the customer

reference

string

Wallet reference of the customer(To identitfy the customer.)

type

string

The type field can be either wallet or collection. When type is set to collection, the collection_wallet_code must be provided.

collection_wallet_code

string

collection_wallet_code for the customer.

Sample Request

curl --location 'https://api.backend.dotapay.ng/api/v1/customers/' \
--header 'DPPRIVATEKEY: PRIVATE_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "first_name": "Wale",
  "last_name": "Ajanlekoko",
  "nin": "12345678901",
  "dob": "1990-06-15",
  "bvn": "",
  "phone": "+2348012345678",
  "email": "[email protected]",
  "reference": "CUST2025-0017",
  "type": "wallet",
  "collection_wallet": "WALLET_DEMO_QRNTBVSE"
}
'

Update Customer - PATCH

Confirm the status of a transaction

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Body Parameters

Name
Type
Description

first_name

string

First name of the customer

last_name

number

Last name of the customer

nin

string

NIN of the customer

bvn

string

BVN of the customer

phone

string

Phone number of the customer

email

string

Email address of the customer

reference

string

Wallet reference of the customer(To identitfy the customer.)

type

string

The type field can be either wallet or collection. When type is set to collection, the collection_wallet_code must be provided.

collection_wallet_code

string

collection_wallet_code for the customer.

Sample Request

Fetch Single Customer - GET

Get single customer details using ID.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

The customer ID is used to fetch the customer's details

Fetch Balance - GET

Get single customer balance details using the ID.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

identifier used to create the customer.

Fetch Customer Transactions - GET

Retrieve transactions for a customer using the customer ID.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

The customer ID is used to fetch the customer transactions.

Fetch Customer Virtual Accounts - GET

Get single customer virtual account(s) details using ID.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

The customer ID is used to fetch the customer's virtual accounts.

Create Customer Virtual Account - POST

Create new virtual account for a customer

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

The customer ID is used to create the customer's virtual account.

Create Customer One-Time Account - POST

Confirm the status of a transaction

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

The customer ID is used to create a one-time account for the customer.

Customers List - GET

Get the list of all customers using the private key.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Sample Request

Last updated