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

HeaderRequiredDescription
AuthorizationYESBearer token containing your secret API key.
Content-TypeYESMust be set to application/json.

Path Parameters

ParameterTypeRequiredDescription
customer_idstringYESThe unique identifier (cus_...) of the customer you want to update.

Body Parameters

ParameterTypeRequiredDescription
emailstringNOThe updated email address.
phone_numberstringNOThe updated phone number.
addressstringNOThe 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"} }