v1

latestOpenAPI 3.0.12026-07-26222700728.0 KB
Templates

Save template rules

Save new (or update existing) template rules

post/v6/templates/rules

Request body

Example request

{
  "data": [
    {
      "id": "ttrl_12345678",
      "status": "ACTIVE",
      "customData": {
        "internal_key": "some_internal_key",
        "some_other_field": 23434
      },
      "filter": {
        "description": {
          "equal": "Office Supplies",
          "contain": "Supplies"
        },
        "businessType": {
          "id": {
            "equal": "tgla_324231"
          }
        },
        "templateGlAccount": {
          "id": {
            "equal": "tgla_324231"
          }
        },
        "vendorName": {
          "name": "Office Depot"
        }
      },
      "update": {
        "reviewStatus": "RECONCILED",
        "templateGlAccountId": "tgla_324231",
        "vendorName": "Office Depot"
      }
    }
  ]
}

Response

Success

result'SUCCESS' | 'FAILURE'

The result of the action performed.

Example response

{
  "data": [
    {
      "data": {
        "id": "ttrl_12345678",
        "status": "ACTIVE",
        "filter": {
          "description": {
            "equal": "Office Supplies",
            "contain": "Supplies"
          },
          "businessType": {
            "id": {
              "equal": "tgla_324231"
            }
          },
          "templateGlAccount": {
            "id": {
              "equal": "tgla_324231"
            }
          },
          "vendorName": {
            "name": "Office Depot"
          }
        },
        "update": {
          "reviewStatus": "RECONCILED",
          "templateGlAccountId": "tgla_324231",
          "vendorName": "Office Depot"
        },
        "customData": {
          "internal_key": "some_internal_key",
          "some_other_field": 23434
        }
      }
    }
  ]
}