Payouts Webhook
A request is to be sent from Munify to the customers’ webhook_url endpoint, which the customer sets in the dashboard. The webhook will be sent upon any update on the payout status. The customer is expected to implement the endpoint.
- The webhook will be sent and expects a
200
response status code to be considered as received, otherwise, it will retry sending 2 times with a retry backoff of 1 second. - If 3 sending trails yelled unsuccessful delivery, no more trails will be carried out, and it will be the customer’s responsibility to fetch the new status using the 2. List Payouts endpoint.
- The webhook is sent with a
webhook_secret
header, to verify the sender.
Method
POST
URL
This is to be configured by the customer in the dashboard Webhook settings section.
Headers
Key | Value |
---|---|
WEBHOOK_SECRET | Customer’s webhook secret available in the webhook settings section in the dashboard. |
Request Fields
Field | Type | Description |
---|---|---|
webhook_event_id | UUID | Webhook’s event Identifier. |
webhook_event_timestamp | Datetime (Iso Format) | Webhook’s event Timestamp. |
payout_id | UUID | Munify’s Payout Identifier. |
payout_customer_reference | String | Customer’s Payout Reference (Sent on initiating the payout). |
payout_amount | Decimal | Payout Actual Amount. |
payout_currency | Enum (Currency ) | Payout Currency Code. |
payout_receiver_identifier | String | Payout Receiver Identifier. (Wallet Phone Number, Bank Account Number, Card Number) |
payout_receiver_name | String | Payout Receiver Name. |
payout_type | Enum (Payout Types ) | Payout Type Enum Value. |
payout_bank_code | Enum (Bank Codes ) | Payout Receiver Bank Code. |
payout_status | Enum (Payout Status ) | Payout Status Enum Value. |
payout_failure_reason | String | The reason behind failure if any. |