Saltar al contenido principal

Buyer data

Integration Examples

To create tickets with the information of the person who bought the ticket in the primary sale, you should use the following endpoint:

Below is an example of how to notify Menta of the issuance of a ticket with the buyer's information in the primary sale, using fictitious data and cURL.
    curl -X POST 'https://api.mentatickets.com/v1/tickets'
-H 'Authorization: YOUR_API_KEY'
-H 'Content-Type: application/json'
--data-raw '[
{
"ticketOptionId": "0001",
"showId": "4726",
"externalReferenceEventId": "the-lion-king-broadway",
"buyer": "buyer@emaildomain.com",
"ticketId": "111",
"ticketAccess": {
"type": "OTHER",
"locator": "D02KWWKS029F"
},
"primarySaleBuyerData": {
"firstName": "Juan",
"lastName": "Pérez",
"identificationType": "DNI",
"identificationNumber": "12345678",
"phoneNumber": "+5491123456789"
}
}
]'
JSON Response
{
"status": 200,
"data": [{TICKETDATA}],
"errors": null
}

For more detailed information about tickets and buyer information, please refer to the section on ticket data