AP summaries are collections of the same type of transactions, grouped together for processing.


Get Bill Summary Object Definition

lookup

List all the fields and relationships for the bill summary object:

<lookup>
    <object>APBILLBATCH</object>
</lookup>

Parameters

Name Required Type Description
object Required string Use APBILLBATCH

List Bill Summaries

query

List the record number for each active and open bill summary:

<query>
    <object>APBILLBATCH</object>
    <select>
        <field>RECORDNO</field>
    </select>
    <filter>
        <and>
            <equalto>
                <field>STATUS</field>
                <value>active</value>
            </equalto>
            <equalto>
                <field>OPEN</field>
                <value>Open</value>
            </equalto>
        </and>
    </filter>
</query>

Parameters

Name Required Type Description
object Required string Use APBILLBATCH
select Required sequence One or more field names and an optional aggregate function such as count or sum. Returning all fields is not supported.
filter Optional object Query filter 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).
orderby Optional object Provide an order element with a field name and choose an ascending or descending sort order, for example:
<order>
        <field>RECORDNO</field>
        <descending/>
</order>
options Optional object Set the caseinsensitive element to true for a case-insensitive query:
    <caseinsensitive>true</caseinsensitive>
In a multi-entity company, set the showprivate element to true to query data in private entities:
   <showprivate>true</showprivate>
pagesize Optional integer Custom page size between 1 and 2000 items (Default: 100)
offset Optional integer Point at which to start indexing into records (Default: 0)

List Bill Summaries (Legacy readByQuery)

readByQuery

List active and open bill summaries:

<readByQuery>
    <object>APBILLBATCH</object>
    <fields>*</fields>
    <query>STATUS = 'T' AND OPEN = 'T'</query>
    <pagesize>100</pagesize>
</readByQuery>

Parameters

Name Required Type Description
object Required string Use APBILLBATCH
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)

List Bill Summaries (Legacy get_list)

get_list

<get_list object="billbatch" maxitems="10">
</get_list>

Parameters

Name Required Type Description
object Required string Use billbatch
start Optional integer Start at item, zero-based integer
maxitems Optional integer Max items to return
showprivate Optional boolean Show entity private records if running this at top level. Use either true or false. (Default: false)
filter Optional object Filter(s) to use in list
sorts Optional sortfield[] Field(s) to sort by in response
fields Optional field[] Field(s) to return in response

filter

Name Required Type Description
logical Optional object Logical filter. Required if not using expression.
expression Optional object Expression filter. Required if not using logical.

logical

Name Required Type Description
logical_operator Required string Operator. Use either and or or.
object Optional string Object of operator
Logical Filter/Expression Required (logical | expression)[1...n] Additional logical objects or expressions to filter by

expression

Name Required Type Description
field Required string Field
operator Required string Operator
value Required string Value. Use either =, !=, <, <=, >=, >, like or is null.

sortfield

Name Required Type Description
order Required string Sort by order. Use either asc or desc.

Get Bill Summary

read

<read>
    <object>APBILLBATCH</object>
    <keys>1</keys>
    <fields>*</fields>
</read>

Parameters

Name Required Type Description
object Required string Use APBILLBATCH
keys Required string Summary RECORDNO to get
fields Optional string Comma-separated list of fields on the object to get. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value.

Create Bill Summary (Legacy)

create_billbatch

<create_billbatch>
    <batchtitle>Bills for 2017 Week 03</batchtitle>
    <datecreated>
        <year>2017</year>
        <month>01</month>
        <day>20</day>
    </datecreated>
</create_billbatch>

Parameters

Name Required Type Description
batchtitle Required string Bill summary title
datecreated Required object GL posting date

datecreated

Name Required Type Description
year Required string Year yyyy
month Required string Month mm
day Required string Day dd

List AP Adjustment Summaries (Legacy)

get_list

<get_list object="apadjustmentbatch" maxitems="10">
</get_list>

Parameters

Name Required Type Description
object Required string Use apadjustmentbatch
start Optional integer Start at item, zero-based integer
maxitems Optional integer Max items to return
showprivate Optional boolean Show entity private records if running this at top level. Use either true or false. (Default: false)
filter Optional object Filter(s) to use in list
sorts Optional sortfield[] Field(s) to sort by in response
fields Optional field[] Field(s) to return in response

filter

Name Required Type Description
logical Optional object Logical filter. Required if not using expression.
expression Optional object Expression filter. Required if not using logical.

logical

Name Required Type Description
logical_operator Required string Operator. Use either and or or.
object Optional string Object of operator
Logical Filter/Expression Required (logical | expression)[1...n] Additional logical objects or expressions to filter by

expression

Name Required Type Description
field Required string Field
operator Required string Operator
value Required string Value. Use either =, !=, <, <=, >=, >, like or is null.

sortfield

Name Required Type Description
order Required string Sort by order. Use either asc or desc.

Create AP Adjustment Summary (Legacy)

<create_apadjustmentbatch>
    <batchtitle>AP Adjustments for 2017 Week 03</batchtitle>
    <datecreated>
        <year>2017</year>
        <month>01</month>
        <day>20</day>
    </datecreated>
</create_apadjustmentbatch>

Parameters

Name Required Type Description
batchtitle Required string AP adjustment summary title
datecreated Required object GL posting date

datecreated

Name Required Type Description
year Required string Year yyyy
month Required string Month mm
day Required string Day dd

Provide feedback