Updates the contact details of an existing customer. Only the customer's email and phone can be updated. This is a partial update — send only the fields you want to change; any field you omit is left untouched. You must supply at least one of email or phone, and a supplied field cannot be sent as blank or null. The phone number is validated against the customer's stored country. To check the complete list of API validations, click here. Account funding partners can also update the address and kyc.last_kyc_date, in the same shape as on create, for example after a re-KYC. Other fields, such as name, dob and kyc.pan_number, are not updated.
The new phone number of the customer, with country code. Validated against the customer's stored country using the phonelib library.
Account funding only. Send with city, state, country and pincode. Replaces the stored address.
- Production serverhttps://api.glomopay.com/api/v1/customer/{id}
curl -i -X PATCH \
https://api.glomopay.com/api/v1/customer/cust_5JU9yv0lGSUP \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "customer@gmail.com",
"phone": "+91-9023456789",
"address": "Villa 12, Jumeirah Beach Road",
"city": "Dubai",
"state": "Dubai",
"country": "ARE",
"pincode": "682001",
"kyc": {
"last_kyc_date": "2026-10-01"
}
}'Customer updated successfully
The name of the customer. Reserved sandbox test values: jexru7, nerqu8, havku9, dexru6 and renvak4 (any letter case) force a sanctions-screening hit whenever this customer is screened.
The phone number of the customer, with country code. Phone number validation is done using the phonelib library.
The date of birth of the customer, as a calendar date in YYYY-MM-DD format with no time or time zone. Must be a date before today.
Optional in general, required for account funding customers.
The nationality of the customer, as an ISO 3166-1 alpha-3 code. The alpha-2 form is rejected: send IND, not IN.
Optional in general, required for account funding customers.
The customer's PAN (tax identification number), derived from the kyc.pan_number you send at creation. null where you sent none, and also where PAN processing is not enabled for your account. Searchable via the tax_identification_number query parameter on the list-customers endpoint.
The KYC records you already hold for this customer. Accepts exactly the two fields below. If PAN processing is not enabled for your account, kyc.pan_number is ignored.
In responses, create, get and update return kyc as { "pan_number": ... } when a PAN is stored, and leave it out otherwise. last_kyc_date is never returned.
The country where the customer is located. Country should be sent as a ISO 3166-1 alpha-3 code.
The postal code/pincode of the customer's address. List of countries where pincode is mandatory are listed here.
When the customer was created, as an ISO 8601 date-time in UTC.
{ "id": "cust_5JU9yv0lGSUP", "name": "John Doe", "customer_type": "individual", "email": "customer@gmail.com", "phone": "+91-9023456789", "dob": "2003-11-29", "nationality": "IND", "tax_identification_number": "BFQPG7654R", "kyc": { "pan_number": "BFQPG7654R" }, "address": "123 Main St", "city": "Anytown", "state": "Anystate", "country": "IND", "pincode": "560048", "status": "active", "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }