The payout.state-updated
event is triggered whenever there's a change in the state of a payout; its data
object aligns with the structure defined and obtained through the GET payouts/{id} endpoint.
{
"id": "wbh-xxx",
"type": "payout.state-updated",
"data": {
"id": "pyt-xxx",
"state": {
"code": "SENT"
},
...
// all other properties will be included
// for the actual webhook event, omitting
// here for brevity.
},
...
}