Skip to main content

Update a customer

You can update customer information even after creating the customer. The request body is similar to the request body for creating a new customer. However, it should be a PUT request to https://api.allawee.com/customers/:id like so:

Sample Request
curl https://api.allawee.com/customers/:id
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{
"name": "string",
"reference": "[email protected]",
"type": "individual",
"claims": {
"individualInformation": {
"title": "string",
"gender": "M",
"nationalityCode": "NG",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"phoneNumber": "+2348123456789",
"dateOfBirth": "string",
"email": "[email protected]"
},
"individualAddress": {
"city": "Yaba",
"state": "Lagos",
"countryCode": "NG",
"addressLineOne": "No 10, Adekunle Close",
"addressLineTwo": "Off Ciroma Rd"
},
"individualIdentity": {
"type": "bvn",
"id": "A015BVP13Z",
"url": "https://example.com/document.png",
"issuingCountry": "NG"
},
},
"verifications": [
"string"
],
"metadata": {}
}'
-X PUT
Sample Success Response
{
"code": "success",
"data": {
"name": "Ciroma C Adekunle",
"type": "individual",
"status": "active",
"claims": {
"individualInformation": {
"firstName": "Ciroma",
"lastName": "Adekunle",
"middleName": "Chukwuma",
"email": "[email protected]",
"phoneNumber": "+2349154109234",
"title": "Mr",
"gender": "M",
"dateOfBirth": "1997-2-13",
"nationalityCode": "NG"
},
"individualAddress": {
"city": "Yaba",
"state": "NG-LA",
"countryCode": "NG",
"addressLineOne": "100 herbert macaulay road",
"addressLineTwo": "",
"postalCode": "11041"
},
"individualIdentity": {
"type": "bvn",
"id": "22489035167",
"issuingCountry": "NG"
}
},
"verifications": [
{
"type": "tier-3",
"status": "verified"
}
],
"metadata": {
"userId": 2345
},
"createdAt": "2023-03-14T23:21:12.882Z",
"updatedAt": "2023-03-16T02:03:49.738Z",
"id": "cus.2tXNjMhytgx7hCxu9",
"object": "customer"
}
}