v1

latestOpenAPI 3.0.12026-07-26222700728.0 KB
Transaction Rules

Save transaction rules

Save new (or update existing) transaction rules

post/v6/banks/transactions/rules

Request body

Example request

{
  "data": [
    {
      "id": "trl_5445116",
      "status": "ACTIVE",
      "filter": {
        "description": {
          "equal": "Office Supplies",
          "contain": "Supplies"
        },
        "vendor": {
          "id": {
            "equal": "tgla_324231"
          }
        },
        "glAccount": {
          "id": {
            "equal": "tgla_324231"
          }
        },
        "bankAccount": {
          "id": {
            "equal": "tgla_324231"
          }
        }
      },
      "update": {
        "glAccountId": "gla_58932890",
        "vendorId": "vnd_28868401",
        "customerId": "cus_4852707",
        "reviewStatus": "RECONCILED",
        "dimensionValueIds": [
          "dv_12345678"
        ]
      },
      "customData": {
        "internal_key": "some_internal_key",
        "some_other_field": 23434
      }
    }
  ]
}

Response

Success

result'SUCCESS' | 'FAILURE'

The result of the action performed.