Webhook Setup
We use webhooks to notify your application when an event happens on an object. Most workflows on Fiat Republic are asynchronous and therefore it is extremely useful for you to use appropriate webhooks in your integration (e.g. when a Fiat Account is activated or receives a Payment).
Webhooks can be created and managed via the Developers section on the Dashboard. If you prefer to create them programmatically, you can do so via the Webhooks API.
📘 NOTE: Webhook events will be retried 10 times, with a new attempt occurring every 10 minutes. |
---|
Webhook Events
Object | Events |
---|---|
INDIVIDUAL END USER |
|
BUSINESS END USER |
|
FIAT ACCOUNT |
|
VIRTUAL ACCOUNT |
|
PAYMENT |
|
PAYEE |
|
RETURN |
|
UPDATED
events are available for individual params as well as at the object level. For example, a FIAT_ACCOUNT.UPDATED
event will be sent for any update on the Fiat Account object whereas a FIAT_ACCOUNT.BALANCE_UPDATED
event will only be sent when the balance of a Fiat Account is updated.
Webhook Event Structure
The body of all Webhook events have the following params:
Parameter | Description |
---|---|
id | Unique id of the event. |
event | Name of the event. |
data | Full body of the object on which the event was triggered. |
previousValues | Contains the previous values of the object params that were updated and resulted in the event being triggered. |
createdAt | Time of event creation. |
{
"id":"evt_9n5ev10g6ozjnn681y4azjdkl2",
"event":"FIAT_ACCOUNT.UPDATED",
"data":{
"id":"fac_ov8jkx67ny1dbglamy",
"owner":{
"type":"END_USER",
"id":"eus_emv4j231821oaz56yx"
},
"balance":{
"actual":"0.00",
"available":"0.00",
"reserved":"0.00"
},
"currency":"GBP",
"bankDetails":{
"bankAddress":null,
"bankName":"Modulr FS Ltd.",
"accountHolderName":"Satoshi Nakamoto`",
"country":"GB",
"iban":null,
"bic":null,
"accountNumber":"70835104",
"routingCode":{
"value":"000000",
"type":"SORT_CODE"
}
},
"label":"Sandbox GBP Account",
"status":"ACTIVE",
"tags":[
"CLIENT_MONEY"
],
"createdAt":1637649088135582000,
"updatedAt":1637649090013297000,
"metadata":null
},
"previousValues":{
"id":"fac_ov8jkx67ny1dbglamy",
"status":"CREATED"
},
"createdAt":1637649090084000
}
Updated 5 days ago