curl -X POST https://api.gatepass.io/api/orders/initialize \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eventId": "clx1234567890",
"tierId": "clx0987654321",
"quantity": 2,
"paymentMethod": "FIAT",
"gateway": "flutterwave",
"customerEmail": "customer@example.com",
"customerName": "John Doe"
}'
{
"ok": true,
"orderId": "clx1234567890abcdef",
"reference": "GP-clx1234567890-1234567890-a1b2c3d4",
"checkoutUrl": "https://checkout.flutterwave.com/v3/hosted/pay/abc123"
}
Initialize a new ticket order for an event
curl -X POST https://api.gatepass.io/api/orders/initialize \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eventId": "clx1234567890",
"tierId": "clx0987654321",
"quantity": 2,
"paymentMethod": "FIAT",
"gateway": "flutterwave",
"customerEmail": "customer@example.com",
"customerName": "John Doe"
}'
{
"ok": true,
"orderId": "clx1234567890abcdef",
"reference": "GP-clx1234567890-1234567890-a1b2c3d4",
"checkoutUrl": "https://checkout.flutterwave.com/v3/hosted/pay/abc123"
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GoodnessFx/GatePass/llms.txt
Use this file to discover all available pages before exploring further.
CRYPTO or FIATpaystack, flutterwave, or mpesacurl -X POST https://api.gatepass.io/api/orders/initialize \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eventId": "clx1234567890",
"tierId": "clx0987654321",
"quantity": 2,
"paymentMethod": "FIAT",
"gateway": "flutterwave",
"customerEmail": "customer@example.com",
"customerName": "John Doe"
}'
{
"ok": true,
"orderId": "clx1234567890abcdef",
"reference": "GP-clx1234567890-1234567890-a1b2c3d4",
"checkoutUrl": "https://checkout.flutterwave.com/v3/hosted/pay/abc123"
}
totalAmount = (ticketPrice × quantity) × 1.025
checkoutUrl returned in the response. The user will be redirected back to your application after payment.