# Subcustomers

If you want to let customers work on your Project, like adding new NFTs *or* if you want to let customers define the NFTs they're finally minting.

&#x20;**Endpoint**

```
/v2/CreateSubcustomer/{customerid}
```

### Curl request

As always with the NMKR API, the API Key / Authentication Token is given in the header

**Create Subcustomer:**

```json
curl --request POST \ --url https://studio-api.preprod.nmkr.io/v2/CreateSubcustomer/CUSTOMER_ID \ 
--header 'Content-Type: application/json' \ 
--header 'authorization: API_KEY' \ 
--data '{ 
 "description": "DESCRIPTION_OF_SUBCUSTOMER", 
 "externalid": "EXTERNAL_ID_FROM_YOUR_SYSTEM" 
 } '
```

**Set up API for Subcustomer:**

```json
curl --request POST \ --url https://studio-api.preprod.nmkr.io/v2/CreateApikeyForSubcustomer/CUSTOMER_ID \ 
--header 'Content-Type: application/json' \ 
--header 'authorization: API_Key' \ 
--data '{ 
 "subcustomerid": "SUB_CUSTOMER_ID_FROM_CreateSubcustomer", 
 "description": "YOUR_DESCRIPTION", 
 "ExpiryDate":"2025-01-01T00:00:01" 
 } ' 
```

**Get Subcustomer (returns list for with all subcustomers of a main customer):**

```
curl --request GET \ --url https://localhost:44358/v2/GetSubcustomers/CUSTOMER_ID \ 
--header 'authorization: API_KEY'
```
