Enterprise API: Orders, Bookings & Webhooks
Use Ordafy Enterprise API keys to create provider orders and bookings, receive signed webhooks, and run headless commerce alongside widgets.
Who this is for
Enterprise organisations with API access can create keys in Settings → Website integration → API Keys. Widgets and share links remain the fastest path for most sites; the API is for headless storefronts, ERP sync, and phone/walk-in automation. Plan context: Pricing.
Authentication
Send Authorization: Bearer ordafy_live_… or ordafy_test_… on every request. Use an Idempotency-Key header on POST creates for safe retries.
OpenAPI reference: apps/api/docs/public-v1.openapi.yaml (merchant namespace).
Provider orders
POST /api/public/v1/merchant/orders— line items withproductVariantId, customer email or id, pickup/deliveryGET /api/public/v1/merchant/orders— paginated listPATCH /api/public/v1/merchant/orders/{orderId}— status transitions (confirm, cancel, processing, delivered)
Customers receive the same confirmation email as dashboard-created orders when an email is provided.
Provider bookings
POST /api/public/v1/merchant/bookings—scheduledDate, optionalscheduledTime(validated against availability)PATCH /api/public/v1/merchant/bookings/{bookingId}— confirm, cancel, complete, or reschedule
Day-to-day staff still use Business Bookings (/services/bookings) and Calendar (/calendar) alongside API-created appointments.
Webhooks
Register endpoints under Website integration → Webhooks. Events include order.created, order.updated, booking.created, booking.updated, and payment.completed. Verify Ordafy-Signature (HMAC-SHA256) before you trust payloads.
Headless loop
- Create catalogue via
POST /merchant/productsor/merchant/services(or manage in Business UI). - Customers book via widget or hosted links—or you create orders/bookings entirely via API for phone and walk-in sales.
- Receive webhooks in your ERP or CRM.
- Staff fulfil from Business Orders / Bookings as usual.
Frequently asked questions
Do I need the API to embed a widget?
No. Widgets only need a share/embed snippet from Business—see share links & embed codes.
Live vs test keys?
Use test keys in staging. Switch to live keys only after payouts and catalogue are production-ready.
How do widgets and API work together?
Widgets collect customer-facing checkout; the API creates or syncs records for systems your customers never see.
Related reading
Widgets overview · embedding guide · Become a provider · Pricing.
Related guides
Website Integration: Links, Widgets & Embed Overview
Accept Ordafy bookings and orders from your own website with share links and embeddable widgets—business, services, and products—without rebuilding checkout.
Getting Share Links & Embed Codes from Ordafy
Find copy-link, QR code, and widget embed snippets in Ordafy Business (web) and the mobile app for services, products, and your whole storefront.
Embedding the Ordafy Widget on Your Website
Add Ordafy booking and ordering widgets to WordPress, Wix, Squarespace, Shopify, Webflow, and custom HTML—plus popup mode and troubleshooting.