Saltar al contenido principal

Generate Resale Link with Return URL

This endpoint allows you to generate a unique link for an event or show, specifying a return URL. The return URL is used in the "Back" buttons on the resale page, allowing users to be redirected to the previous page on your platform.

Example Integration and Use Cases

This endpoint enables the generation of a resale link with a return URL, facilitating smooth navigation between the resale page and your platform. It's ideal for providing users with a seamless experience when returning to your site after visiting the secondary market.

HTTP Method: GET

URL:

curl --location --request GET https://api.mentatech.io/v1/marketplace/buyingflow/url/entrypoint?externalReferenceEventId=the-lion-king-broadway&returnTo=https://your-platform.com/event/298392
--header 'Authorization: "YOUR_API_KEY"
JSON Response
{
"status": 200,
"data": "https://event.mentatickets.com/es/6569313b5915f5ad7db970c6/apr4-2pm?ticketSellerId=3",
"errors": [
null
]
}
Attention

Remember to replace "YOUR_API_KEY" with your Private API key and adjust the return URL to the appropriate page on your platform.

Request Parameters (Query Params)

  • externalReferenceEventId (required): The ID of the event for which you want to generate the resale URL. Example: the-lion-king-broadway.
  • showId (optional): The ID of the specific show within the event, if applicable. Example: 1124.
  • returnTo (optional): The URL to which users will be redirected when they click the "Back" buttons on the resale page. Example: https://your-platform.com/event/298392.