Webhook - buyTicketStatus
A successful creation of a ticket on the blockchain, this webhook is triggered to notify an external service or server.
Http method
POST
URL endpoint
https://api.ticbolt.com/v1/buyTickets
Request header
API token - The token can be easily copied from the partner dashboard for the project created.
Request body
Json object with the details of the event to be created.
Example structure :
{
"success": true,
"ticketTransactionHash": "0xabcdef12345...",
"contractAddress": "0xContractAddress...",
"nftId": [123, 124, ...],
"ticketType": ["VIP", "Regular", ...]
}Parameter description :
success (Boolean): Indicates the success of the ticket creation process. In the current code context, it's alwaystrueif the webhook gets triggered.ticketTransactionHash (String): On a successful request placed on to the blockchain, the server returns a transaction hash. The actual details, if ticket created successfully, will only be notified using the buyTicketStatus API.contractAddress (String): Contract address of the event created at the blockchain.nftId (Array of Integers): A list of integers representing the NFT IDs for the tickets created.ticketType (Array of Strings): A list of strings representing the types of the tickets created. Each string corresponds to annftIdin the same order.
Last updated