Overview
Theorder.created webhook is triggered when a new order is created in your Metrifox account. Orders represent purchases of plans, add-ons, or single purchases by customers.
When It’s Triggered
This event is sent immediately after an order is successfully created, which can happen when:- A customer purchases a plan through checkout
- A subscription is created
- An add-on is purchased
- A single purchase item is bought
- An order is created through the API
Payload Structure
Data Fields
Thedata.order object contains the complete order record, including:
id: Internal order IDorder_number: Human-readable order numbercustomer_id: ID of the customer who placed the ordercustomer_key: Customer key for the ordertenant_id: The tenant ID this order belongs tostatus: Order status (e.g., “pending”, “completed”, “cancelled”)total_amount: Total order amountcurrency: Currency code (e.g., “USD”, “NGN”)items: Array of order items (plans, add-ons, single purchases)created_at: Timestamp when the order was createdupdated_at: Timestamp when the order was last updated- Additional order-specific fields
Example Use Cases
- Send order confirmation emails
- Sync orders to your order management system
- Trigger fulfillment workflows
- Update inventory systems
- Track sales analytics

