Skip to main content
POST
Checkout tickets

Authorizations

X-Api-Key
string
header
required

Body

application/json
redirect_url
string
required

URL to redirect the user after the checkout.

Example:

"https://app.yourwebpage.com/checkout/internal-id/success"

error_url
string
required

URL to redirect the user if the checkout fails.

Example:

"https://app.yourwebpage.com/checkout/internal-id/error"

ticket_rate_id
string
required

Ticket rate id of a ticket.

Example:

"5f8d0f8b9d2b3b0017b6d8a0"

tickets
object[]
required
send_resources
boolean

If the resources (tickets in that case) should be sent via email (and Whatsapp if is enabled) by Fourvenues.

Example:

true

metadata
object

Metadata to be stored in the ticket. Max 1kb.

Example:
discount_code
string

Discount code of a ticket.

Example:

"DISCOUNT_CODE"

Response

OK

data
object