Webhooks and events
What exists today
Section titled “What exists today”| Direction | What | Who it is for |
|---|---|---|
| Inbound | Payment provider webhooks at /hooks/payment/<provider>, signature-verified (HMAC-SHA256 for the sandbox provider) |
Payment providers only |
| Outbound | Apple push notifications to the Sedra app (APNs) | Signed-in Sedra app users |
Push notifications sent to the Sedra app
Section titled “Push notifications sent to the Sedra app”These are the only notifications the platform sends. Each carries a data.type the app uses to open the right screen.
| Internal event | Who is notified | data |
|---|---|---|
order.placed |
Business members (not vendors); marketplace vendors get their own share | { type: "order", order_id, tenant_id } |
foulad.approval.created |
Members who can approve, for that business or vendor | { type: "approval", approval_id, tenant_id } |
foulad.application.created |
Platform administrators | { type: "application", application_id } |
foulad.application.decided |
The applicant | { type: "application", application_id } |
These events run on Medusa’s internal event bus. They are not a public subscription API.
Planned
Section titled “Planned”Signed outbound webhooks for integrations (order placed, fulfilment created, refund completed, stock low), with per-business endpoints, retries and a delivery log. The event names above may change before that ships. This page will document the contract when it is live; check the changelog.