Advances allow you to make a payment to a vendor in advance of receiving a bill. For example, if a vendor requires an up-front deposit, create an advance payment and post it to an established prepayment account.
Returns a collection with a key, ID, and link for each advance. 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": "625510",
- "id": "625510",
- "href": "/objects/accounts-payable/advance/625510"
}, - {
- "key": "558105",
- "id": "558105",
- "href": "/objects/accounts-payable/advance/558105"
}, - {
- "key": "558543",
- "id": "558543",
- "href": "/objects/accounts-payable/advance/558543"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new advance.
Subscription | Accounts Payable |
---|---|
Configuration | Companies with multiple base currencies must create advances at the entity level. |
User type | Business |
Permissions | List, View, Add AP advances |
paymentMethod required | string Payment method for the AP advance. A payment method for AP advances defines how funds are transferred to a vendor, which determines the approval process and workflow steps needed to complete the advance payment. Example: "printedCheck" | ||||||||||||||
required | object Financial account from which the reconciliation is done. | ||||||||||||||
| |||||||||||||||
advanceDate required | string <date> Date the advance payment was made. Example: "2021-01-23" | ||||||||||||||
referenceNumber | string or null A number, such as a purchase order or account number, useful for searches or reports. This number appears on the GL Details report and is printed on checks and vendor stubs. Example: "INV-902852" | ||||||||||||||
description | string or null Description of the AP advance. Example: "Computer Hardware & Software Expenses 03/01/20 - 08/31/21 Subscription charges." | ||||||||||||||
object | |||||||||||||||
| |||||||||||||||
dueDate | string <date> Due date for the AP advance. Example: "2021-01-23" | ||||||||||||||
object | |||||||||||||||
| |||||||||||||||
isSystemGenerated | string Default: "false" Indicates whether the advance record is created by the system. A value of Example: "true" | ||||||||||||||
object Currency details for this AP advance. | |||||||||||||||
| |||||||||||||||
object Supporting document ID for this attachment. | |||||||||||||||
| |||||||||||||||
object Vendor associated with the AP advance. | |||||||||||||||
| |||||||||||||||
Array of objects Line items of the advance. | |||||||||||||||
Array
|
Created
Bad Request
{- "description": "Advance for new equipment",
- "paymentMethod": "cash",
- "financialEntity": {
- "id": "BOA"
}, - "advanceDate": "2023-07-23",
- "vendor": {
- "id": "1099 Int"
}, - "lines": [
- {
- "baseAmount": "12.34",
- "memo": "Advance payment to vendor for retainer fee - to be applied against future invoices.",
- "txnAmount": "1.23",
- "dimensions": {
- "department": {
- "id": "11"
}, - "location": {
- "id": "1"
}, - "project": {
- "id": "8"
}, - "customer": {
- "id": "1"
}, - "vendor": {
- "id": "1099 Int"
}, - "employee": {
- "id": "1"
}, - "item": {
- "id": "1"
}, - "class": {
- "id": "3"
}
}, - "glAccount": {
- "id": "6000"
}
}
]
}
{- "ia::result": {
- "key": "625530",
- "id": "625530",
- "href": "/objects/accounts-payable/advance/625530"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified advance.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View AP advances |
key required | string System-assigned unique key for the advance. |
OK
Bad Request
{- "ia::result": {
- "id": "20",
- "key": "20",
- "recordType": "pr",
- "paymentMethod": "eft",
- "description": null,
- "vendor": {
- "name": "1099 Int",
- "id": "1099 Int",
- "key": "43",
- "totalDue": "-120.00",
- "href": "/objects/accounts-payable/vendor/43"
}, - "totalEntered": "120.00",
- "paymentInformation": {
- "totalPaid": "0.00",
- "totalSelected": "0.00",
- "paidDate": "2024-05-20",
- "txnTotalPaid": "0.00",
- "txnTotalSelected": "0.00"
}, - "totalDue": "120.00",
- "state": "advancePaid",
- "audit": {
- "createdDateTime": "2024-05-20T00:00:00Z",
- "modifiedDateTime": "2024-05-20T08:39:25Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "entity": {
- "id": "1",
- "key": "1",
- "name": "United States of America"
}, - "dueDate": "2024-05-20",
- "referenceNumber": "Advace for 1099 Int",
- "reconciliationGroup": {
- "cleared": "false",
- "clearingDate": null
}, - "isSystemGenerated": "false",
- "currency": {
- "txnCurrency": "USD",
- "baseCurrency": "USD",
- "exchangeRate": {
- "date": null,
- "typeId": null,
- "rate": null
}
}, - "txnTotalEntered": "120.00",
- "txnTotalDue": "120.00",
- "location": {
- "key": "1"
}, - "financialEntity": {
- "id": "BOA"
}, - "advanceDate": "2024-05-20",
- "attachment": {
- "id": "Invc-001",
- "key": "2",
- "href": "/objects/company-config/attachment/2"
}, - "lines": [
- {
- "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"
}
], - "href": "/objects/accounts-payable/advance/20"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing advance by setting field values. Any fields not provided remain unchanged. You can only update advances in a draft state or advances that were declined during the approval process.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Edit AP advances |
key required | string System-assigned unique key for the advance. |
paymentMethod | string Payment method for the AP advance. A payment method for AP advances defines how funds are transferred to a vendor, which determines the approval process and workflow steps needed to complete the advance payment. Example: "printedCheck" | ||||||||||||||
referenceNumber | string or null A number, such as a purchase order or account number, useful for searches or reports. This number appears on the GL Details report and is printed on checks and vendor stubs. Example: "INV-902852" | ||||||||||||||
description | string or null Description of the AP advance. Example: "Computer Hardware & Software Expenses 03/01/20 - 08/31/21 Subscription charges." | ||||||||||||||
advanceDate | string <date> Date the advance payment was made. Example: "2021-01-23" | ||||||||||||||
object | |||||||||||||||
| |||||||||||||||
dueDate | string <date> Due date for the AP advance. Example: "2021-01-23" | ||||||||||||||
object Financial account from which the reconciliation is done. | |||||||||||||||
| |||||||||||||||
object | |||||||||||||||
| |||||||||||||||
isSystemGenerated | string Default: "false" Indicates whether the advance record is created by the system. A value of Example: "true" | ||||||||||||||
object Currency details for this AP advance. | |||||||||||||||
| |||||||||||||||
object Supporting document ID for this attachment. | |||||||||||||||
| |||||||||||||||
object Vendor associated with the AP advance. | |||||||||||||||
| |||||||||||||||
Array of objects Line items of the advance. | |||||||||||||||
Array
|
OK
Bad Request
{- "description": "Updated description of advance"
}
{- "ia::result": {
- "key": "625529",
- "id": "625529",
- "href": "/objects/accounts-payable/advance/625529"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes an advance. Only draft advances can be deleted.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Delete AP advances |
key required | string System-assigned unique key for the advance. |
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" | ||||||||
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 response. Example: 100 |
OK
Bad Request
{- "object": "accounts-payable/advance",
- "filters": [
- {
- "$eq": {
- "state": "draft"
}
}
], - "fields": [
- "key",
- "id",
- "description",
- "referenceNumber",
- "totalEntered",
- "advanceDate",
- "state",
- "vendor.id",
- "vendor.name"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "23",
- "id": "23",
- "description": "Computer Hardware & Software Expenses 03/01/20 - 08/31/21 Subscription charges.",
- "referenceNumber": "INV-902852",
- "totalEntered": "100.20",
- "advanceDate": "2021-01-23",
- "state": "draft",
- "vendor": {
- "id": "Vendor_01",
- "name": "Logic Solutions"
}
}, - {
- "key": "24",
- "id": "24",
- "description": "Office Supplies Advance",
- "referenceNumber": "ADV-902853",
- "totalEntered": "200.50",
- "advanceDate": "2021-02-01",
- "state": "draft",
- "vendor": {
- "id": "Vendor_02",
- "name": "Office Supplies Inc."
}
}, - {
- "key": "25",
- "id": "25",
- "description": "Travel Expenses Advance",
- "referenceNumber": "ADV-902854",
- "totalEntered": "150.75",
- "advanceDate": "2021-03-01",
- "state": "draft",
- "vendor": {
- "id": "Vendor_03",
- "name": "Travel Corp."
}
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}