Follow a complete sandbox flow for partner registration, API key creation, booking protection, webhook inspection, policy evaluation, and evidence packet export.
curl -X POST https://api.cancelhansel.com/v1/partners/register -H "Content-Type: application/json" -d '{
"name": "Acme Booking",
"businessType": "Venue Operator",
"contactEmail": "[email protected]",
"website": "https://example.com"
}'
This creates a partner account and enables access to API key creation and booking management APIs.
curl -X POST https://api.cancelhansel.com/v1/api-keys -H "Content-Type: application/json" -H "x-api-key: YOUR_API_KEY" -d '{
"name": "server-integration-key",
"scopes": ["bookings:write","webhooks:read"]
}'
curl -X POST https://api.cancelhansel.com/v1/bookings -H "Content-Type: application/json" -H "x-api-key: YOUR_API_KEY" -d '{
"partnerId": "partner_abc123",
"talent": {"id":"talent_1","name":"Live Band"},
"organizer": {"id":"org_9","name":"Event Team"},
"eventType": "concert",
"eventDate": "2026-05-15T19:00:00Z",
"bookingValue": 4500.00,
"currency": "USD"
}'
curl -X POST https://api.cancelhansel.com/v1/bookings/booking_789/protect -H "x-api-key: YOUR_API_KEY"
Protecting a booking captures evidence and triggers lifecycle evaluation for dispute support.
curl -X GET https://api.cancelhansel.com/v1/bookings/booking_789/webhook-events -H "x-api-key: YOUR_API_KEY"
Use webhook event retrieval to confirm lifecycle delivery status and webhook signatures.
curl -X GET https://api.cancelhansel.com/v1/bookings/booking_789/policy-evaluation -H "x-api-key: YOUR_API_KEY"
Review policy evaluation results to understand cancellation or dispute outcomes for the protected booking.
Export a protected booking evidence packet as JSON or PDF to support partner operations and dispute review.
curl -X POST https://api.cancelhansel.com/v1/bookings/booking_789/evidence -H "x-api-key: YOUR_API_KEY" -d '{"format":"json"}'