API Reference
Update Customer [PUT]

Update Customer

https://sandboxapi.bitnob.co/api/v1/customers/{customer_id} (opens in a new tab)

Updating a customer data.


Path Parameters

ParametertypeRequired
customer_idstring

Body Parameters

ParametertypeRequired
firstNamestring
emailstring

Request

Customers/Update Customer [POST]
curl --request PUT \
     --url https://sandboxapi.bitnob.co/api/v1/customers/customer_id \
     --header 'Authorization: Bearer API_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": []
}
}
Last updated on