Create a customer

Create a new customer

When you create a customer via the API, and the bvn is present a digital wallet is automatically created for that customer. If the customer is not a person the you can specify the add_wallet query params if you want a wallet attached to the customer.

URI

POST

https://api.tryduplo.com/v1/wallets/customers?add_wallet={BOOLEAN_VALUE}

Authorization string

set value to Bearer SECRET_KEY

Query Param

add_wallet boolean

Adds a wallet to a customer on the creation of a customer when value is true.

Body Param

business_id string required

Merchant Business ID

first_name string required

Customer's first name

last_name string required

Customer's last name

phone_number string required

Customer's phone number

email string required

Customer's email address

bvn string

Customer's bank verification number

preferred_banks array

List of customer's preferred banks

Sample request

Duplo Response

Last updated

Was this helpful?