---
title: "Reads a customer's answers to each product's registration questions, latest answered first."
---

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

Path: Sherpo merchant API › customer

`GET /v1/stores/{store}/customers/{customer}/answers`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `customer:read`

## Path parameters

- `store` (`listCustomerAnswers.path.store`; string, required) — The store's id.
- `customer` (`listCustomerAnswers.path.customer`; string, required)
  - minLength 1

## Query parameters

- `product` (`listCustomerAnswers.query.product`; string, optional) — An id, or `slug:<slug>`.
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/customers/<customer>/answers' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/customers/<customer>/answers';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/customers/<customer>/answers"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Reads a customer's answers to each product's registration questions, latest answered first.

#### Example

```json
{
  "total": 0,
  "items": [
    {
      "product": {
        "id": "string",
        "title": "string"
      },
      "answers": [
        {
          "question_id": "string",
          "label": "string",
          "kind": "string",
          "preset": "string",
          "value": true
        }
      ]
    }
  ]
}
```

- `total` (`listCustomerAnswers.response.200.total`; number, required) — How many products hold the customer's answers, past the first 100 too.
- `items` (`listCustomerAnswers.response.200.items`; array<object>, required)
  - `product` (`listCustomerAnswers.response.200.items.product`; object, required)
    - `id` (`listCustomerAnswers.response.200.items.product.id`; string, required)
    - `title` (`listCustomerAnswers.response.200.items.product.title`; string, required)
  - `answers` (`listCustomerAnswers.response.200.items.answers`; array<object>, required) — Each standing answer in the questions' order, with what was asked.
    - `question_id` (`listCustomerAnswers.response.200.items.answers.question_id`; string, required)
    - `label` (`listCustomerAnswers.response.200.items.answers.label`; string, required)
    - `kind` (`listCustomerAnswers.response.200.items.answers.kind`; string, required)
    - `preset` (`listCustomerAnswers.response.200.items.answers.preset`; any of, required)
      - any of: `string`, `null`
    - `value` (`listCustomerAnswers.response.200.items.answers.value`; any of, required)
      - any of: `boolean`, `string`, `array<string>`

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`listCustomerAnswers.response.default.type`; string, required)
  - format `uri`
- `title` (`listCustomerAnswers.response.default.title`; string, required)
- `status` (`listCustomerAnswers.response.default.status`; integer, required)
- `detail` (`listCustomerAnswers.response.default.detail`; string, required)
- `code` (`listCustomerAnswers.response.default.code`; string, optional)
- `context` (`listCustomerAnswers.response.default.context`; object, optional)
- `reached_core` (`listCustomerAnswers.response.default.reached_core`; boolean, optional)
- `core_answer` (`listCustomerAnswers.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/list-customer-answers/index.md
