Learn how to create a checkout process for your channel.
ticket_rates
array, you will find the name, prices, current price and availability of this prices.
ticket_rate
object, you will find the prices
array, which contains the different prices available for the ticket rate. You can just focus on the current_price
object, which contains the current price available for the ticket rate.
Also, the ticket_rate
may contain other information like supplements
, warranty
, availability
, available
, min
, max
, questions
and fields
.
fields
are the fieds that the user can or must fill before buying the ticket rate. It can be a text field or a select field.min
and max
are the minimum and maximum number of tickets that can be bought in a unic checkout session.questions
are the questions that the user can or must answer before buying the ticket depending if the question
is required or not.warranty
is the warranty information for the ticket rate. It can be bought or not depending on the enabled
field. Also, it contains the percentage
and hours
that the warranty is available.available
shows if the ticket rate is available or not.availability.available
shows the number of tickets available.availability.sold
shows the number of tickets sold.supplements
are additional items that can be bought with the ticket rate. It can only be bought one item of each supplement.redirect_url
: The URL where the user will be redirected after the payment confirmation.error_url
: The URL where the Fourvenues API will send the payment confirmation.metadata
: Free format object value object that you can use to store any information you want. Max 1kb.ticket_rate_id
: The ticket rate id that the user wants to buy.discount_code
: (Optional) The discount code that the user wants to use.tickets
: An array of objects with the ticket information.tickets[].email ... tickets[].full_name
: The ticket information that is required as shown in the fields
array of the ticket rate object.tickets[].qr_code
: (Optional) The QR code that will be used to validate the ticket. If not provided, Fourvenues will generate one.tickets[].price_id
: (Optional) The price id of the current_price you have shown to the user. If not provided, Fourvenues will use the current_price of the ticket rate. If provided, it will return a flag in the response to show if the price with what the checkout session has been generated is the same as the one you have shown to the user. Flag name: conditions_changed
.tickets[].supplements
: (Optional) An array of objects with the supplement information.tickets[].supplements[].supplement_id
: The supplement id.tickets[].warranty
: (Optional if the ticket rate has warranty) A boolean value that shows if the user wants to buy the warranty or not.payment_url
to complete the payment.