Customers
The Customers API allows you to create and manage customers on your integration.
Create Customer - POST
POSTInitialize a transaction from your backend
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Body Parameters
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"
}
'const axios = require('axios');
let data = JSON.stringify({
"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"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.backend.dotapay.ng/api/v1/customers/',
headers: {
'DPPRIVATEKEY': 'PRIVATE_KEY',
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Update Customer - PATCH
PATCHConfirm the status of a transaction
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Body Parameters
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
GETGet single customer details using ID.
Headers
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
GETGet single customer balance details using the ID.
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Path Parameters
identifier String
identifier used to create the customer.
Fetch Customer Transactions - GET
GETRetrieve transactions for a customer using the customer ID.
Headers
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
GETGet single customer virtual account(s) details using ID.
Headers
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
POSTCreate new virtual account for a customer
Headers
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
POSTConfirm the status of a transaction
Headers
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
GETGet the list of all customers using the private key.
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Sample Request
Last updated