Order Completion Guide
Learn how to properly complete the Fanfare admission cycle after a successful order, including webhook handling and order status updates.Overview
After a consumer completes checkout, you need to notify Fanfare that the admission was used. This enables accurate analytics, prevents reuse, and triggers any configured webhooks. What you’ll learn:- Completing admissions after successful orders
- Handling order webhooks from your platform
- Syncing order status with Fanfare
- Implementing retry logic
Prerequisites
- Payment Processing guide completed
- Understanding of webhooks
- Backend server for processing
The Completion Flow

Step 1: Complete Admission API
Call the Fanfare API to mark an admission as completed:Step 2: Integration with Order Creation
Call completion after successful order:Step 3: Retry Logic for Failed Completions
Handle cases where completion fails:Step 4: Handle Platform Webhooks
If using Shopify, WooCommerce, or similar platforms, handle their order webhooks:Shopify Order Webhook
WooCommerce Order Webhook
Step 5: Order Status Tracking
Track order status for analytics and debugging:Step 6: Handle Order Cancellations/Refunds
When an order is cancelled or refunded:Best Practices
1. Complete Admission Asynchronously
Don’t block the order confirmation on Fanfare completion:2. Implement Idempotency
Ensure completion can be called multiple times safely:3. Monitor Sync Status
Create alerts for failed syncs:4. Include Order Metadata
Pass relevant data to Fanfare for analytics:Troubleshooting
Admission Already Completed
Consumer ID Mismatch
Ensure the consumer ID matches what was used during admission:- Store consumer ID with the admission token
- Validate before checkout
- Don’t allow different consumers to use the same admission
What’s Next
- Webhooks Guide - Receive Fanfare webhooks
- Shopify Integration - Shopify-specific patterns
- Error Handling - Comprehensive error management