Start Lemonvite checkout
lemonvite_start_checkoutUse this when the host wants to buy account credits, for publishing, extra phone guests or design generations. It returns a secure Stripe checkout link for the host to open in a browser. Creating the link charges nothing; Stripe expires an unpaid link after 24 hours, and an abandoned checkout charges nothing. Do not call it before the host has seen and agreed to the amount. With event_id it buys a draft's reviewed publishing shortfall: pass publishing_price.credits_to_buy as quantity, and after payment confirm credit_available with lemonvite_get_invitation, then call lemonvite_publish_invitation. Omit event_id for published-event guest changes or credits in advance; after payment confirm the balance with lemonvite_get_account and retry only the unsaved guest changes with authorized_credits once the host confirms. A published invitation's payment_status stays paid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | No | Draft invitation whose publishing shortfall to buy. Omit for account credits, including published-event guest changes. | |
| quantity | No | Credits to buy. With event_id, pass the publishing_price.credits_to_buy amount reviewed with the host; the server rejects a changed shortfall. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| event_id | Yes | ||
| quantity | Yes | ||
| amount_cents | Yes | ||
| checkout_url | Yes | ||
| payment_status | Yes |