Create a payment link
POST
/events/:eventId/tickets/:ticketId/payment-linkCreate a Stripe payment link for a paid ticket. Send the user to the returned url; the registration is confirmed via webhook once payment completes.
| Auth | Login required |
|---|
Path parameters
eventIdstringrequiredEvent ID or slug.
ticketIdstringrequiredTicket type ID; required for events that have ticket types.
Response
| Field | Type | Description |
|---|---|---|
url | string | Stripe Checkout URL. |
sessionId | string | Stripe Checkout session ID. |
Request
curl https://api.4s.link/events/EVENT_ID/tickets/TICKET_ID/payment-link \-X POST \-H "Authorization: Bearer 4s_at_..."
Example response
{"url": "https://checkout.stripe.com/c/pay/cs_test_...","sessionId": "cs_test_..."}