Update Customer
https://sandboxapi.onbrails.com/api/v1/customers/{customer_id} (opens in a new tab)
Path Parameters
Parameter | type | Required |
---|---|---|
customer_id | string | ✅ |
Body Parameters
Parameter | type | Required |
---|---|---|
firstName | string | ✅ |
string | ✅ |
Request
Customers/Update Customer [POST]
curl --request PUT \
--url https://sandboxapi.onbrails.com/api/v1/customers/customer_id \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"email": "string",
"firstName": "string"
}
'
Responses
🟢 200 - Result example
{
"status": true,
"message": "successfully updated customer",
"data": {
"id": "1e258349-2043-4ca1-b39c-8418f9e0d36d",
"createdAt": "2021-08-26T11:15:23.788Z",
"updatedAt": "2021-08-26T11:19:02.287Z",
"firstName": "Bob",
"lastName": "Wonder",
"email": "bob@braills.com",
"phone": "9021534385",
"countryCode": "+234",
"blacklist": false,
"transactions": []
}
}