Initiate Ticket Purchase

URL: POST https://backend.buildex.com/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:

{
  "status": "success",
  "wallet": "0x541523e475b379b1a211dfe6298611ab4fe88254",
  "transactionId": "5efd46ac-21b4-484e-bbc4-e00c10a11eb1",
  "amount": 10.3,
  "paymentUrl": "https://buildex.com/ticketing/payment/5efd46ac-21b4-484e-bbc4-e00c10a11eb1"
}

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