Settlement Completed
Triggered when UnoPago pays out what it collected to the account's bank account. paymentIds lists the payments it covers that UnoPago recorded, so it can be shorter than paymentCount. A payout to one of your vendors sends the same event with vendor: the three settlement events are how you learn what became of a vendor's payout, and UnoPago sends the vendor nothing. A vendor's events go to your account's own endpoints, never to the connected-accounts ones, also when its parts came from your connected accounts' orders: subscribe an endpoint of your own to the three. If you split orders, read vendor before counting a payout as yours: netAmount of a vendor's payout was deposited to the vendor.
application/json- body
id*stringeventType*stringaccount?stringThe connected account the event happened in, on events a platform receives on its Cuentas conectadas endpoints. Absent on your own account's events.
createdAt*stringdata*Webhook received successfully
{ "id": "string", "eventType": "string", "createdAt": "string", "data": { "settlement": { "id": "string", "status": "COMPLETED", "currency": "VES", "totalAmount": "string", "totalFees": "string", "totalSplits": "string", "netAmount": "string", "vendor": { "id": "string", "externalId": "string" }, "paymentCount": -9007199254740991, "paymentIds": [ "string" ], "processingBank": "string", "bankReference": "string", "bankAccount": { "bankCode": "string", "accountNumberLast4": "string" }, "processedAt": "string" } }}Settlement Canceled Webhook
Triggered when UnoPago cancels a payout that was never sent — the bank refused it, or UnoPago held it to review its payments — instead of sending it again: it will never be paid. `paymentIds` are its payments: they are paid in a later payout, with a new `id`, once UnoPago clears them.
Settlement Failed Webhook
Triggered when a payout could not be completed: the bank refused it, or UnoPago could not confirm it (the check before sending it failed, or a review found it was not paid). A payout that fails twice sends it twice, with a different event `id`. The money stays owed to the account and UnoPago reviews it: it either sends this payout again (`settlement_completed` with the same `id`, or another `settlement_failed`) or releases it: then `settlement_canceled` arrives and its payments are paid in a later payout with a new `id`. A vendor's payout (`vendor` is set) fails the same ways. When it was the bank that refused it, usually a wrong account, you can release it yourself: update the vendor's bank account and have an owner confirm it; `settlement_canceled` arrives and the next run pays it to the new account. The event does not say which of the two it was: if no `settlement_canceled` follows the confirmation, UnoPago is reviewing the payout.

