---
title: "Update a customer"
method: PUT
path: "/customers/{id}"
tags: ["Customers"]
---

# Update a customer

`PUT /customers/{id}`

Update a customer's name, email, or contact. The combination of email and contact must remain unique. Contact number must contain at least 8 digits.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string — Updated name. 3-50 characters.
  - `contact` string — Updated phone number. Min 8 digits including country code.
  - `email` string — Updated email. Max 64 characters.

## Response `200`

Updated customer.

- Customer
  - `id` string — Unique customer identifier. Prefix: cust_
  - `entity` 'customer'
  - `name` string — Customer name. 3-50 characters. Allowed: alphanumeric, period, apostrophe, forward slash, @, parentheses.
  - `contact` string — Phone number. Max 15 characters. Include country code (e.g. +919876543210). Minimum 8 digits.
  - `email` string — Email address. Max 64 characters.
  - `gstin` string — Goods and Services Tax Identification Number (optional).
  - `notes` Notes — Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.
  - `created_at` integer — Unix timestamp of customer creation.

## Other responses

- `400` — Bad request. Invalid parameters or missing required fields.
- `401` — Authentication failed. Invalid or missing API key credentials.
- `404` — Resource not found.
- `429` — Rate limit exceeded. Implement exponential backoff with jitter before retrying.

---

[API](https://skmtc.net/razorpay/apis/razorpay-api.md) · [All operations](https://skmtc.net/razorpay/apis/razorpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/razorpay/razorpay-api/versions/824ca9e6faef/schema)
