Bank transaction rules define whether to match or create Sage Intacct transactions when processing incoming bank transactions.
Returns a collection with a key, ID, and link for each bank transaction rule. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "1",
- "href": "/objects/cash-management/bank-txn-rule/1"
}, - {
- "key": "3",
- "id": "3",
- "href": "/objects/cash-management/bank-txn-rule/3"
}, - {
- "key": "4",
- "id": "4",
- "href": "/objects/cash-management/bank-txn-rule/4"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new bank transaction rule.
ruleId required | string ID of the rule that matched or created the transaction. Example: "match-by-amount-1" | ||||||||||||||||||
name required | string Name of the rule that matched or created the transaction. Example: "match-by-amount" | ||||||||||||||||||
ruleType required | string Default: "match" Type of rule. A Example: "match" | ||||||||||||||||||
required | Array of objects non-empty Filter attributes for the bank transaction rule. | ||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||
description | string Description of the bank transaction. Example: "Rule for matching bank transactions by amount" | ||||||||||||||||||
object Location where the bank transaction rule was created. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Group attributes for the bank transaction rule. | |||||||||||||||||||
Array
| |||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||
Array of objects Matching condition attributes for a match rule. Required when ruletype is match. | |||||||||||||||||||
Array
| |||||||||||||||||||
object Transaction template object needed to create transactions. Required when ruletype is create. | |||||||||||||||||||
|
Created
Bad Request
{- "ruleId": "JE rule",
- "description": "Rule to create journal entry",
- "name": "Create GL rule ",
- "ruleType": "create",
- "createRuleObject": {
- "objectType": "journalEntry",
- "journalEntryTemplate": {
- "id": "1"
}
}, - "filterAttributes": [
- {
- "dataSource": "bankTransaction",
- "bankTxnAttribute": "postingDate",
- "operator": "greaterThan",
- "value": "11/10/2023"
}, - {
- "dataSource": "bankTransaction",
- "bankTxnAttribute": "transactionType",
- "operator": "equals",
- "value": "withdrawal"
}
]
}
{- "ia::result": {
- "key": "15",
- "id": "15",
- "href": "/objects/cash-management/bank-txn-rule/15"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified bank transaction rule..
key required | string System-assigned key for the bank transaction rule. Example: 53 |
OK
Bad Request
{- "ia::result": {
- "id": "79",
- "key": "79",
- "ruleId": "gl-boa-create-rule-1",
- "name": "Create-GL-credit-card-rule-1",
- "description": "Create GL rule for bank account BOA",
- "ruleType": "create",
- "createRuleObject": {
- "objectType": "journalEntry",
- "journalEntryTemplate": {
- "id": "1",
- "key": "1",
- "href": "/objects/cash-management/journal-entry-template/1"
}, - "creditCardTxnTemplate": {
- "id": null,
- "key": null
}
}, - "status": "active",
- "location": {
- "key": null
}, - "rulesetCount": 0,
- "audit": {
- "createdDateTime": "2023-08-03T16:38:31Z",
- "modifiedDateTime": "2023-08-03T16:38:31Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "entity": {
- "key": "46",
- "id": "Western Region",
- "name": "Western Region",
- "href": "/objects/company-config/entity/46"
}, - "filterAttributes": [
- {
- "id": "81",
- "key": "81",
- "bankTransactionRule": {
- "id": "79",
- "key": "79",
- "href": "/objects/cash-management/bank-txn-rule/79"
}, - "dataSource": "bankTransaction",
- "intacctTxnAttribute": null,
- "bankTxnAttribute": "postingDate",
- "operator": "greaterThan",
- "value": "01/10/2022",
- "order": 0,
- "href": "/objects/cash-management/bank-txn-rule-filter/81"
}, - {
- "id": "82",
- "key": "82",
- "bankTransactionRule": {
- "id": "79",
- "key": "79",
- "href": "/objects/cash-management/bank-txn-rule/79"
}, - "dataSource": "bankTransaction",
- "intacctTxnAttribute": null,
- "bankTxnAttribute": "transactionType",
- "operator": "equals",
- "value": "payment",
- "order": 1,
- "href": "/objects/cash-management/bank-txn-rule-filter/82"
}
], - "groupAttributes": [ ],
- "matchRuleAttributes": [ ],
- "href": "/objects/cash-management/bank-txn-rule/79"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing bank transaction rule by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the bank transaction rule. Example: 53 |
ruleId | string ID of the rule that matched or created the transaction. Example: "match-by-amount-1" | ||||||||||||||||||
name | string Name of the rule that matched or created the transaction. Example: "match-by-amount" | ||||||||||||||||||
description | string Description of the bank transaction. Example: "Rule for matching bank transactions by amount" | ||||||||||||||||||
ruleType | string Default: "match" Type of rule. A Example: "match" | ||||||||||||||||||
object Location where the bank transaction rule was created. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects non-empty Filter attributes for the bank transaction rule. | |||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||
Array of objects Group attributes for the bank transaction rule. | |||||||||||||||||||
Array
| |||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||
Array of objects Matching condition attributes for a match rule. Required when ruletype is match. | |||||||||||||||||||
Array
| |||||||||||||||||||
object Transaction template object needed to create transactions. Required when ruletype is create. | |||||||||||||||||||
|
OK
Bad Request
{- "matchRuleAttributes": [
- {
- "key": "7",
- "order": 5
}, - {
- "key": "11",
- "intacctTxnAttribute": "description",
- "bankTxnAttribute": "description",
- "operator": "contains",
- "value": "abc1000",
- "order": 10
}
]
}
{- "ia::result": {
- "key": "4",
- "id": "4",
- "href": "/objects/cash-management/bank-txn-rule/4"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes a bank transaction rule.
key required | string System-assigned key for the bank transaction rule. Example: 53 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find bank transaction rules that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}