AP Retainage Releases
This object lets you release amounts retained on AP bills until completion of a construction project.
After the details have been satisfactorily addressed by both the project owner and the construction company, you create a retainage release for the amount still owed to the vendor/subcontractor. You can release some or all of the owed retainages if there are still outstanding issues.
You must configure retainage in your company as described in the Sage Intacct product help.
AP Retainage Releases
Get AP Retainage Release Object Definition
lookup
List all the fields and relationships for the AP retainage release object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASE |
Query and List AP Retainage Releases
query
List the record number, description, and release date for each retainage release where the release date is between the given dates:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASE |
filter | Optional | object | Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL). |
select | Required | sequence | The names of the fields that you want included in the response, and an optional aggregate function such as count or sum . Returning all fields is not supported. |
orderby | Optional | object | Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> |
options | Optional | object | Query options:
|
pagesize | Optional | integer | Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100 ) |
offset | Optional | integer | Point at which to start indexing into records (Default: 0 ) |
Query and List AP Bill Lines with Retainages
query
For each AP bill line for the given vendor, provide its record number, the record number of the owning bill, and the amount released and retained for that line.
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APBILLENTRY |
filter | Optional | object | Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL). |
select | Required | sequence | The names of the fields that you want included in the response, and an optional aggregate function such as count or sum . Returning all fields is not supported. |
orderby | Optional | object | Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> |
options | Optional | object | Query options:
|
pagesize | Optional | integer | Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100 ) |
offset | Optional | integer | Point at which to start indexing into records (Default: 0 ) |
Response
The above function returns data structured like this:
Query and List AP Retainage Releases (Legacy)
readByQuery
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASEENTRY |
fields | Optional | string | Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value. |
query | Required | string | SQL-like query based on fields on the object. The following operators are supported: < , > , >= , <= , = , like , not like , in , not in , IS NOT NULL , IS NULL , AND , OR . Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli' ). Joins are not supported. |
pagesize | Optional | integer | Custom page size between 1 and 1000 items (Default: 100 ) |
Get AP Retainage Release
read
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASE |
keys | Required | string | Comma-separated list of RECORDNO of the AP retainage release to get |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|
Create AP Retainage Release
create
Create an AP retainage release for two bill line items:
Parameters
Name | Required | Type | Description |
---|---|---|---|
APRETAINAGERELEASE |
Required | object | Object to create |
APRETAINAGERELEASE
Name | Required | Type | Description |
---|---|---|---|
DESCRIPTION | Required | string | Description for the AP retainage release |
RELEASEDATE | Optional | string | Release date in format mm/dd/yyyy (Default: Today’s date) |
GLPOSTINGDATE | Optional | string | GL posting date in format mm/dd/yyyy (Default: Release date) |
STATE | Optional | string | State for the retainage release. Use Draft or Released (Default: Draft ) |
APRETAINAGERELEASEENTRIES | Optional | APRETAINAGERELEASEENTRY[0 .. n] |
Array of retainage release entries, each of which corresponds with a bill line with retainages |
APRETAINAGERELEASEENTRY
Name | Required | Type | Description |
---|---|---|---|
RETAINAGEBILLKEY | Required | string | Bill record number with retainages to be released |
RETAINAGEBILLITEMKEY | Required | string | Bill line record number |
TRX_AMOUNTRELEASED | Required | currency | Amount to release |
Update AP Retainage Release
When updating an AP retainage release to modify the entries, be aware that it is a complete replacement of the existing set. So, to add an entry, supply all the original ones and the new one. To delete an entry, supply only the ones you want to keep.
update
Parameters
Name | Required | Type | Description |
---|---|---|---|
APRETAINAGERELEASE |
Required | object | Object to update |
APRETAINAGERELEASE
Name | Required | Type | Description |
---|---|---|---|
RECORDNO | Required | string | Record number for the AP retainage release to update |
RELEASEDATE | Optional | string | Release date in format mm/dd/yyyy |
GLPOSTINGDATE | Optional | string | GL posting date in format mm/dd/yyyy |
STATE | Optional | string | State for the retainage release. Use Draft or Released |
APRETAINAGERELEASEENTRIES | Optional | APRETAINAGERELEASEENTRY[0 .. n] |
Array of retainage release entries, each of which corresponds with a bill line with retainages. This a complete replacement of the existing set. |
APRETAINAGERELEASEENTRY
Name | Required | Type | Description |
---|---|---|---|
RETAINAGEBILLKEY | Required | string | Bill record number with retainages to be released |
RETAINAGEBILLITEMKEY | Required | string | Bill line record number |
TRX_AMOUNTRELEASED | Required | currency | Amount to release |
Delete AP Retainage Release
You can delete an AP retainage release that is in Draft
state.
delete
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASE |
keys | Required | string | Comma-separated list of RECORDNO of the APRETAINAGERELEASE to delete |
AP Retainage Release Entries
Get AP Retainage Release Entry Object Definition
lookup
List all the fields and relationships for the AP retainage release entry object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASEENTRY |
Query and List AP Retainage Release Entries
query
List the record number and transaction amount released for each AP retainage release entry for the bill with record number 15:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASEENTRY |
filter | Optional | object | Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL). |
select | Required | sequence | The names of the fields that you want included in the response, and an optional aggregate function such as count or sum . Returning all fields is not supported. |
orderby | Optional | object | Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> |
options | Optional | object | Query options:
|
pagesize | Optional | integer | Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100 ) |
offset | Optional | integer | Point at which to start indexing into records (Default: 0 ) |
Query and List AP Retainage Release Entries (Legacy)
readByQuery
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASEENTRY |
fields | Optional | string | Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value. |
query | Required | string | SQL-like query based on fields on the object. The following operators are supported: < , > , >= , <= , = , like , not like , in , not in , IS NOT NULL , IS NULL , AND , OR . Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli' ). Joins are not supported. |
pagesize | Optional | integer | Custom page size between 1 and 1000 items (Default: 100 ) |
Get AP Retainage Release Entry
read
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use APRETAINAGERELEASEENTRY |
keys | Required | string | Comma-separated list of RECORDNO of the AP retainage release entry to get |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|