# Retrieving customer details

You can use the [`GET /v1/customers/{customerId}`](https://app.gitbook.com/s/drE2RCYBuoRpd2TC2sx2/customer-management/retrieve-a-customer-synchronous-api#v1-customers-customerid) resource to get a customer's details. You must provide either a `customerId` or `ERID` in the path.&#x20;

{% hint style="info" %}
The value of the `customerId` in the Admin API is exactly the same as the `shopperId` in the Shopper API.
{% endhint %}

{% tabs %}
{% tab title="cURL" %}
The following example gets the details for a specific customer with a `customerId`.

```html
curl --location --request GET 'https://api.digitalriver.com/v1/customers/{customerId}' \
--header 'Authorization: Basic <API_key>' \
...
```

The following example gets the details for a specific customer with an `ERID` and requires the `x-erid-as-cid=true` header.The following example gets the details for a specific customer with an `ERID` and requires the `x-erid-as-cid=true` header.

```html
curl --location --request GET 'https://api.digitalriver.com/v1/customers/{ERID}' \
--header 'Authorization: Basic <API_key>' \
--header 'header x-erid-as-cid=true' \
...
```

{% endtab %}

{% tab title="customerId and ERID 200 OK response" %}

```
{
  "shopper": {
    "id": "1067669580082",
    "loginType": "anonymous",
    "username": "jswanson@digitalriver.com",
    "externalReferenceId": "ABC123456789ABC",
    "firstName": "Automation",
    "lastName": "Tester",
    "emailAddress": "jswanson@digitalriver.com",
    "requestToBeForgotten": {
      "offset": {
        "totalSeconds": 0,
        "id": "Z",
        "rules": {
          "fixedOffset": true,
          "transitions": [],
          "transitionRules": []
        }
      },
      "nano": 0,
      "year": 2023,
      "monthValue": 2,
      "dayOfMonth": 27,
      "hour": 20,
      "minute": 36,
      "second": 2,
      "month": "FEBRUARY",
      "dayOfWeek": "MONDAY",
      "dayOfYear": 58
    }
  }
}
```

{% endtab %}
{% endtabs %}
