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.


List AP Terms

readByQuery

<readByQuery>
    <object>APTERM</object>
    <fields>*</fields>
    <query></query>
    <pagesize>100</pagesize>
</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. Illegal XML characters must be properly encoded. The following SQL operators are supported: <, >, >=, <=, =, like, not like, in, not in. When doing NULL comparisons: IS NOT NULL, IS NULL. Multiple fields may be matched using the AND and OR operators. Joins are not supported. Single quotes in any operands must be escaped with a backslash - For example, the value Erik's Deli would become 'Erik\'s Deli'.
pagesize Optional integer Custom page size between 1 and 1000 items (Default: 100)

Get AP Term

read

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

Parameters

Name Required Type Description
object Required string Use APTERM
keys Required string Object 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.

Get AP Term by Name

readByName

<readByName>
    <object>APTERM</object>
    <keys>N15</keys>
    <fields>*</fields>
</readByName>

Parameters

Name Required Type Description
object Required string Use APTERM
keys Required string Object NAME 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 AP Term (Legacy)

create_apterm

<create_apterm>
    <name>2-10 N30</name>
    <description>2%/10 net 30</description>
    <due>
        <dueday>30</dueday>
        <duefrom>from invoice/bill date</duefrom>
    </due>
    <discount>
        <discday>10</discday>
        <discfrom>from invoice/bill date</discfrom>
        <discamount>2</discamount>
        <discpercamn>%</discpercamn>
        <discgracedays></discgracedays>
    </discount>
    <disccalcon>Line items total</disccalcon>
    <penalty>
        <pen_type>Weekly</pen_type>
        <penamount>1</penamount>
        <penpercamn>%</penpercamn>
        <pengracedays></pengracedays>
    </penalty>
</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

<update_apterm name="2-10 N30">
    <description>2% discount if paid in 10 days, otherwise due in 30 days</description>
</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.
penamount Optional currency Penalty amount
penpercamn Optional number Penalty percent. Use either $ or %.
pengracedays Optional integer Penalty grace days

Delete AP Term (Legacy)

delete_apterm

<delete_apterm name="2-10 N30"></delete_apterm>

Parameters

Name Required Type Description
name Required string Term name to delete

Provide feedback