Create prepaid checkout

POST/events/:eventId/tickets/:ticketId/prepaid-checkout

Create 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.

AuthLogin required

Path parameters

eventIdstringrequired

Event ID or slug.

ticketIdstringrequired

Ticket 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.

profileAnswersobject

Profile fields collected at registration; keys correspond to the event's entryProfileFields setting.

invitationCodestring

Invitation code; exactly 8 characters. Required for invitation-only tickets.

faceImageUrlstring

Face 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_..."
}