This endpoint will help you test your Webhook implementation with all the events. You have to pass the event you want to receive webhook for in the body request to receive an exemple of data Fyatu will be sending you when the event occurs.

Use the data model to process data from your end. Below are list of expected payloads for all events:

Exemple Webhook Payload

{
  "event": "3ds.received",
    "hash": "6CE9AAA27BDEC94DAE1F633F436F5FF4",
    "infos": {
        "cardId": "45df8ef-d895s-8953fr-da793se7",
        "maskedNumber": "486555******0830",
        "otpCode": "854292",
        "validity": "15 minutes"
    },
    "message": "OTP 3D Secure Notification",
    "status": "Pending Auth",
    "version": 1
}
{
    "event": "transaction.created",
    "hash": "0730964F56E975A7B133D2F87586574E",
    "infos": {
      "amount": 108.89,
      "balance": 236.56,
      "cardId": "0affae42-65a0-4da5-96e1-eba98e279c3a",
      "currency": "USD",
      "description": "FACEBK 6TEQFLTTG2",
      "maskedNumber": "5371001*****0296",
      "merchantName": "Meta Inc.",
      "status": "Successful",
      "transactionId": "63E3B49709C5963E3B49709C5A"
}
{
    "event": "card.overdraft",
    "hash": "0730964F56E975A7B133D2F87586574E",
    "infos": {
      "amount": -2.36,
      "cardId": "0affae42-65a0-4da5-96e1-eba98e279c3a",
      "currency": "USD",
      "maskedNumber": "5371001*****0296",
      "status": "issued"
    },
    "message": "Card Overdraft",
    "status": "Delivered",
    "version": 1
}
{
    "event": "card.blocked",
    "hash": "0730964F56E975A7B133D2F87586574E",
    "infos": {
      "balance": 27.14,
      "cardId": "0affae42-65a0-4da5-96e1-eba98e279c3a",
      "currency": "USD",
      "maskedNumber": "5371001*****0296",
      "status": "deleted"
    },
    "message": "Card Blocked",
    "status": "Delivered",
    "version": 1
}
{
    "event": "card.reordered",
    "hash": "0730964F56E975A7B133D2F87586574E",
    "infos": {
      "balance": 45.85,
      "cardId": "0affae42-65a0-4da5-96e1-eba98e279c3a",
      "currency": "USD",
      "maskedNumber": "5371001*****0296",
      "status": "issued"
    },
    "message": "Card Reordered",
    "status": "Delivered",
    "version": 1
}

📘

Best Practice

When you receive a Webhook, it's important to return a 200 OK status code so that Fyatu will not retry again to send the same payload.

Language
Authorization
OAuth2
Authenticate
Click Try It! to start a request and see the response here!