List of webhooks sent to your server
Ping
A ping request made from the "Test" button on the Striga dashboard. The request body is what you put in. This must be JSON formatted and is sent to /ping
appended to your Webhook URL configured on the Striga dashboard.
Transaction Status Updates
Transaction status update webhooks are sent to the path /tx
appended to your Webhook URL configured on the Striga dashboard. You will receive notifications for all transactions that occur on the platform conducted by your customer. The type
field of the notification can be used to filter between Intra, Inter and Card Transactions.
Card Authorization Webhooks
For example, the notification below is sent when there is a debit account transaction that corresponds to a successful card authorization.
{
"type": "CARD_AUTHORIZATION",
"id": "cdf365f0-284f-4fb9-9613-eb1d0fb6579c",
"status": "CARD_AUTHORIZATION_PENDING_SETTLEMENT",
"order": {
"price": "1",
"type": "none",
"ticker": "EUR/EUR",
"debit": {
"currency": "EUR",
"amountFloat": "10",
"amount": "1000"
},
"credit": {
"currency": "EUR",
"amountFloat": "10",
"amount": "1000"
}
},
"datetime": "2023-03-27T06:18:33.912Z",
"balanceBefore": "9000",
"balanceAfter": "8000",
"syncedOwnerId": "4e724dc1-0245-4d24-b8da-de0a6417731d"
}
For example, the notification below is for a successful card authorization.
{
"type": "CARD_AUTHORIZATION_PENDING_SETTLEMENT",
"cardId": "9252bcd2-61fa-4f32-9642-d6ae6bde8ac6",
"relatedCardTransactionId": "e06b8753-1800-40b4-8baa-98e1a2e96087",
"originalAmount": -10,
"originalCurrency": "EUR",
"transactionAmount": -10,
"transactionCurrency": "EUR",
"merchantId": "Striga Simulator",
"merchantName": "Striga Simulator",
"merchantCity": "Tallinn",
"merchantCountryCode": "EST",
"merchantCategoryCode": "5812",
"accountTransactionId": "cdf365f0-284f-4fb9-9613-eb1d0fb6579c",
"order": {
"price": "1",
"type": "none",
"ticker": "EUR/EUR",
"debit": {
"currency": "EUR",
"amountFloat": "10",
"amount": "1000"
},
"credit": {
"currency": "EUR",
"amountFloat": "10",
"amount": "1000"
}
},
"linkedAccountId": "d7549a87e68232b374a4bf70185fb482",
"linkedAccountCurrency": "EUR",
"parentWalletId": "611bf77a-0804-4d15-9e12-a9e9270479ba",
"createdAt": "2023-03-27T06:18:34.107Z",
"syncedOwnerId": "4e724dc1-0245-4d24-b8da-de0a6417731d"
}
Inter/Intra Ledger Webhooks
For example, the notification below is for a successful inter/intra transaction between two accounts on your own application
{
"type": "INTRA_LEDGER_SEND",
"id": "50c6ce42-1ca8-43f6-a59c-40183820910b",
"status": "CONFIRMED",
"order": {
"id": "7db51811-c82d-43de-a351-ab83124810dd",
"price": 23225.7865,
"type": "buy",
"ticker": "BTCEUR",
"debit": {
"currency": "EUR",
"amountFloat": 1,
"amount": 100
},
"credit": {
"currency": "BTC",
"amountFloat": 0.00004305,
"amount": 4305
}
},
"datetime": "2022-07-22T13:11:19.434Z",
"balanceBefore": 9798,
"balanceAfter": 9698,
"sourceSyncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"destinationSyncedOwnerId": "1a12619a-845f-4e13-b209-d5837e8a34bf"
}
Blockchain Transaction Webhooks
For example, the notification below is sent for a pending blockchain transaction to an enriched crypto account
{
"type": "ON_CHAIN_DEPOSIT_PENDING",
"id": "7ccb4b32-0393-4aa1-94c9-b52532b35f1f",
"syncedOwnerId": "19085577-4f74-40ad-a86c-0ad28d664170",
"credit": "0",
"debit": 0,
"timestamp": "2022-11-13T17:32:04.150Z",
"txType": "ON_CHAIN_DEPOSIT_PENDING",
"balanceBefore": {
"amount": "0",
"currency": "cents"
},
"balanceAfter": {
"amount": "0",
"currency": "cents"
},
"blockchainSourceAddress": "0xaa25Aa7a19f9c426E07dee59b12f944f4d9f1DD3",
"txHash": "0x23e8ca259f2b157b1909c321bbd4b44fa57ff350fdcd15e92794af91da420330",
"blockchainDepositAddress": "0x59d42C04022E926DAF16d139aFCBCa0da33E2323",
"blockchainConfirmations": 1,
"blockchainTransactionAmount": "1000"
}
For example, the notification below is sent for a confirmed blockchain transaction to an enriched crypto account
{
"type": "ON_CHAIN_DEPOSIT_CONFIRMED",
"id": "7ccb4b32-0393-4aa1-94c9-b52532b35f1f",
"syncedOwnerId": "19085577-4f74-40ad-a86c-0ad28d664170",
"credit": "1000",
"debit": 0,
"timestamp": "2022-11-13T17:32:04.554Z",
"txType": "ON_CHAIN_DEPOSIT_CONFIRMED",
"balanceBefore": {
"amount": "0",
"currency": "cents"
},
"balanceAfter": {
"amount": "1000",
"currency": "cents"
},
"blockchainSourceAddress": "0xaa25Aa7a19f9c426E07dee59b12f944f4d9f1DD3",
"txHash": "0x23e8ca259f2b157b1909c321bbd4b44fa57ff350fdcd15e92794af91da420330",
"blockchainDepositAddress": "0x59d42C04022E926DAF16d139aFCBCa0da33E2323",
"blockchainConfirmations": 1,
"blockchainTransactionAmount": "1000"
}
SEPA Transaction Webhooks
For example, the notification below is sent for a successful SEPA deposit to an enriched account
{
"type": "SEPA_PAYIN_COMPLETED",
"id": "963a64fb-20c8-4f88-9a09-64a1f5f87ee6",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 100000,
"debit": 0,
"timestamp": "2022-08-29T10:08:53.209Z",
"txType": "SEPA_PAYIN_COMPLETED",
"nonFpFeeBaseCurrency": 0,
"feeEur": 0,
"exchangeRate": 1,
"balanceBefore": {
"amount": 100000,
"currency": "cents"
},
"balanceAfter": {
"amount": 200000,
"currency": "cents"
},
"bankingTransactionId": "963a64fb-20c8-4f88-9a09-64a1f5f87ee6",
"bankingTransactionShortId": "20220829-QDA5NN",
"bankingSenderBic": "BUKBGB22",
"bankingSenderIban": "GB29NWBK60161331926819",
"bankingSenderName": "Boris Johnson",
"bankingPaymentType": "SEPA",
"bankingSenderInformation": null,
"bankingSenderRoutingCodes": [],
"bankingSenderAccountNumber": null,
"bankingTransactionDateTime": "2022-08-29T10:08:52.708529",
"bankingTransactionReference": "Simulate Payin"
}
For example, the notification below is sent when a SEPA payout is initiated from an enriched account
{
"type": "SEPA_PAYOUT_INITIATED",
"id": "60c12078-456f-460a-8cbe-8657edd9b3e2",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 0,
"debit": 100,
"timestamp": "2022-08-29T10:09:12.207Z",
"txType": "SEPA_PAYOUT_INITIATED",
"nonFpFeeBaseCurrency": 0,
"feeEur": 0,
"exchangeRate": 1,
"balanceBefore": {
"amount": 200000,
"currency": "cents"
},
"balanceAfter": {
"amount": 199900,
"currency": "cents"
},
"bankingTransactionShortId": "20220829-C9WRON",
"bankingSenderBic": "SEOUGB21",
"bankingSenderIban": "GB23SEOU19870010045677",
"bankingSenderName": "Herta Frances Bruen",
"bankingPaymentType": "SEPA",
"bankingTransactionReference": "whiteboard vortals compelling-FYelJ8mbUa",
"bankingBeneficiaryBic": "EVIULT2VXXX",
"bankingBeneficiaryIban": "LT483500010015291122"
}
For example, the notification below is sent when a SEPA payout is completed
{
"type": "SEPA_PAYOUT_COMPLETED",
"id": "60c12078-456f-460a-8cbe-8657edd9b3e2",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 0,
"debit": 0,
"timestamp": "2022-08-29T10:09:25.907Z",
"txType": "SEPA_PAYOUT_COMPLETED",
"nonFpFeeBaseCurrency": 0,
"feeEur": 0,
"exchangeRate": 1,
"balanceBefore": {
"amount": 199900,
"currency": "cents"
},
"balanceAfter": {
"amount": 199900,
"currency": "cents"
},
"bankingTransactionShortId": "20220829-C9WRON",
"bankingPaymentType": "SEPA",
"bankingTransactionDateTime": "2022-08-29T10:09:25.421Z",
"bankingTransactionReference": "whiteboard vortals compelling-FYelJ8mbUa"
}
For example, the notification below is sent when a SEPA payout fails
{
"type": "SEPA_PAYOUT_FAILED",
"id": "84a85311-137e-4263-8f69-fa20e72f3b71",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 100,
"debit": 0,
"timestamp": "2022-08-05T09:07:16.780Z",
"txType": "SEPA_PAYOUT_FAILED",
"feeEur": 0,
"exchangeRate": 1,
"balanceBefore": {
"amount": 99602,
"currency": "cents"
},
"balanceAfter": {
"amount": 99702,
"currency": "cents"
},
"bankingTransactionShortId": "20220805-CPNJNF",
"bankingPaymentType": "SEPA",
"bankingTransactionDateTime": "2022-08-05T09:07:16.318Z",
"bankingTransactionReference": "reinvent systems frictionlessfx1U4DdxMs"
}
{
"type": "SEPA_PAYOUT_DENIED",
"id": "345c58d7-4f83-4fe1-afd2-24960a5b1e8e",
"accountId": "751c8914b0ff59a0642284ece25ad798",
"syncedOwnerId": "4a3ad895-8347-4b45-b0ee-4d24b5f76f35",
"sourceSyncedOwnerId": "4a3ad895-8347-4b45-b0ee-4d24b5f76f35",
"credit": "22",
"timestamp": "2023-01-03T12:05:20.112Z",
"txType": "SEPA_PAYOUT_DENIED",
"memo": "SEPA_PAYOUT_INITIATED_LFhEtNYpKI",
"exchangeRate": "1",
"balanceBefore": {
"amount": "10074526",
"currency": "cents"
},
"balanceAfter": {
"amount": "10074548",
"currency": "cents"
},
"bankingTransactionShortId": null,
"bankingSenderBic": "SEOUGB21",
"bankingSenderIban": "GB58SEOU19870010070849",
"bankingSenderName": "Lenny Randy Treutel",
"bankingPaymentType": null,
"bankingTransactionReference": null,
"bankingBeneficiaryBic": null,
"bankingBeneficiaryIban": null
}
Lightning Transaction Webhooks
For example, when a lightning deposit is credited -
{
"type": "LN_INCOMING_CONFIRMED",
"id": "072a79bc-7708-4f84-96be-be032fbd63dd",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 495,
"debit": 0,
"timestamp": "2022-08-29T10:58:53.239Z",
"txType": "LN_INCOMING_CONFIRMED",
"hash": "06244442dfa71ea0c02e9a36143c8cb3fbd68fb724938cb5458aea54590575ef",
"otherCryptoIdentifier": "lntb5u1p3sexlppp5ynny05j09wazmlmrs7uc3pqyp6avauwn5lyjwrq2ff87wmskhn9qdpcwfjhvmmvw46xjmmwd9ax2grrdah8vetjvajkucm9ypex2ctv946xjmt9cqzpgxqzjhsp56cn7pxvjev6mfdl52t5u4gm4u6nftyx7x85mp3aeemw36w4gmd8s9qyyssqu7zy8mty5jd99z55tlz9xy7dprvtgk8h2estwqewdww9gsuntkdzjzzw7jncheffahpc7px8u6z0ctjqvnzh3xfnftcxe3gk03ghmucpgnuvt2",
"feeBaseCurrency": 5e-8,
"nonFpFeeBaseCurrency": 5,
"balanceBefore": {
"amount": 0,
"currency": "satoshis"
},
"balanceAfter": {
"amount": 495,
"currency": "satoshis"
}
}
{
"type": "LN_OUTGOING_DENIED",
"id": "2b488642-479d-4237-865f-005531c78ecd",
"accountId": "ebe221f983c4c2b8ef00e6a622f8839f",
"syncedOwnerId": "4a3ad895-8347-4b45-b0ee-4d24b5f76f35",
"sourceSyncedOwnerId": "4a3ad895-8347-4b45-b0ee-4d24b5f76f35",
"credit": "12",
"timestamp": "2023-01-03T14:55:15.845Z",
"txType": "LN_OUTGOING_DENIED",
"memo": "lntb110n1p3mgsy7pp5j0tydwwwt79s2spz3r2pgmnzu4ckk2ds4quzudtpk22g9z6wtmnsdqqcqzpgxqyz5vqsp5vmd53ytfx88l0jxqaxuv8l2rcn65hlrl29n4qurg8tj6lhds4jpq9qyyssqy9cm2vr6e8k6hu56m7yqxa6kz6sms99cwpjcjz3x2wp7dn7utpqsxt8t7afw7w4fc5v54l6rlczr9vqqnvdwzhfh83l9evstpya0uuspfrlh64",
"otherCryptoIdentifier": "lntb110n1p3mgsy7pp5j0tydwwwt79s2spz3r2pgmnzu4ckk2ds4quzudtpk22g9z6wtmnsdqqcqzpgxqyz5vqsp5vmd53ytfx88l0jxqaxuv8l2rcn65hlrl29n4qurg8tj6lhds4jpq9qyyssqy9cm2vr6e8k6hu56m7yqxa6kz6sms99cwpjcjz3x2wp7dn7utpqsxt8t7afw7w4fc5v54l6rlczr9vqqnvdwzhfh83l9evstpya0uuspfrlh64",
"strigaFee": "1",
"strigaFeeCurrency": "BTC",
"exchangeRate": "15773",
"balanceBefore": {
"amount": "813218666",
"currency": "satoshis"
},
"balanceAfter": {
"amount": "813218678",
"currency": "satoshis"
}
}
For example, when a lightning invoice is paid -
{
"type": "LN_OUTGOING_INITIATED",
"id": "6165263d-a87c-4e4a-b472-c90379d3475a",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 0,
"debit": 6,
"timestamp": "2022-08-29T10:59:22.329Z",
"txType": "LN_OUTGOING_INITIATED",
"hash": "020ec0c6a0c4fe5d8a79928ead294c36234a76f6e0dca896c35413612a3fd8dbf8",
"otherCryptoIdentifier": "lntb50n1p3se8qrpp5wsd3j6jnvrdh0ahkp73zcyx6wpda888zunp05huhrva5q00snvasdqqcqzpgxqyz5vqsp5e5tk3sp6papgc4ey3968xk5djhm78lddqjv28gsu8lcw4tesayns9qyyssqpewnqvssa8lznwq2lwjuw2ftah7rwjplf4wccpw8qx53rhdpeec4r6k8w58n29gd8kt8aw7l5pkal8tec7684xkm62399w9t2ygrukgqkxfvzj",
"feeBaseCurrency": 1e-8,
"nonFpFeeBaseCurrency": 1,
"balanceBefore": {
"amount": 495,
"currency": "satoshis"
},
"balanceAfter": {
"amount": 489,
"currency": "satoshis"
}
}
{
"type": "LN_OUTGOING_CONFIRMED",
"id": "6165263d-a87c-4e4a-b472-c90379d3475a",
"syncedOwnerId": "eda728dc-ed0f-48d9-8d81-57dbdc669a46",
"credit": 0,
"debit": 0,
"timestamp": "2022-08-29T10:59:23.032Z",
"txType": "LN_OUTGOING_CONFIRMED",
"hash": "540daf2857ec7114d56eb3b0e627ebcbb97658fb36c8f941e31bd33db652c164",
"otherCryptoIdentifier": "lntb50n1p3se8qrpp5wsd3j6jnvrdh0ahkp73zcyx6wpda888zunp05huhrva5q00snvasdqqcqzpgxqyz5vqsp5e5tk3sp6papgc4ey3968xk5djhm78lddqjv28gsu8lcw4tesayns9qyyssqpewnqvssa8lznwq2lwjuw2ftah7rwjplf4wccpw8qx53rhdpeec4r6k8w58n29gd8kt8aw7l5pkal8tec7684xkm62399w9t2ygrukgqkxfvzj",
"balanceBefore": {
"amount": 489,
"currency": "satoshis"
},
"balanceAfter": {
"amount": 489,
"currency": "satoshis"
}
}
Account Transaction Types
Currently webhooks are sent for the following types -
'CARD_AUTHORIZATION',
'INTRA_LEDGER_SEND' = 'INTRA_LEDGER_SEND', // Moving funds between identities of the same type
'INTRA_LEDGER_SEND_DENIED' = 'INTRA_LEDGER_SEND_DENIED',
'INTER_LEDGER_SEND' = 'INTER_LEDGER_SEND', // Moving funds between identities of different types
'INTER_LEDGER_SEND_DENIED' = 'INTER_LEDGER_SEND_DENIED',
'SEPA_PAYIN_COMPLETED' = 'SEPA_PAYIN_COMPLETED',
'SEPA_PAYIN_DENIED' = 'SEPA_PAYIN_DENIED',
'SEPA_PAYOUT_COMPLETED' = 'SEPA_PAYOUT_COMPLETED',
'SEPA_PAYIN_FAILED' = 'SEPA_PAYIN_FAILED',
'SEPA_PAYOUT_FAILED' = 'SEPA_PAYOUT_FAILED',
'SEPA_PAYOUT_DENIED' = 'SEPA_PAYOUT_DENIED',
'SEPA_PAYIN_REVERTED' = 'SEPA_PAYIN_REVERTED',
'SEPA_PAYOUT_REVERTED' = 'SEPA_PAYOUT_REVERTED',
'SEPA_PAYOUT_INITIATED' = 'SEPA_PAYOUT_INITIATED',
'LN_INCOMING_CONFIRMED' = 'LN_INCOMING_CONFIRMED',
'LN_INCOMING_PENDING' = 'LN_INCOMING_PENDING',
'LN_INCOMING_EXPIRED' = 'LN_INCOMING_EXPIRED',
'LN_INCOMING_DENIED' = 'LN_INCOMING_DENIED',
'LN_OUTGOING_INITIATED' = 'LN_OUTGOING_INITIATED',
'LN_OUTGOING_CONFIRMED' = 'LN_OUTGOING_CONFIRMED',
'LN_OUTGOING_FAILED' = 'LN_OUTGOING_FAILED',
'LN_OUTGOING_DENIED' = 'LN_OUTGOING_DENIED',
'ON_CHAIN_DEPOSIT_PENDING' = 'ON_CHAIN_DEPOSIT_PENDING',
'ON_CHAIN_DEPOSIT_CONFIRMED' = 'ON_CHAIN_DEPOSIT_CONFIRMED',
'ON_CHAIN_DEPOSIT_DENIED' = 'ON_CHAIN_DEPOSIT_DENIED',
'ON_CHAIN_WITHDRAWAL_INITIATED' = 'ON_CHAIN_WITHDRAWAL_INITIATED',
'ON_CHAIN_WITHDRAWAL_DENIED' = 'ON_CHAIN_WITHDRAWAL_DENIED',
'ON_CHAIN_WITHDRAWAL_PENDING' = 'ON_CHAIN_WITHDRAWAL_PENDING',
'ON_CHAIN_WITHDRAWAL_CONFIRMED' = 'ON_CHAIN_WITHDRAWAL_CONFIRMED',
'ON_CHAIN_WITHDRAWAL_FAILED' = 'ON_CHAIN_WITHDRAWAL_FAILED',
'CONTRACT_CALL_NETWORK_FEE' = 'CONTRACT_CALL_NETWORK_FEE',
'CONTRACT_CALL_INITIATED' = 'CONTRACT_CALL_INITIATED',
'CONTRACT_CALL_PENDING' = 'CONTRACT_CALL_PENDING',
'CONTRACT_CALL_CONFIRMED' = 'CONTRACT_CALL_CONFIRMED',
'CONTRACT_CALL_FAILED' = 'CONTRACT_CALL_FAILED,
'CURRENCY_EXCHANGE' = 'CURRENCY_EXCHANGE',
'MANUAL_ADJUSTMENT' = 'MANUAL_ADJUSTMENT',
Card Transaction Types
Currently webhooks are sent for the following types -
'CARD_AUTHORIZATION_PENDING_SETTLEMENT',
'CARD_AUTHORIZATION_REVERSAL',
'CARD_AUTHORIZATION_SETTLED',
'CARD_AUTHORIZATION_DECLINED'
Contract Call Webhooks
The following webhooks are sent when a contract call is successfully initiated and a transaction hash is created, followed by your account balance being updated based on the network fee that was paid to execute this transaction -
{
"type": "CONTRACT_CALL_PENDING",
"id": "011b9488-819b-495f-b178-387b6486e25b",
"syncedOwnerId": "c3284841-7848-4017-a1b9-bf5c3e4dad2e",
"credit": 0,
"debit": "0",
"timestamp": "2022-11-28T09:36:10.406Z",
"txType": "CONTRACT_CALL_PENDING",
"balanceBefore": {
"amount": "39717272096031940",
"currency": "wei"
},
"balanceAfter": {
"amount": "39717272096031940",
"currency": "wei"
},
"blockchainSourceAddress": "",
"txHash": "0xb5bf43bab636084e2f7956040bace3525243eddbda297db010cd58ac1513591c",
"blockchainDepositAddress": "0x93CD6a01A55805A3af582893f2D04051ea47f61D",
"blockchainConfirmations": 0,
"blockchainTransactionAmount": "0"
}
{
"type": "CONTRACT_CALL_NETWORK_FEE",
"id": "011b9488-819b-495f-b178-387b6486e25b",
"syncedOwnerId": "c3284841-7848-4017-a1b9-bf5c3e4dad2e",
"credit": 0,
"debit": "3374767813202115",
"timestamp": "2022-11-28T09:36:10.960Z",
"txType": "CONTRACT_CALL_NETWORK_FEE",
"txSubType": "TOTAL_FEE",
"balanceBefore": {
"amount": "39717272096031940",
"currency": "wei"
},
"balanceAfter": {
"amount": "36342504282829825",
"currency": "wei"
},
"blockchainSourceAddress": "",
"txHash": "0xb5bf43bab636084e2f7956040bace3525243eddbda297db010cd58ac1513591c",
"blockchainDepositAddress": "0x93CD6a01A55805A3af582893f2D04051ea47f61D",
"blockchainConfirmations": 0,
"blockchainTransactionAmount": "0"
}
The following webhook is sent when a contract call is successfully initiated and a transaction is confirmed -
{
"type": "CONTRACT_CALL_CONFIRMED",
"id": "011b9488-819b-495f-b178-387b6486e25b",
"syncedOwnerId": "c3284841-7848-4017-a1b9-bf5c3e4dad2e",
"credit": 0,
"debit": "0",
"timestamp": "2022-11-28T09:37:11.870Z",
"txType": "CONTRACT_CALL_CONFIRMED",
"balanceBefore": {
"amount": "32967736469627710",
"currency": "wei"
},
"balanceAfter": {
"amount": "32967736469627710",
"currency": "wei"
},
"blockchainSourceAddress": "",
"txHash": "0xb5bf43bab636084e2f7956040bace3525243eddbda297db010cd58ac1513591c",
"blockchainDepositAddress": "0x93CD6a01A55805A3af582893f2D04051ea47f61D",
"blockchainConfirmations": 3,
"blockchainTransactionAmount": "0"
}
On Chain Withdrawal Webhooks
The following webhook is sent for an on chain withdrawal that has been initiated -
{
"type": "ON_CHAIN_WITHDRAWAL_INITIATED",
"id": "0df0e26e-3276-4314-91e5-aec4d27e9272",
"accountId": "6a6caf125a331135b812fe4ba29ad516",
"syncedOwnerId": "50febc83-6118-419e-82e1-886f8c7ffd59",
"credit": 0,
"debit": "86",
"timestamp": "2022-11-30T14:52:29.342Z",
"txType": "ON_CHAIN_WITHDRAWAL_INITIATED",
"memo": "ON_CHAIN_WITHDRAWAL_INITIATED_0df0e26e-3276-4314-91e5-aec4d27e9272",
"balanceBefore": {
"amount": "2000",
"currency": "cents"
},
"balanceAfter": {
"amount": "1914",
"currency": "cents"
}
}
The following webhook is sent for an on chain withdrawal that is pending -
{
"type": "ON_CHAIN_WITHDRAWAL_PENDING",
"id": "0df0e26e-3276-4314-91e5-aec4d27e9272",
"accountId": "6a6caf125a331135b812fe4ba29ad516",
"syncedOwnerId": "50febc83-6118-419e-82e1-886f8c7ffd59",
"credit": "0",
"debit": 0,
"timestamp": "2022-11-30T14:52:51.753Z",
"txType": "ON_CHAIN_WITHDRAWAL_PENDING",
"memo": "BUSD_BSC_TEST_BROADCASTING",
"balanceBefore": {
"amount": "1900",
"currency": "cents"
},
"balanceAfter": {
"amount": "1900",
"currency": "cents"
},
"blockchainSourceAddress": "",
"txHash": "0xcd97aca6fb7d1da639a584905c41c214db88e5fa05828334dc04a6f6856ffc0c",
"blockchainDepositAddress": "0xaa25Aa7a19f9c426E07dee59b12f944f4d9f1DD3",
"blockchainConfirmations": 0
}
The following webhook is sent for an on chain withdrawal that has been completed -
{
"type": "ON_CHAIN_WITHDRAWAL_CONFIRMED",
"id": "0df0e26e-3276-4314-91e5-aec4d27e9272",
"accountId": "6a6caf125a331135b812fe4ba29ad516",
"syncedOwnerId": "50febc83-6118-419e-82e1-886f8c7ffd59",
"credit": "0",
"debit": 0,
"timestamp": "2022-11-30T14:53:08.093Z",
"txType": "ON_CHAIN_WITHDRAWAL_CONFIRMED",
"memo": "BUSD_BSC_TEST_COMPLETED",
"balanceBefore": {
"amount": "1900",
"currency": "cents"
},
"balanceAfter": {
"amount": "1900",
"currency": "cents"
},
"blockchainSourceAddress": "0x606baDb2A7145FFC443575635Bb07fd23AE14478",
"txHash": "0xcd97aca6fb7d1da639a584905c41c214db88e5fa05828334dc04a6f6856ffc0c",
"blockchainDepositAddress": "0xaa25Aa7a19f9c426E07dee59b12f944f4d9f1DD3",
"blockchainConfirmations": 1
}
The following webhook is sent for the fees collected from a user on your behalf for on chain withdrawals, and credited to your account -
{
"type": "APPLICATION_FEE",
"id": "0c34bed8-c7fa-4905-b745-6d43372cc3ed",
"accountId": "0603ae938fd2b031d360b7097e54528d",
"syncedOwnerId": "c3284841-7848-4017-a1b9-bf5c3e4dad2e",
"credit": "1",
"debit": 0,
"timestamp": "2022-11-30T15:38:15.307Z",
"txType": "APPLICATION_FEE",
"txSubType": "THEIR_FEE",
"memo": "BUSD_BSC_TEST_COMPLETED",
"balanceBefore": {
"amount": "1",
"currency": "cents"
},
"balanceAfter": {
"amount": "2",
"currency": "cents"
},
"blockchainSourceAddress": "0x606baDb2A7145FFC443575635Bb07fd23AE14478",
"txHash": "0x3afeb2c3324a60a211b1332853b9b6c9d281073a8e2e75a9fc609d3c3c7c15b4",
"blockchainDepositAddress": "0xC2F1FF4bA36D8A36b440b38e12F67f6C593F98CF",
"blockchainConfirmations": 1
}
The following webhook is sent for the fees collected from a user after an on chain withdrawal has been initiated, to pay for network fees -
{
"type": "NETWORK_FEE",
"id": "0c34bed8-c7fa-4905-b745-6d43372cc3ed",
"accountId": "6a6caf125a331135b812fe4ba29ad516",
"syncedOwnerId": "50febc83-6118-419e-82e1-886f8c7ffd59",
"credit": 0,
"debit": "20",
"timestamp": "2022-11-30T15:37:40.482Z",
"txType": "NETWORK_FEE",
"txSubType": "TOTAL_WITHDRAWAL_FEE",
"memo": "NETWORK_FEE_0c34bed8-c7fa-4905-b745-6d43372cc3ed",
"balanceBefore": {
"amount": "1820",
"currency": "cents"
},
"balanceAfter": {
"amount": "1800",
"currency": "cents"
}
}
The following webhook is sent when funds and the corresponding fees are refunded when an on chain withdrawal fails
{
"type": "ON_CHAIN_WITHDRAWAL_FAILED",
"id": "ee9e8733-3e1a-4ced-9bb3-7600b64d2a69",
"accountId": "7cb14c21eb7283745ba629d5dc8e6c7d",
"syncedOwnerId": "50febc83-6118-419e-82e1-886f8c7ffd59",
"credit": "22310983910888449318",
"debit": 0,
"timestamp": "2022-11-30T16:21:15.187Z",
"txType": "ON_CHAIN_WITHDRAWAL_FAILED",
"memo": "BNB_TEST_FAILED",
"balanceBefore": {
"amount": "1144927556020485960",
"currency": "wei"
},
"balanceAfter": {
"amount": "3376025947109330892752",
"currency": "wei"
},
"blockchainSourceAddress": "",
"txHash": "",
"blockchainDepositAddress": "",
"blockchainConfirmations": null
}
{
"type": "FEE_REFUND",
"id": "ee9e8733-3e1a-4ced-9bb3-7600b64d2a69",
"accountId": "7cb14c21eb7283745ba629d5dc8e6c7d",
"syncedOwnerId": "50febc83-6118-419e-82e1-886f8c7ffd59",
"credit": "22536559696857019513",
"debit": 0,
"timestamp": "2022-11-30T16:21:15.441Z",
"txType": "FEE_REFUND",
"txSubType": "TOTAL_WITHDRAWAL_FEE",
"memo": "BNB_TEST_FAILED",
"balanceBefore": {
"amount": "3376025947109330892752",
"currency": "wei"
},
"balanceAfter": {
"amount": "3398562506806187912265",
"currency": "wei"
},
"blockchainSourceAddress": "",
"txHash": "",
"blockchainDepositAddress": "",
"blockchainConfirmations": null
}
Account Enrichment Webhooks
Following are examples of webhooks sent when an account is successfully enriched
{
"type": "ACCOUNT_ENRICHED",
"accountId": "959d0e427d653fffc68d85bd7b45443f",
"currency": "EUR",
"status": "ACTIVE",
"internalAccountId": "EUR08975982797233",
"bankCountry": "GB",
"bankAddress": "The Bower, 207-211 Old Street, London, England, EC1V 9NR",
"iban": "GB84SEOU19870010076783",
"bic": "SEOUGB21",
"accountNumber": "010076783",
"bankName": "Simulator Bank",
"bankAccountHolderName": "ED ORTIZ IV ALI",
"provider": "SIMULATOR",
"domestic": false,
"routingCodeEntries": [],
"payInReference": null
}
{
"type": "ACCOUNT_ENRICHED",
"accountId": "930965eda2994a07b2e3dd4fc9269080",
"currency": "1INCH",
"blockchainDepositAddress": "0xAfC0B3BDF786e6686d68b32235f9a19FB88757cb",
"blockchainNetwork": {
"name": "1INCH (BSC Test)",
"type": "BEP20",
"contractAddress": "0x21Ee678930eDF4821C396354f3408BBd12d60DeD"
}
}
{
"type": "ACCOUNT_ENRICHED",
"accountId": "b1f822b1f07bb3c30c3ceef347782971",
"currency": "BNB",
"blockchainDepositAddress": "0xAfC0B3BDF786e6686d68b32235f9a19FB88757cb",
"blockchainNetwork": {
"name": "Binance Coin Test (BSC)"
}
}
Swap Fee Collection Webhooks
When you configure your application to collect fees when making a swap, the following webhook is sent after a successful swap
{
"type": "APPLICATION_FEE",
"id": "c25d7923-ef72-48d7-ba36-6db838e39aab",
"accountId": "ac2924c70de6c9fa062d6e8550d28936",
"syncedOwnerId": "e4f78c3b-50a0-4c7a-bf24-02a935bb3103",
"sourceSyncedOwnerId": "e3790e84-7a9e-46f2-ae5b-465d7c0d08f7",
"credit": "1650",
"timestamp": "2023-01-07T09:52:07.830Z",
"txType": "APPLICATION_FEE",
"txSubType": "THEIR_FEE",
"memo": "Fee collection for swap c25d7923-ef72-48d7-ba36-6db838e39aab = 100000 EUR to BTC",
"exchangeRate": "1",
"balanceBefore": {
"amount": "500",
"currency": "cents"
},
"balanceAfter": {
"amount": "2150",
"currency": "cents"
}
}
Currency Swap Webhooks
The following webhook is sent when a currency swap is initiated through the API
{
"type": "CURRENCY_EXCHANGE",
"id": "b4d20354-a344-4805-a410-83f4c1ca29c7",
"accountId": "ba78ee1d02ea24e901a66afdeb59b302",
"syncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"sourceSyncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"destinationSyncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"debit": "990",
"timestamp": "2023-03-08T09:51:10.983Z",
"txType": "EXCHANGE_DEBIT",
"txSubType": "CURRENCY_EXCHANGE_PENDING",
"memo": "Swap 990 EUR to USDT",
"memoPayer": "redefine models 24/365",
"exchangeRate": "1",
"balanceBefore": {
"amount": "9979790",
"currency": "cents"
},
"balanceAfter": {
"amount": "9978800",
"currency": "cents"
}
}
The following webhook is sent when the currency swap has been successfully completed and the funds have been transferred
{
"type": "CURRENCY_EXCHANGE",
"id": "b4d20354-a344-4805-a410-83f4c1ca29c7",
"accountId": "6b8e866d037f9563e756c2833e99e6d9",
"syncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"sourceSyncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"destinationSyncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"credit": "1031",
"timestamp": "2023-03-08T09:51:11.106Z",
"txType": "EXCHANGE_CREDIT",
"txSubType": "CURRENCY_EXCHANGE_CONFIRMED",
"memo": "Swap 990 EUR to USDT",
"memoPayer": "redefine models 24/365",
"exchangeRate": "1",
"balanceBefore": {
"amount": "1031",
"currency": "cents"
},
"balanceAfter": {
"amount": "2062",
"currency": "cents"
}
}
The following webhook is sent when the currency swap fails and a refund is initiated
{
"type": "CURRENCY_EXCHANGE",
"id": "420f51b4-ccd1-4932-bc71-648775918341",
"accountId": "ba78ee1d02ea24e901a66afdeb59b302",
"syncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"sourceSyncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"destinationSyncedOwnerId": "928ff022-2541-45e8-a576-f8e9380ddd04",
"credit": "990",
"timestamp": "2023-03-08T09:47:35.506Z",
"txType": "EXCHANGE_CREDIT",
"txSubType": "CURRENCY_EXCHANGE_REFUND",
"memo": "Failed Swap 990 EUR to USDT",
"memoPayer": "revolutionize functionalities next-generation",
"exchangeRate": "1",
"balanceBefore": {
"amount": "9980810",
"currency": "cents"
},
"balanceAfter": {
"amount": "9981800",
"currency": "cents"
}
}