An AP term is a rule (such as net 30) that a vendor establishes for extending credit to your company. AP terms can be associated with AP transactions or with specific vendors.
Get AP Term Object Definition
lookup
List all the fields and relationships for the AP term 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> <field>RECORDNO</field> <descending/> </order>
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>
Specify the returnformat for the response: xml (default), json, or csv <returnformat>json</returnformat>
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 Terms (Legacy)
readByQuery
Parameters
Name
Required
Type
Description
object
Required
string
Use APTERM
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 Term
read
Parameters
Name
Required
Type
Description
object
Required
string
Use APTERM
keys
Required
string
Comma-separated list of object RECORDNO 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:
xml (default)
json
csv
Get AP Term by ID
readByName
Parameters
Name
Required
Type
Description
object
Required
string
Use APTERM
keys
Required
string
Comma-separated list of object NAME 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:
xml (default)
json
csv
Create AP Term (Legacy)
create_apterm
Parameters
Name
Required
Type
Description
name
Required
string
Term name
description
Optional
string
Description
status
Optional
string
Term status. Use active for Active otherwise use inactive for Inactive. (Default: active)
due
Optional
object
Due
discount
Optional
object
Discount
disccalcon
Optional
string
Calculate discount on. Use either Line items total or Bill total. (Default: Bill total).
penalty
Optional
object
Penalty
due
Name
Required
Type
Description
dueday
Optional
integer
Due day
duefrom
Optional
string
Due from. Use from invoice/bill date, of the month of invoice/bill date, of next month from invoice/bill date, of 2nd month from invoice/bill date, of 3rd month from invoice/bill date, of 4th month from invoice/bill date, of 5th month from invoice/bill date, or of 6th month from invoice/bill date. (Default: from invoice/bill date).
discount
Name
Required
Type
Description
discday
Optional
integer
Discount day
discfrom
Optional
string
Due from. Use from invoice/bill date, of the month of invoice/bill date, of next month from invoice/bill date, of 2nd month from invoice/bill date, of 3rd month from invoice/bill date, of 4th month from invoice/bill date, of 5th month from invoice/bill date, or of 6th month from invoice/bill date. (Default: from invoice/bill date).
discamount
Optional
currency
Discount amount
discpercamn
Optional
number
Discount amount type. Use either $ or %. (Default: $)
discgracedays
Optional
integer
Discount grace days
penalty
Name
Required
Type
Description
pen_type
Optional
string
Cycle. Use No Penalty, Daily, Weekly, Biweekly, Monthly, Bimonthly, Quarterly, Half yearly, or Annually. (Default: No Penalty)
penamount
Optional
currency
Penalty amount
penpercamn
Optional
number
Penalty percent. Use either $ or %. (Default: $)
pengracedays
Optional
integer
Penalty grace days
Update AP Term (Legacy)
update_apterm
Parameters
Name
Required
Type
Description
name
Required
string
Term name to update
description
Optional
string
Description
status
Optional
string
Term status. Use active for Active otherwise use inactive for Inactive.
due
Optional
object
Due
discount
Optional
object
Discount
disccalcon
Optional
string
Calculate discount on. Use either Line items total or Bill total.
penalty
Optional
object
Penalty
due
Name
Required
Type
Description
dueday
Optional
integer
Due day
duefrom
Optional
string
Due from. Use from invoice/bill date, of the month of invoice/bill date, of next month from invoice/bill date, of 2nd month from invoice/bill date, of 3rd month from invoice/bill date, of 4th month from invoice/bill date, of 5th month from invoice/bill date, or of 6th month from invoice/bill date.
discount
Name
Required
Type
Description
discday
Optional
integer
Discount day
discfrom
Optional
string
Due from. Use from invoice/bill date, of the month of invoice/bill date, of next month from invoice/bill date, of 2nd month from invoice/bill date, of 3rd month from invoice/bill date, of 4th month from invoice/bill date, of 5th month from invoice/bill date, or of 6th month from invoice/bill date.
discamount
Optional
currency
Discount amount
discpercamn
Optional
number
Discount amount type. Use either $ or %.
discgracedays
Optional
integer
Discount grace days
penalty
Name
Required
Type
Description
pen_type
Optional
string
Cycle. Use No Penalty, Daily, Weekly, Biweekly, Monthly, Bimonthly, Quarterly, Half yearly, or Annually.