Create a payment link

POST/events/:eventId/tickets/:ticketId/payment-link

Create a Stripe payment link for a paid ticket. Send the user to the returned url; the registration is confirmed via webhook once payment completes.

AuthLogin required

Path parameters

eventIdstringrequired

Event ID or slug.

ticketIdstringrequired

Ticket type ID; required for events that have ticket types.

Response

FieldTypeDescription
urlstringStripe Checkout URL.
sessionIdstringStripe 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_..."
}