Checkouts

Place a test purchase

Changed on

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.

post/checkouts/{id}/test_purchase

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
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

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

union required
Order required
OR
WaitlistEntry required

Changes

    • 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 status

    • info

      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 status

    • info

      added the required property oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/tax_code to the response with the status