Transaction allocation template lines

Transaction allocation template lines define how allocations are distributed. Allocation template lines can only be added, updated, and deleted through the owning txn-allocation-template object.

List transaction allocation template lines

get/objects/general-ledger/txn-allocation-template-line

Returns up to 100 transaction allocation template lines from the collection with a key, ID, and link for each one. This operation is mostly for use in testing; use the query service to find allocation template lines that meet specific criteria and to specify the properties that you want in the response.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "4",
      • "id": "4",
      • "href": "/objects/general-ledger/txn-allocation-template-line/1"
      },
    • {
      • "key": "8",
      • "id": "8",
      • "href": "/objects/general-ledger/txn-allocation-template-line/1"
      },
    • {
      • "key": "1",
      • "id": "1",
      • "href": "/objects/general-ledger/txn-allocation-template-line/2"
      }
    ],
  • "ia::meta": {
    • "totalCount": 3,
    • "start": 1,
    • "pageSize": 100,
    • "next": null,
    • "previous": null
    }
}

Get a transaction allocation template line

get/objects/general-ledger/txn-allocation-template-line/{key}

Returns detailed information for a specified transaction allocation template line.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the transaction allocation template line.

Example: 209856
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "8",
    • "id": "8",
    • "allocation": {
      • "id": "Fixed amount allocation",
      • "key": "3",
      • "href": "/objects/general-ledger/txn-allocation-template/3"
      },
    • "valueType": "amount",
    • "value": "100",
    • "dimensions": {
      • "location": {
        },
      • "department": {
        },
      • "project": {
        },
      • "customer": {
        },
      • "vendor": {
        },
      • "employee": {
        },
      • "item": {
        },
      • "class": {
        },
      • "task": {
        },
      • "warehouse": {
        }
      },
    • "audit": {
      • "createdDateTime": "2022-06-23T12:25:09Z",
      • "modifiedDateTime": "2022-06-23T12:25:09Z",
      • "createdBy": "1",
      • "modifiedBy": "1"
      },
    • "lineNumber": 1,
    • "href": "/objects/general-ledger/txn-allocation-template-line/8"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}