AR Retainage Releases
This object lets you release amounts retained on invoices 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 due from the customer. You can release some or all of the retainages due if there are still outstanding issues.
You must configure retainage in your company as described in the Sage Intacct product help.
AR Retainage Releases
Get AR Retainage Release Object Definition
lookup
List all the fields and relationships for the AR retainage release object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASE |
Query and List AR 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 ARRETAINAGERELEASE |
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 AR Invoice Lines with Retainages
query
For each AR invoice line for the given customer, provide its record number, the record number of the owning invoice, and the amount released and retained for that line.
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARINVOICEITEM |
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 AR Retainage Release Entries (Legacy)
readByQuery
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASEENTRY |
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 AR Retainage Release
read
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASE |
keys | Required | string | Comma-separated list of RECORDNO of the AR 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 AR Retainage Release
create
Create an AR retainage release for two invoice line items:
Parameters
Name | Required | Type | Description |
---|---|---|---|
ARRETAINAGERELEASE |
Required | object | Object to create |
ARRETAINAGERELEASE
Name | Required | Type | Description |
---|---|---|---|
DESCRIPTION | Required | string | Description for the AR 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 ) |
ARRETAINAGERELEASEENTRIES | Optional | ARRETAINAGERELEASEENTRY[0 .. n] |
Array of retainage release entries, each of which corresponds with an invoice line with retainages |
ARRETAINAGERELEASEENTRY
Name | Required | Type | Description |
---|---|---|---|
RETAINAGEINVOICEKEY | Required | string | Invoice record number with retainages to be released |
RETAINAGEINVOICEITEMKEY | Required | string | Invoice line record number |
TRX_AMOUNTRELEASED | Required | currency | Amount to release |
Update AR Retainage Release
When updating an AR 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 |
---|---|---|---|
ARRETAINAGERELEASE |
Required | object | Object to update |
ARRETAINAGERELEASE
Name | Required | Type | Description |
---|---|---|---|
RECORDNO | Required | string | Record number for the AR 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 |
ARRETAINAGERELEASEENTRIES | Optional | ARETAINAGERELEASEENTRY[0 .. n] |
Array of retainage release entries, each of which corresponds with an invoice line with retainages. This a complete replacement of the existing set. |
ARRETAINAGERELEASEENTRY
Name | Required | Type | Description |
---|---|---|---|
RETAINAGEINVOICEKEY | Required | string | Invoice record number with retainages to be released |
RETAINAGEINVOICEITEMKEY | Required | string | Invoice line record number |
TRX_AMOUNTRELEASED | Required | currency | Amount to release |
Delete AR Retainage Release
You can delete an AR retainage release that is in Draft
state.
delete
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASE |
keys | Required | string | Comma-separated list of RECORDNO of the ARRETAINAGERELEASE to delete |
AR Retainage Release Entries
Get AR Retainage Release Entry Object Definition
lookup
List all the fields and relationships for the AR retainage release entry object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASEENTRY |
Query and List AR Retainage Release Entries
query
List the record number and transaction amount released for each AR retainage release entry for the invoice with record number 19:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASEENTRY |
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 ) |
Get AR Retainage Release Entry
read
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use ARRETAINAGERELEASEENTRY |
keys | Required | string | Comma-separated list of RECORDNO of the AR 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:
|