---
title: "Place a test purchase"
method: POST
path: "/checkouts/{id}/test_purchase"
tags: ["Checkouts"]
---

# Place a test purchase

`POST /checkouts/{id}/test_purchase`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/checkouts/{id}/test_purchase`
- Auth: API key in header `Authorization`

Completes the checkout as a no-charge test order, as an admin of the account. Nothing is charged and Stripe is not called. The order is created with `livemode: false` and sends the same `order.paid` webhook a real sale sends, with `livemode: false`, so a site can test its order handling end to end. Crevio's receipt goes to the admin placing the order, not to a contact. A checkout can be completed once, and an account can place 5 test purchases a minute. A waitlist checkout places no order: it returns the `waitlist_entry` with `livemode: false`, and approving it places the test order.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `name` string: Name on the test order. Defaults to the admin's name.
  - `phone_number` string: Phone number on the test order, in E.164 format.

## Response `201`

Test order created, or the test waitlist entry for a waitlist checkout

- union
  - Order
    - `id` string, required
    - `object` string, required
    - `status` 'succeeded' | 'pending' | 'failed' | 'refunded' | 'partially_refunded' | 'disputed', required
    - `livemode` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `withdrawal_waiver_at` string, nullable, required: When the buyer agreed at checkout to immediate access and to losing the EU 14-day withdrawal right. Null when not asked.
    - `metadata` object, nullable, required
    - `amount` integer, required: Amount charged after discounts, in the smallest currency unit (79 = $0.79).
    - `currency` string, required
    - `amount_refunded` integer, required: Amount refunded so far, in the smallest currency unit.
    - `contact` union, required: ID by default, full object when expanded
      - string
      - Contact
        - `id` string, required
        - `object` string, required
        - `email` string, required
        - `name` string, nullable, required
        - `first_name` string, nullable, required
        - `last_name` string, nullable, required
        - `phone_number` string, nullable, required
        - `company` string, nullable, required
        - `lifecycle` 'lead' | 'customer', required
        - `became_customer_at` string, date-time, nullable, required
        - `notes` string, nullable, required
        - `confirmed_at` string, date-time, nullable, required
        - `created_at` string, date-time, required
        - `updated_at` string, date-time, required
        - `deleted_at` string, date-time, nullable, required
        - `purge_at` string, nullable, required
        - `subscribed` boolean
        - `anonymized` boolean, required
        - `metadata` object, required
        - `orders_count` integer, required: Live orders that went through: refunded ones count, while pending, failed and test-mode orders don't.
        - `total_spend` integer, required: Lifetime spend in the smallest unit of the account's currency, net of refunds. Test-mode orders and disputed charges are left out.
        - `tags` unknown[], required
          - unknown
    - `line_items` OrderItem[]
      - `id` string, required
      - `object` string, required
      - `quantity` integer, required
      - `amount` integer, required
      - `order` union: ID by default, full object when expanded
        - string
        - Order (recursive)
      - `price_variant` union, required: ID by default, full object when expanded
        - string
        - PriceVariant
          - `id` string, required
          - `object` string, required
          - `name` string, required
          - `amount` integer, nullable, required
          - `amount_type` 'free' | 'fixed' | 'custom', required
          - `billing_type` 'subscription' | 'one_time' | 'payment_plan', required
          - `recurring_interval` 'day' | 'week' | 'month' | 'year' | 'null', nullable, required
          - `interval_count` integer, required
          - `installment_count` integer, nullable, required
          - `setup_fee_amount` integer, nullable, required
          - `trial_period_days` integer, nullable, required
          - `revoke_after_days` integer, nullable, required
          - `quantity_available` integer, nullable, required
          - `archived` boolean, nullable, required
          - `position` integer, required
          - `hidden` boolean, nullable, required
          - `created_at` string, date-time, required
          - `updated_at` string, date-time, required
          - `currency` string, nullable, required
          - `discounted_from_amount` integer, nullable, required
          - `minimum_amount` integer, nullable, required
          - `maximum_amount` integer, nullable, required
          - `preset_amount` integer, nullable, required
          - `waitlist` boolean, required
          - `form_id` string, nullable, required: The form (`form_...`) asked at every checkout of this variant, including waitlist applications. Its answers become a form submission on the order or waitlist entry.
          - `benefits` string[]
          - `cross_sells` string[], required: Price variants (`price_...`) recommended at checkout when this one is bought, at most 2.
          - `purchase_url` string, required
          - `product` string, required
      - `product` union, required: ID by default, full object when expanded
        - string
        - Product
          - `id` string, required
          - `object` string, required
          - `name` string, required
          - `slug` string, required
          - `status` 'draft' | 'active' | 'archived', required
          - `description` string, required
          - `confirmation_message` string, nullable, required
          - `created_at` string, date-time, required
          - `updated_at` string, date-time, required
          - `metadata` object, required
          - `body_html` string, required
          - `button_cta` string, nullable, required
          - `url` string, required: Deprecated: a product's page lives wherever its site puts it, so build links from your site's own routes.
          - `available_from` string, date-time, nullable, required
          - `available_until` string, date-time, nullable, required
          - `tax_code` string, nullable, required: Stripe tax code (txcd_XXXXXXXX); null uses the account's default
          - `published_at` string, date-time, nullable, required
          - `reviews_count` integer, required
          - `average_rating` number, nullable, required
          - `seo` union: ID by default, full object when expanded
            - string
            - Seo
              - …
          - `media_gallery` MediaGalleryItem[], required
            - `id` string, required
            - `type` string, required
            - `category` 'image' | 'video' | 'external', required
            - `url` string, required
          - `price_variants` PriceVariant[], required
            - `id` string, required
            - `object` string, required
            - `name` string, required
            - `amount` integer, nullable, required
            - `amount_type` 'free' | 'fixed' | 'custom', required
            - `billing_type` 'subscription' | 'one_time' | 'payment_plan', required
            - `recurring_interval` 'day' | 'week' | 'month' | 'year' | 'null', nullable, required
            - `interval_count` integer, required
            - `installment_count` integer, nullable, required
            - `setup_fee_amount` integer, nullable, required
            - `trial_period_days` integer, nullable, required
            - `revoke_after_days` integer, nullable, required
            - `quantity_available` integer, nullable, required
            - `archived` boolean, nullable, required
            - `position` integer, required
            - `hidden` boolean, nullable, required
            - `created_at` string, date-time, required
            - `updated_at` string, date-time, required
            - `currency` string, nullable, required
            - `discounted_from_amount` integer, nullable, required
            - `minimum_amount` integer, nullable, required
            - `maximum_amount` integer, nullable, required
            - `preset_amount` integer, nullable, required
            - `waitlist` boolean, required
            - `form_id` string, nullable, required: The form (`form_...`) asked at every checkout of this variant, including waitlist applications. Its answers become a form submission on the order or waitlist entry.
            - `benefits` string[]
            - `cross_sells` string[], required: Price variants (`price_...`) recommended at checkout when this one is bought, at most 2.
            - `purchase_url` string, required
            - `product` string, required
          - `reviews` Review[]
            - `id` string, required
            - `object` string, required
            - `rating` integer, required
            - `customer_name` string, nullable, required
            - `content` string, nullable, required
            - `created_at` string, date-time, required
            - `customer_image_url` string, nullable, required
    - `checkout` string, nullable, required: Null for a renewal, which no checkout started.
    - `billing_reason` 'subscription_create' | 'subscription_cycle' | 'null', nullable, required: As Stripe names the invoice: `subscription_create` for the purchase that started a subscription, `subscription_cycle` for each paid renewal after it. Null for a one-time purchase.
    - `subscription` string, nullable, required: The subscription this order started or renewed.
    - `billing_address` Address, nullable, required
      - `name` string, nullable, required
      - `line1` string, nullable, required
      - `line2` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required
    - `shipping_address` Address, nullable, required
      - `name` string, nullable, required
      - `line1` string, nullable, required
      - `line2` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required
    - `charge` string, nullable, required
    - `application_fee_amount` integer, nullable, required: Crevio's platform fee on this payment, in the smallest currency unit. Null when the payment carried no fee, such as a test order, or the order has no charge.
    - `form_submissions` FormSubmission[], required: The buyer's answers to the price variant's form at checkout.
      - `id` string, required
      - `object` string, required
      - `answers` object[], required
        - `field_type` string, required
        - `label` string, required
        - `required` boolean, required
        - `value` union, required: A `consent` answer is `true` when the person ticked it.
          - string
          - string[]
          - boolean
        - `options` string[]
      - `respondent_type` string, required
      - `confirmation_requested_at` string, date-time, nullable, required
      - `confirmed_at` string, date-time, nullable, required
      - `delivered_at` string, date-time, nullable, required
      - `created_at` string, date-time, required
      - `respondent_id` string, required
      - `form_id` string, required
  - WaitlistEntry
    - `object` string, required
    - `id` string, required
    - `price_variant_id` string, required
    - `product_id` string, required
    - `contact_id` string, required
    - `order_id` string, nullable, required: The order made when the entry was approved and paid.
    - `status` 'pending' | 'approved' | 'denied', required
    - `failure_reason` 'payment_failed' | 'null', nullable, required: `payment_failed` when approval declined the saved card and denied the entry.
    - `livemode` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `email` string, required
    - `form_submissions` FormSubmission[], required: The buyer's answers to the price variant's form at checkout.
      - `id` string, required
      - `object` string, required
      - `answers` object[], required
        - `field_type` string, required
        - `label` string, required
        - `required` boolean, required
        - `value` union, required: A `consent` answer is `true` when the person ticked it.
          - string
          - string[]
          - boolean
        - `options` string[]
      - `respondent_type` string, required
      - `confirmation_requested_at` string, date-time, nullable, required
      - `confirmed_at` string, date-time, nullable, required
      - `delivered_at` string, date-time, nullable, required
      - `created_at` string, date-time, required
      - `respondent_id` string, required
      - `form_id` string, required
    - `decided_at` string, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-12-05** `ccbd8fcbd6d7`: 3 info
  - added the required property `oneOf[#/components/schemas/Order]/line_items/items/price_variant/oneOf[#/components/schemas/PriceVariant]/cross_sells` to the response with the `201` status
  - added the required property `oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/price_variants/items/cross_sells` to the response with the `201` status
  - added the required property `oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/tax_code` to the response with the `201` status
- **2026-12-02** `63aa87cb8751`: 1 info
  - added the required property `oneOf[#/components/schemas/Order]/application_fee_amount` to the response with the `201` status
- **2026-11-15** `56c22ab9b282`: 7 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - …3 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/checkouts/:id/test_purchase/post.md)

---

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