Set up webhooks to receive real-time notifications about order & payment-link events
200
status code to acknowledge receiptX-Webhook-Signature
headerid
for idempotency)client_secret
and the payload of the request, allowing you to validate that the webhook came from Phoenix.
The signature is sent in the X-Webhook-Signature
header.
The signature’s timestamp is sent in the X-Webhook-Timestamp
header.
The signature is calculated using the HMAC-SHA256 algorithm.
https://yourdomain.com/webhooks/phoenix-status-updates
)id
field for deduplication. Implement idempotency using this id
as Phoenix may retry events if your endpoint doesn’t return a 200
status code or if the request fails.
Current events:
payment_link_created
payment_link_status_updated
order_created
order_status_updated
Payment Link Created Example Event
Payment Link Updated Example Event
Order Created Example Event
Order Updated Example Event
View Example Response
/phoenix-order-status-updated
Event Type: order.status.change
Triggered: When an order’s status changes
fulfilled
- Order has been completed successfullyexpired
- Order expired before completionpending
- Order is awaiting processingView Payload Structure
200
status code. You can optionally include an external_partner_id
field to associate your own order ID with the Phoenix order:
external_partner_id
(string): Your internal order ID or reference that you want to associate with the Phoenix order. This helps you link Phoenix orders to your own system’s order tracking.Authorization: Bearer <webhook_secret>
View Authentication Code Example
Authorization
headerid
to handle duplicate events