first_name
, last_name
and phone
are optional parameters.Param | Required | Description |
---|---|---|
authorization
string |
Yes |
Set value to Bearer SECRET_KEY
|
content-type
string |
Yes |
Set value to application/json
|
Param | Required | Description |
---|---|---|
email
string |
Yes | Customer's email address |
first_name
string |
Yes | Customer's first name |
last_name
string |
Yes | Customer's last name |
phone
string |
(Optional) | Customer's phone number |
metadata
object |
(Optional) | A set of key/value pairs that you can attach to the customer. It can be used to store additional information in a structured format. |
{
"status": true,
"message": "Customer created",
"data": {
"email": "zero@sum.com",
"domain": "test",
"customer_code": "CUS_mc85c8hzzwfyowx",
"id": 6,
"created_at": "2022-02-01T00:01:33.000000Z",
"updated_at": "2022-02-01T00:01:33.000000Z"
}
}
curl https://budpay.ng/api/v1/customer
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "email": "zero@budpay.com",
"first_name": "Zero",
"last_name": "Sum",
"phone": "+2348123456789"
}'
-X POST