Notification Webhook
You can implement a service to receive and process notifications related to the Payout final status from the Bamboo Payment systems.
The Payout API only sends notifications for the following statuses (Held, Paid, Declined, and Rejected). For payout states, check our status article.
STATUS | Code | DESCRIPTION |
---|---|---|
Held | 7 | The payout is under review from our Compliance Team |
Paid | 1 | The payout has been paid. This is a final status indicating the successful completion of the payment. |
Declined | 8 | The payout was declined due to structural validation or Compliance rules. |
Rejected | 4 | The payout was rejected. Possible reasons for rejection include bank account issues, monthly limits exceeded, etc. |
The merchant must publish an HTTP/REST service to send the notifications generated.
WebHook Service specifications
The WebHook service is a REST Service that must process a request with the following characteristics:
URL: | <Determined by the merchant> |
API Type: | Public |
Method: | POST |
Response: | HTTP Code |
Notification parameters
Parameter | Format | Description |
---|---|---|
payoutId | integer | Internal identification of the Payout. |
reference | string | Unique identifier of the Payout you defined when you requested the Payout. |
isoCountry | string | ISO code of the country in the format ISO 3166-2 . |
created | date | Date and time when the Payout was requested. |
lastUpdate | date | Date and time of the last update of the Payout. |
status | integer | Internal code of the current status of the Payout. |
statusDescription | string | Final status of the Payout. Refer to this article to learn more about Payout status. |
errorCode | string | Internal code of the error for the declined Payout. Find the possible errors here. |
errorDescription | string | Error description for declined Payouts. |
amount | object | Value and currency requested in the Payout. |
localAmount | object | Value and currency requested in the Payout in local currency. |
exchangeRate | numeric | Conversion value used in the Payout. |
payee | object | Information of the recipient or beneficiary of the Payout. |
Notification example
{
"payoutId": 18009,
"reference": "PAB-3268",
"isoCountry": "BR",
"created": "2023-08-30T12:02:39.1987743+00:00",
"lastUpdate": "2023-08-30T12:06:26.9119828+00:00",
"status": 1,
"statusDescription": "Paid",
"errorCode": null,
"errorDescription": null,
"amount": {
"value": 10,
"isoCurrency": "USD"
},
"localAmount": {
"value": 47.31,
"isoCurrency": "BRL"
},
"exchangeRate": 4.851803,
"payee": {
"firstName": "Tiago",
"lastName": "Costa",
"email": "tcosta@mail.com",
"phone": "92799322",
"address": "55489-272, Travessa Eduardo, 90 Esteves do Norte - CE",
"document": {
"number": "54562271779",
"type": "CPF"
}
}
}
Status: Held
{
"payoutId": 123065303847429696,
"reference": "ARI-390",
"isoCountry": "CO",
"created": "2024-12-05T14:17:34.8923361Z",
"lastUpdate": "2024-12-05T14:17:35.8297711Z",
"status": 7,
"statusDescription": "Held",
"errorCode": null,
"errorDescription": null,
"amount": {
"value": 5000,
"isoCurrency": "USD"
},
"localAmount": null,
"exchangeRate": null,
"payee": {
"firstName": "Juan",
"lastName": "Perez",
"email": "",
"phone": "099999999",
"address": "address",
"document": {
"number": "2606876221",
"type": "CC"
}
},
"description": null
}
Info
In payout notifications for company, you will receive the field companyName
instead of firstName
and lastName
.