---
title: "Create a sample checkout"
method: POST
path: "/open-api/v1.0/samples/checkout"
tags: ["Sample Credits"]
---

# Create a sample checkout

`POST /open-api/v1.0/samples/checkout`

*Rate limit: 100 requests / 10 seconds per shop. See [Rate limiting](/guides/rate-limiting).*

Creates a checkout session to order product samples using sample credits

## Request body

- ComFourthwallOpenapiModelSamplesSampleCheckoutRequestV1
  - `items` ComFourthwallOpenapiModelSamplesSampleCheckoutItemV1[], required
    - `variantId` string, required
    - `quantity` integer, required
  - `challengeDefinitionId` string

## Response `200`

OK

- ComFourthwallOpenapiModelSamplesSampleCheckoutResponseV1
  - `checkoutPath` string, required

## Other responses

- `400` — Possible errors: `CHECKOUT_ITEMS_UNAVAILABLE_ERROR`, `CHECKOUT_OFFER_COST_NOT_SET_ERROR`, `DUPLICATE_VARIANTS_IN_CHECKOUT`, `SAMPLES_BUDGET_ILLEGAL_CURRENCY`, `SAMPLES_BUDGET_INVALID_VARIANT_IN_CHECKOUT`, `SAMPLES_BUDGET_MAXIMUM_AMOUNT_EXCEEDED`
- `404` — Possible errors: `CHECKOUT_VARIANT_NOT_FOUND_ERROR`, `OFFER_VARIANT_NOT_FOUND_ERROR`, `ONBOARDING_ACTION_NOT_FOUND`, `SHOP_TEAM_MEMBER_SHOP_NOT_FOUND_ERROR`
- `429` — Rate limited: 100 requests / 10 seconds per shop.

---

[API](https://skmtc.net/fourthwall/apis/fourthwall-apis-2.md) · [All operations](https://skmtc.net/fourthwall/apis/fourthwall-apis-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fourthwall/fourthwall-apis-2/revisions/ef273312f051/schema)
