---
page_title: Retrieve a customer
product: LotusPay
platform: Web
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/retrieve-a-customer
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Flotuspay%2Fweb%2Fcore-resources%2Fretrieve-a-customer
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/lotuspay/llms.txt
---

## API Version: default

# **Retrieve a customer** 



Retrieves the details of an existing customer. You need only supply the unique customer identifier that was returned upon customer creation.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| customer REQUIRED	 | The identifier of the customer to be retrieved. |


**Returns**  Returns a customer object if a valid identifier was provided.

## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/customers/{ID}

- Production: https://api.lotuspay.com/v1/customers/{ID}

## Request Type: 
GET

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value: sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:

### Sample Request and Response:

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/customers/CU004433221AA \
   -u sk_test_XjIHowXWSI23uvjepz2X82:
```

#### Response:
```json
{
    "id": "CU004433221AA",
    "object": "customer",
    "created": 1530224170,
    "livemode": false,
    "metadata": {
    },
    "bank_accounts": {
      "object": "list",
      "data": [
      {
          "id": "BA0011223344BB"
      }
      ],
      "total_count": 1,
      "url": "/v1/customers/CU004433221AA/bank_accounts"
    },
    "description": null,
    "email": "amit@gmail.com",
    "identification": "ABCDE1234A",
    "mandates": {
      "object": "list",
      "data": [
          {
              "id": "MD0011223366A"
          },
          {
              "id": "MD00123459DDA"
          }
      ],
      "total_count": 2,
      "url": "/v1/customers/CU004433221AA/mandates"
      },
    "mobile": "9123456789",
    "name": "Amit Jain",
    "phone": "9123456789",
    "subscriptions": {
      "object": "list",
      "data": [
          {
              "id": "SB0011223322D"
          }
      ],
      "total_count": 1,
      "url": "/v1/customers/CU004433221AA/subscriptions"
    }
  }
```



---

## See Also

- [Create a customer](https://juspay.io/in/docs/lotuspay/web/core-resources/create-a-customer)
- [List all customers](https://juspay.io/in/docs/lotuspay/web/core-resources/list-all-customers)
