---
title: "Marks an entry complete for the customer."
---

> 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 customer API › progress

`POST /v1/stores/{store}/products/{product}/entries/{entry}/complete`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `progress:write`

## Path parameters

- `store` (`completeEntry.path.store`; string, required) — A hostname of the store.
- `product` (`completeEntry.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1
- `entry` (`completeEntry.path.entry`; string, required)
  - minLength 1

## Request body

_Optional._

- `preview` (`completeEntry.preview`; string, optional) — A token a seller made for the entry's product's page, which opens a published entry of the product unpublished, or for the entry itself, which opens it unpublished too, gated as ever; with it, any entry it does not open is `not_found` `preview`.
  - minLength 1; maxLength 128

## Example request

```json
{
  "preview": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/entries/<entry>/complete' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "preview": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/entries/<entry>/complete';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({preview: 'string'})
};

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/customer/v1/stores/<store>/products/<product>/entries/<entry>/complete"

payload = { "preview": "string" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Marks an entry complete for the customer.

#### Example

```json
{
  "entry_id": "string",
  "product_id": "string",
  "completed_at": "string",
  "certificates": [
    {
      "id": "string",
      "product_id": "string",
      "certificate_id": "string",
      "score": 0,
      "attempt": 0,
      "issued_at": "string"
    }
  ]
}
```

- `entry_id` (`completeEntry.response.200.entry_id`; string, required)
- `product_id` (`completeEntry.response.200.product_id`; string, required)
- `completed_at` (`completeEntry.response.200.completed_at`; string, required)
- `certificates` (`completeEntry.response.200.certificates`; array<object>, required)
  - `id` (`completeEntry.response.200.certificates.id`; string, required)
  - `product_id` (`completeEntry.response.200.certificates.product_id`; string, required)
  - `certificate_id` (`completeEntry.response.200.certificates.certificate_id`; string, required)
  - `score` (`completeEntry.response.200.certificates.score`; any of, required)
    - any of: `number`, `null`
  - `attempt` (`completeEntry.response.200.certificates.attempt`; any of, required)
    - any of: `number`, `null`
  - `issued_at` (`completeEntry.response.200.certificates.issued_at`; string, required)

### default

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

#### Example

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

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


Source: https://docs.sherpo.io/customer-api/reference/complete-entry/index.md
