Returns a collection with a key, ID, and link for each advance line. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.
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.
key required | string System-assigned unique key for the advance line. Example: 99 |
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
key required | string System-assigned unique key for the advance line. Example: 99 |
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
key required | string System-assigned unique key for the advance line. Example: 99 |
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
key required | string System-assigned unique key for the advance line. Example: 99 |
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
}
}