PUT
Update Customer
Modify the details of an existing customer profile.
PUT/v2/customer/{customer_id}
Use this endpoint to update personal information for a given customer. You only need to pass the fields you wish to change. Fields omitted from the payload will remain unaffected.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | YES | Bearer token containing your secret API key. |
Content-Type | YES | Must be set to application/json. |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string | YES | The unique identifier (cus_...) of the customer you want to update. |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | NO | The updated email address. |
phone_number | string | NO | The updated phone number. |
address | string | NO | The updated residential or business address. |
Example Request
cURL
curl -X PUT "https://sandbox.hexcore.io/v2/customer/cus_8f92jdl29skw" \-H "Authorization: Bearer sk_test_your_secret_key" \-H "Content-Type: application/json" \-d '{ "email": "sam.new.email@example.com", "address": "42 Main St, Lagos, Nigeria" }'Example Response
JSON (200 OK)
{"status": true,"message": "Customer updated successfully","data": {"customer_id": "cus_8f92jdl29skw","first_name": "Samuel","last_name": "Smith","email": "sam.new.email@example.com","address": "42 Main St, Lagos, Nigeria","phone_number": "+2348098765432","updated_at": "2026-05-02T10:00:00Z"} }