Appearance
Webhooks
Plemuz receives webhooks; it does not send them. There are no outbound webhooks to subscribe to: apps and integrations get live updates over Realtime and notifications.
This page is for the team operating the payment integration. The only payment provider sending webhooks is Hyparrow (cards, bank transfer, USSD and other local methods, plus payouts).
Endpoint
text
POST https://api.plemuz.com/v1/webhooks/payments/hyparrowThe same URL is used as the invoices' checkout callback. Configure it in the Hyparrow dashboard for each environment (sandbox and live).
Verification
The signature covers the exact bytes sent, so the body is read raw before any JSON parsing.
| Header | Algorithm |
|---|---|
X-Hyparrow-Signature-256 | HMAC-SHA256 of timestamp.body, accepted within a 5-minute window. Preferred. |
X-Hyparrow-Signature | HMAC-SHA512 of the body. Fallback. |
A missing or wrong signature answers 401 PAYMENT_WEBHOOK_INVALID and nothing is stored. Unsigned deliveries are accepted only for checkout.payment.*, and even then the invoice is always read back from Hyparrow before anything is settled.
Delivery
- Deduplicated on
X-Webhook-ID. Redeliveries are safe. - Acknowledged fast: once the event is stored the answer is
200 { "received": true }, so Hyparrow stops retrying. Processing happens on a queue. - Unknown events are stored as
needs_reviewfor staff, never dropped. - Body limit 256 KB.
Events handled
| Event | Effect |
|---|---|
checkout.payment.pending, .completed, .failed | Moves the payment intent; a completed payment is booked to the ledger. |
customer.transaction.completed | Bank transfer into a customer's virtual account. |
customer.account.migrated, .failed | Virtual account changes. |
transfer.settled, .failed, .reversed | Payout outcome. A payout fails only on reversed. |
wallet.funded, subscription.payment.completed | Stored for review. |
wallet.balance.low | Alerts operations. |
payroll.*, test.webhook | Ignored. |
Staff can list and review stored webhook events in the wallet staff routes. App-store subscription notifications (Apple and Google) arrive on their own endpoints, documented in Subscriptions.