Crowdfunding

Create a contribution checkout link

Write — starts a purchase; treat as sensitive and confirm the product and amount with the person first. Creates a secure Stripe-hosted checkout page for a contribution toward testing one product and returns its URL. This call charges nothing and takes no card details: the person must open checkout_url and pay. Success and cancel pages are fixed to laboratory.love. Side effects: creates a Stripe Checkout session (expires after about 24 hours if unused). Use an Idempotency-Key when retrying.

post/crowdfund/{id}/checkout

Request

  • Base URL: https://www.laboratory.love/api/v1
  • URL: https://www.laboratory.love/api/v1/crowdfund/{id}/checkout
  • Auth: none required

Path parameters

idstring required

Crowdfunding product id.

Headers

Idempotency-Keystring

Optional. Retrying with the same key and the same body returns the original checkout instead of creating another one. Reusing a key with a different body returns 409.

Request body

amountinteger required

Whole US dollars, within the product’s contribution range.

Response

Checkout created; awaiting the person’s payment.

checkout_idstring required

Checkout id for GET /checkouts/{checkout_id}.

checkout_urlstring uri required

Secure Stripe-hosted payment page for the person to open.

status'awaiting_user_payment' required

Always awaiting_user_payment on creation.

requires_user_completionboolean required

Always true: nothing is charged until the person pays on checkout_url.

amountnumber required

USD.

currency'USD' required

Currency.

expires_atstring date-time nullable required

When checkout_url stops working.

next_stepstring required

What to do next.

Changes

No recorded changes to this operation across all 1 revision of this API.