Waitlist Entries

Approve a waitlist entry

Changed on

Approves a pending entry: charges the card the buyer saved when joining (or starts their subscription or payment plan), creates the order, grants access and emails the receipt. If the card is declined the entry is denied with failure_reason: payment_failed, the buyer is emailed, and the response is a 402 payment_failed error.

post/waitlist_entries/{id}/approve

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.

Response

The approved waitlist entry

WaitlistEntry required
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.

decided_at, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision