Banks

Events

Action Event name
create a new bank banks.created
update an existing bank banks.updated
delete an existing bank banks.deleted

Payload example created

{
  "attemptId": "ac79fa35-b3fa-4c20-a176-71440ce88a26",
  "created": 1673988987,
  "data": {
    "_id": "63c70b7a12b83f071f725479",
    "accountId": "52a377ec430c7d4e220001fc",
    "accountNumbers": [
      "000001-10000456=-6780091-01"
    ],
    "createdAt": {
      "offset": 0,
      "value": "2023-01-17T20:56:26.111Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "name": "ACME bank",
    "updatedAt": {
      "offset": 0,
      "value": "2023-01-17T20:56:26.111Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "banks.created",
  "id": "f45eaba7-bd2d-4063-8fc7-d39714707d12",
  "livemode": false
}

Payload example updated

{
  "attemptId": "33d466ef-7fb5-479a-bc12-855c75239b40",
  "created": 1673989017,
  "data": {
    "_id": "63c70b7a12b83f071f725479",
    "accountId": "52a377ec430c7d4e220001fc",
    "accountNumbers": [
      "000001-10000456=-6780091-01"
    ],
    "createdAt": {
      "offset": 0,
      "value": "2023-01-17T20:56:26.111Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "name": "Royal bank 22",
    "updatedAt": {
      "offset": 0,
      "value": "2023-01-17T20:56:36.875Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "banks.updated",
  "id": "9022be32-766d-4119-ae08-a693b117e60f",
  "livemode": false
}

Payload example deleted

{
  "attemptId": "51d8130e-5d62-4188-b6f6-fc7bc5f3be71",
  "created": 1673989007,
  "data": {
    "bankId": "63c70b7a12b83f071f725479"
  },
  "event": "banks.deleted",
  "id": "7de4f283-0582-4c68-910a-cdae73af3452",
  "livemode": false
}