Skip to content

Update a customer

PUThttps://api.gravv.xyz/v1/customers/{customer_id}

Update details of a specific customer. The path customer_id parameter is cosmetic — the service reads customer_id from the request body (marked required there). Only provided fields are updated.

Path Params

  • customer_idstringrequired

    Cosmetic path parameter — the service resolves the customer from customer_id in the request body, not this value.

Body Params

  • customer_idstringrequired

    UUID of the customer to update. Required in the request body — the path customer_id parameter is cosmetic only.

  • first_namestring
  • middle_namestring
  • last_namestring
  • emailstring
  • phonestring
  • date_of_birthstring
  • genderstringAllowed:malefemaleother
  • addressobject
  • business_namestring
  • business_descriptionstring
  • business_typestring
  • business_industrystring
  • registration_numberstring
  • external_idstring
  • associated_personsarray of object

    List of associated persons to update or add. If id is provided the existing record is updated; if omitted a new person is created (all required fields must then be present).

Responses

Language
curl --request PUT \
--url 'https://api.gravv.xyz/v1/customers/{customer_id}' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customer_id": "e59daa17-20ed-4727-833c-e1c633782cc8",
"first_name": "Jane",
"last_name": "Smith",
"phone": "+15555550199"
}'
{
"data": {
"message": "customer updated successfully",
"status": true
},
"error": null
}