Line items in a bill back template provide the GL accounts and departments to use for line items in corresponding invoices and bills. Create and maintain bill back template lines from the owning bill back template object.
Returns a collection with a key, ID, and link for each bill back template line. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
Subscription | Accounts Receivable |
---|---|
User type | Business |
Permissions | List, View Bill back templates |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "1",
- "href": "/objects/accounts-receivable/billback-template-line/1"
}, - {
- "key": "8",
- "id": "8",
- "href": "/objects/accounts-receivable/billback-template-line/8"
}, - {
- "key": "9",
- "id": "9",
- "href": "/objects/accounts-receivable/billback-template-line/9"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified bill back template line.
Subscription | Accounts Receivable |
---|---|
User type | Business |
Permissions | List, View Bill back templates |
key required | string System-assigned unique key for the bill back template line. Example: 9 |
OK
Bad Request
{- "ia::result": {
- "key": "5",
- "id": "5",
- "billbackTemplate": {
- "id": "1",
- "key": "1",
- "href": "/objects/accounts-receivable/billback-template/1"
}, - "lineNumber": "0",
- "invoiceGLAccount": {
- "key": "194",
- "id": "4000",
- "name": "Sales",
- "href": "/objects/general-ledger/account/194"
}, - "billGLAccount": {
- "key": "207",
- "id": "5001",
- "name": "Construction",
- "href": "/objects/general-ledger/account/207"
}, - "department": {
- "key": "9",
- "id": "11",
- "name": "Accounting",
- "href": "/objects/company-config/department/9"
}, - "memo": "line 1",
- "href": "/objects/accounts-receivable/billback-template-line/5"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "accounts-receivable/billback-template-line" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or has (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the result set, 4000 maximum. Example: 100 |
OK
Bad Request
{- "object": "accounts-receivable/billback-template-line",
- "filters": [
- {
- "$eq": {
- "department.name": "Sales"
}
}
], - "fields": [
- "key",
- "billbackTemplate.id",
- "memo",
- "href"
]
}
{- "ia::result": [
- {
- "key": "1",
- "billbackTemplate.id": "3",
- "invoiceGLAccount.id": "1999",
- "billGLAccount.id": "2999",
- "href": "/objects/accounts-receivable/billback-template-line/1"
}, - {
- "key": "5",
- "billbackTemplate.id": "10",
- "invoiceGLAccount.id": "1999",
- "billGLAccount.id": "2999",
- "href": "/objects/accounts-receivable/billback-template-line/5"
}, - {
- "key": "8",
- "billbackTemplate.id": "5",
- "invoiceGLAccount.id": "1661",
- "billGLAccount.id": "2668",
- "href": "/objects/accounts-receivable/billback-template-line/8"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}