Returns a collection with a key, ID, and link for each advance 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 Payable |
---|---|
User type | Business |
Permissions | List, View AP advances |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1103722",
- "id": "1103722",
- "href": "/objects/accounts-payable/advance-line/1103722"
}, - {
- "key": "5145328",
- "id": "5145328",
- "href": "/objects/accounts-payable/advance-line/5145328"
}, - {
- "key": "5145339",
- "id": "5145339",
- "href": "/objects/accounts-payable/advance-line/5145339"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified advance line.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View AP advances |
key required | string System-assigned unique key for the advance line. Example: 143 |
OK
Bad Request
{- "ia::result": {
- "id": "39",
- "key": "39",
- "apAdvance": {
- "id": "20",
- "key": "20",
- "recordType": "pr",
- "href": "/objects/accounts-payable/advance/20"
}, - "glAccount": {
- "key": "81",
- "id": "1304",
- "name": "Vendor Advances",
- "href": "/objects/general-ledger/account/81"
}, - "accountLabel": {
- "id": null
}, - "baseAmount": "120.00",
- "txnAmount": "120.00",
- "dimensions": {
- "department": {
- "key": "9",
- "id": "11",
- "name": "Accounting",
- "href": "/objects/company-config/department/9"
}, - "location": {
- "key": "1",
- "id": "1",
- "name": "United States of America",
- "href": "/objects/company-config/location/1"
}, - "project": {
- "key": "8",
- "id": "8",
- "name": "Client Services - Power Aerospace Materials",
- "href": "/objects/projects/project/8"
}, - "customer": {
- "key": "1",
- "id": "1",
- "name": "Power Aerospace Materials",
- "href": "/objects/accounts-receivable/customer/1"
}, - "vendor": {
- "key": "43",
- "id": "1099 Int",
- "name": "1099 Int",
- "href": "/objects/accounts-payable/vendor/43"
}, - "employee": {
- "key": "1",
- "id": "1",
- "name": "Reser",
- "href": "/objects/company-config/employee/1"
}, - "item": {
- "key": "1",
- "id": "1",
- "name": "PC Computer",
- "href": "/objects/inventory-control/item/1"
}, - "class": {
- "key": "1",
- "id": "3",
- "name": "Heath Care",
- "href": "/objects/company-config/class/1"
}, - "nsp::refcode_gl": {
- "key": "10004",
- "href": "/objects/platform-apps/nsp::refcode_gl/10004"
}, - "nsp::vssn": {
- "key": "10008",
- "href": "/objects/platform-apps/nsp::vssn/10008"
}, - "nsp::restriction": {
- "key": null
}
}, - "baseLocation": {
- "name": "United States of America",
- "key": "1",
- "href": "/objects/company-config/location/1"
}, - "memo": "Invc-001",
- "currency": {
- "exchangeRate": {
- "date": "2024-05-20",
- "typeId": null,
- "rate": "1"
}, - "baseCurrency": "USD",
- "txnCurrency": "USD"
}, - "lineNumber": 1,
- "paymentInformation": {
- "totalPaid": "0.00",
- "txnTotalPaid": "0.00",
- "totalSelected": "0.00",
- "txnTotalSelected": "0.00"
}, - "audit": {
- "createdDateTime": "2024-05-20T08:39:24Z",
- "modifiedDateTime": "2024-05-20T08:39:25Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/accounts-payable/advance-line/39"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Creates new advance lines
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Add Advance lines |
key required | string System-assigned unique key for the advance line. Example: 143 |
txnAmount required | string <decimal-precision-2> The transaction amount for the AP advance line item in the currency specified for the transaction. Example: "100" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Meaningful name of the account. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
memo | string or null Additional notes or comments about the advance line item for reference. Example: "Service charges" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Base location for the line item. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Created
Bad Request
{- "apAdvance": {
- "key": "89"
}, - "txnAmount": "2500.00",
- "baseAmount": "2500.00",
- "accountLabel": {
- "id": "Bank Fees"
}, - "dimensions": {
- "location": {
- "id": "1"
}, - "department": {
- "id": "4"
}
}, - "memo": "Created memo for advance line charges"
}
{- "ia::result": {
- "key": "5",
- "id": "5",
- "href": "/objects/accounts-payable/advance-line/5",
- "ia::meta": {
- "totalCount": 1
}
}
}
Updates advance lines
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Update Advance lines |
key required | string System-assigned unique key for the advance line. Example: 143 |
txnAmount | string <decimal-precision-2> The transaction amount for the AP advance line item in the currency specified for the transaction. Example: "100" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
memo | string or null Additional notes or comments about the advance line item for reference. Example: "Service charges" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Base location for the line item. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Meaningful name of the account. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Created
Bad Request
{- "txnAmount": "1300.00"
}
{- "ia::result": {
- "key": "5",
- "id": "5",
- "href": "/objects/accounts-payable/advance-line/5",
- "ia::meta": {
- "totalCount": 1
}
}
}
Delete advance lines
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Update, Delete Advance lines |
key required | string System-assigned unique key for the advance line. Example: 143 |
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
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "accounts-payable/advance-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 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-payable/advance-line",
- "filters": [
- {
- "$gte": {
- "baseAmount": "100.00"
}
}
], - "fields": [
- "key",
- "id",
- "baseAmount",
- "txnAmount",
- "memo",
- "dimensions.department.id",
- "dimensions.department.name"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "23",
- "id": "23",
- "baseAmount": "150.00",
- "txnAmount": "150",
- "memo": "Service charges",
- "dimensions": {
- "department": {
- "id": "1",
- "name": "Accounting"
}
}
}, - {
- "key": "24",
- "id": "24",
- "baseAmount": "200.00",
- "txnAmount": "200",
- "memo": "Consulting fees",
- "dimensions": {
- "department": {
- "id": "2",
- "name": "Finance"
}
}
}, - {
- "key": "25",
- "id": "25",
- "baseAmount": "250.00",
- "txnAmount": "250",
- "memo": "Legal services",
- "dimensions": {
- "department": {
- "id": "3",
- "name": "Legal"
}
}
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}