---
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/create-a-customer
page_title: Create a customer
---

## API Version: default


# **Create a customer** 



Creates a new customer object.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| metadata optional	 | A set of key/value pairs that you can attach to a customer object. It can be useful for storing additional information about the customer in a structured format. |
| email optional	 | Customer’s email address. It’s displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters. |
| id optional	 | Customer's identification number e.g. Permanent Account Number (tax ID in India). |
| mobile optional	 | Customer's mobile number. |
| name optional	 | Customer's name. Can be different to their bank account name. |
| phone optional	 | Customer's phone. |


**Returns**  Returns a customer object if valid arguments were provided.## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/customers/

- Production: https://api.lotuspay.com/v1/customers/

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value:  sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:
### Sample Request and Response:

#### Request:
```Shell
{"success":false,"message":"No Data found for the given path"}
```

#### Response:
```json
{"success":false,"message":"No Data found for the given path"}
```

## API Responses:
