---
title: "Prepare a pickup close-out (step 1 of 2)"
method: POST
path: "/api/reservations/{id}/pickup-confirm/prepare"
tags: ["Orders"]
---

# Prepare a pickup close-out (step 1 of 2)

`POST /api/reservations/{id}/pickup-confirm/prepare`

## Request

- Base URL: `https://clearlist.me`
- URL: `https://clearlist.me/api/reservations/{id}/pickup-confirm/prepare`
- Auth: one of:
  - API key in header `X-ClearList-API-Key`
  - OAuth 2 (authorization code, authorization URL `https://clearlist.me/oauth/authorize`, token URL `https://clearlist.me/api/oauth/token`, scopes: `write`)

Names the buyer, the items and what the chosen outcome will do, and returns a confirmation token valid for 10 minutes. CHANGES NOTHING. Show the seller the buyer, items and `consequence`, then send the token to POST /api/reservations/{id}/pickup-confirm.

## Request body

- object
  - `action` 'sold' | 'noshow', required

## Response `200`

Preview and token. Nothing changed.

- object
  - `success` boolean
  - `data` object
    - `confirmation_token` string
    - `expires_at` string, date-time
    - `reservation_id` string
    - `action` 'sold' | 'noshow'
    - `buyer` object
      - `name` string
      - `email` string
    - `items` string[]: Item titles, up to 20.
    - `more_items` integer: How many items were not listed.
    - `consequence` string: What the action will do, in plain words.

## Other responses

- `400`: action missing or not sold/noshow.
- `401`: Missing or invalid API key.
- `403`: The credential is read-only.
- `404`: No such reservation, or not this seller's (the same answer for both).
- `409`: `code: RESERVATION_NOT_ACTIVE`: the reservation already ended. Nothing to confirm.
- `429`: Too many confirmations prepared by this seller in the last hour.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/clearlist/apis/clearlist-api.md) · [All operations](https://skmtc.dev/clearlist/apis/clearlist-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clearlist/apis/clearlist-api/revisions/b1c1c4221cb8?raw)
