---
title: "POST /cart/checkout"
method: POST
path: "/cart/checkout"
---

# POST /cart/checkout

`POST /cart/checkout`

Checkout a user's merchant cart.

## Request body

- object
  - `external_user_id` string, required — Your unique identifier for the user.
  - `merchant_id` integer, required — Unique identifier for the merchant.
  - `payment_method` object
    - `id` string, required — Your unique identifier for the payment method.
    - `jwe` string, required — JWE value of the `user` and `card` objects. Created using the public key retrieved from [Retrieve JWK](https://docs.knotapi.com/api-reference/products/card-switcher/retrieve-jwk)
    - `is_single_use` boolean, required — Whether the payment method is single-use only.
  - `simulate` 'failed' — The checkout attempt fails.

## Response `202`

Successful request.

- object
  - `message` string — Success message.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized request.
- `403` — Forbidden request.
- `500` — Internal server error.

---

[API](https://skmtc.net/knotapi/apis/knot-api.md) · [All operations](https://skmtc.net/knotapi/apis/knot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knotapi/knot-api/versions/4610832c2087/schema)
