Skip to content

PayTo

Payment terms

Every agreement carries a payment_terms object that defines what payments may be initiated against it. The type field selects one of four patterns, and the other fields available depend on that type.

typeDescription
fixedThe same fixed amount is debited each time.
variableThe amount varies each time, up to an optional maximum.
usage_basedUsage-based billing, up to an optional maximum.
balloonA recurring amount with distinct first and/or last payment amounts.

Fields by type

Fieldfixedvariableusage_basedballoon
typerequiredrequiredrequiredrequired
frequencyrequiredrequiredrequiredrequired
countoptionaloptionaloptionaloptional
amountrequiredrequired
max_amountoptionaloptional
first_payment_amountoptional
last_payment_amountoptional
first_payment_dateoptionaloptionaloptionaloptional
last_payment_dateoptionaloptionaloptionaloptional

Notes:

  • Amounts are integers in cents (1 to 1,000,000,000).
  • A field marked "—" is rejected for that term type.
  • count is the number of payments allowed per frequency period. With a non-adhoc frequency and no count, one payment per period is allowed; with adhoc frequency and no count, unlimited payments are allowed.
  • Payment dates use the Australia/Sydney timezone. When both are supplied, first_payment_date must be on or before last_payment_date, and both must fall within the agreement's validity window (start_date / end_date).