> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Customer

> Endpoint used to create customer

```bash Request Example theme={null}
curl --request POST 'https://api.mayar.id/hl/v1/customer/create' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--header 'Content-Type: application/json' \
--data-raw '{
   		"name": "Raihan Nur Azmii",
    	"email": "mraihanna19@gmail.com",
    	"mobile": "089912345678"
	}
'
```

```json Response Example 200 theme={null}
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "name": "Raihan Nur Azmii",
        "email": "mraihanna19@gmail.com",
        "mobile": "089912345678",
        "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
        "customerId": "b0356d4c-516a-403e-abfe-b144da7068b4"
    }
}
```

Endpoint:

```Production Production theme={null}
https://api.mayar.id/hl/v1/customer/create
```

```Sandbox Sandbox theme={null}
https://api.mayar.io/hl/v1/customer/create
```

## Authorization

**Authorization** `string` *required*

Example:

`Authorization | Bearer Paste-Your-API-Key-Here`

## Request Body

**name** `string` *required*

Customer Name.

**email** `string` *required*

Customer email.

**mobile** `string` *required*

Customer telephone number.

## Response

Successful Response

### Main Structure (Root)

**statusCode** `integer`

Status code form API.

**messages** `string`

Status message that describes the status code.

**data** `array of object`

The main data returned (detailed customer/user information).

### data Structure (Array Of Object)

**name** `string`

Customer name.

**email** `string`

Customer email address.

**mobile** `string`

Customer phone number.

**userId** `string\<uuid\>`

Unique ID for the user (the account owner).

**response** `string\<uuid\>`

Unique ID for the customer associated with the user.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.