---
title: "Logs a checkout"
method: PUT
path: "/6/{hashid}/stats/checkout"
tags: ["Session & Events"]
deprecated: true
---

# Logs a checkout

`PUT /6/{hashid}/stats/checkout`

> **Deprecated.**

Logs a checkout event in stats logs. That is the event for when a
customer complete a checkout. The info of the items that were in
her session when she completes the checkout are logged in the event.

## Path parameters

- `hashid` string, required

## Request body

- LogCheckoutRequest
  - `session_id` string, required — Identifier of search session
  - `user_id` string — Identifier of user
  - `sources` string[] — a list with the javascript apps that can be considered "source" of that checkout

## Response `200`

OK

- StatsResponse — Response returned over register stat operation.
  - `status` string — Result of the stats request. i.e. 'registered'

## Other responses

- `400` — Bad Request — session_id exceeds 32 characters, user_id exceeds 36 characters, or other validation failure.
- `403` — Forbidden — missing or invalid API token, client IP is blocked, or CORS `Origin` not allowed.

---

[API](https://skmtc.dev/doofinder/apis/recommendations-api.md) · [All operations](https://skmtc.dev/doofinder/apis/recommendations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doofinder/recommendations-api/revisions/50dc63ab0921/schema)
