Skip to main content

Generate Checkout Link

Here, we’ll see how to generate a link that leads to checkout with previously selected ticket listings.

The ticket listings must belong to the same event, the same show, and the same ticket option; additionally, if it is a category with a seating chart, the seats must be contiguous. Those with type PACK cannot be split; the packs must be sold as a whole.

In the request body, you must include an array of ticket listing IDs.

HTTP Method: POST

URL:

https://api.mentatech.io/v1/marketplace/checkout/url
--header 'Authorization: "YOUR_API_KEY"'
--data-raw '{
"listingIds": [ "66ec8bc4b23c85cd3cb3ccdc", "66edc93eb23c85cd3cb7bf33"]
}'
JSON Response
{
"status": 200,
"data": "https://checkout.mentatickets.com/es/buyingflow/start/intention/66f1d5349ae421e028467440?ticketSellerId=3",
"errors": [
null
]
}
Attention

Remember to replace "YOUR_API_KEY" with your Private API key.

Request Parameters (Query Params)

  • returnURL (optional): Specifies a return URL for the "Back" buttons. Example: https://your-platform.com/my-tickets.
  • loginTrust[withMethod] (optional): The method used to authenticate on your platform. Currently supported: email. Coming soon: phonenumber.
  • loginTrust[user] (optional): The user identifier on your platform. Currently supported: email. Example: you_user_email@email.com.