Payout Object Changes
The Payout object has been enhanced to include a newfailure object in the response. This provides more structured and cleaner failure information when a payout has failed, making it easier to programmatically identify and handle failure scenarios.
We will be deprecating the old failure codes that were populated in the status_description field soon. It is recommended to consume these new failure codes instead.
New Field Added
-
failureAn object that contains details about why a payout failed. This field isnullfor payouts that have not failed.Field Type Description codestring Error code indicating the reason for the payout failure descriptionstring Human-readable description of the failure reason
The
failure object is only populated when the payout status is failed. For all other statuses (e.g., succeeded, processing, reversed), this field will be null.Example Response (Failed Payout)
Example Response (Successful Payout)
Payout Webhook Changes
Thepayout.failed webhook event now includes the same failure object in its payload. When a payout fails, the webhook response will contain the failure object with code and description fields, providing structured failure details alongside the existing status_description.
