Initiate Ticket Purchase
URL: POST https://backend.crossli.co/api/ticketing/initiate-ticket-purchase
Headers:
x-api-key: 'YOUR_API_KEY'
x-api-secret: 'YOUR_API_SECRET'Request Body:
{
"eventId": "YOUR_EVENT_ID",
"ticketId": "YOUR_TICKET_ID",
"buyerDetails": [
{
"name": "BUYER_NAME",
"address": "BUYER_ADDRESS",
"phone": "BUYER_PHONE",
"walletAddress": "BUYER_WALLET_ADDRESS"
}
],
"paymentTimeStamp": "PAYMENT_TIMESTAMP",
"blockchain": "BLOCKCHAIN_TYPE"
}Note: USDC on Test Networks: "MATIC-AMOY" and "ETH-SEPOLIA"
MATIC-AMOY Contract Address : 0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582
ETH-SEPOLIA Contract Address: 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
Sample Response:
Complete the Payment:
Manual Payment: Send the specified `amount` to the `wallet` address.
MetaMask Payment: Follow the `paymentUrl` to complete the transaction using MetaMask.
All transactions can be found in the ticketing dashboard on the top right-hand corner.
Last updated