Create prepaid checkout
POST
/events/:eventId/tickets/:ticketId/prepaid-checkoutCreate a Stripe Checkout session after storing the survey answers up front. Inventory is held for a limited time and released if payment is not completed.
| Auth | Login required |
|---|
Path parameters
eventIdstringrequiredEvent ID or slug.
ticketIdstringrequiredTicket type ID; required for events that have ticket types.
Request body
questionAnswersobject[]Array of survey answers; each element has questionId (required) and answer (a non-empty array of strings, each up to 1000 characters). All required questions must be answered.
profileAnswersobjectProfile fields collected at registration; keys correspond to the event's entryProfileFields setting.
invitationCodestringInvitation code; exactly 8 characters. Required for invitation-only tickets.
faceImageUrlstringFace photo URL; must be a valid URL. Required for events with requiresFacePhoto enabled.
Request
curl https://api.4s.link/events/EVENT_ID/tickets/TICKET_ID/prepaid-checkout \-X POST \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"questionAnswers": [{ "questionId": "q1a2b3c4-...", "answer": "情報収集のため" }]}'
Example response
{"url": "https://checkout.stripe.com/c/pay/cs_test_...","sessionId": "cs_test_..."}