Skip to content

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/hyparrow

The 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.

HeaderAlgorithm
X-Hyparrow-Signature-256HMAC-SHA256 of timestamp.body, accepted within a 5-minute window. Preferred.
X-Hyparrow-SignatureHMAC-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_review for staff, never dropped.
  • Body limit 256 KB.

Events handled ​

EventEffect
checkout.payment.pending, .completed, .failedMoves the payment intent; a completed payment is booked to the ledger.
customer.transaction.completedBank transfer into a customer's virtual account.
customer.account.migrated, .failedVirtual account changes.
transfer.settled, .failed, .reversedPayout outcome. A payout fails only on reversed.
wallet.funded, subscription.payment.completedStored for review.
wallet.balance.lowAlerts operations.
payroll.*, test.webhookIgnored.

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.

Plemuz API v2