---
title: "Create a customer"
method: POST
path: "/customers"
tags: ["Customers"]
---

# Create a customer

`POST /customers`

Create a customer profile. The combination of email and contact must be unique per customer. Customer profiles enable saved card tokens, faster checkout, and customer-scoped data.

## Request body

- object
  - `name` string, required — Customer name. 3-50 characters. Allowed: alphanumeric, period, apostrophe, forward slash, @, parentheses.
  - `contact` string — Phone number with country code. Min 8 digits, max 15 chars. Example: +919876543210.
  - `email` string — Email address. Max 64 characters.
  - `gstin` string — GST Identification Number.
  - `notes` Notes — Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.

## Response `200`

Customer created.

- 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.
- `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)
