AI agent? Read this page as Markdown at /accounting/paymentterm/Create_a_paymentterm.md — append .md to any docs URL, or start from /llms.txt.
Create a paymentterm
POST/accounting/{connection_id}/paymentterm
Parameters
fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
Payload
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
term label, e.g. "Net 30"
descriptionstring
category enum
Valid values:
"STANDARD"
"DATE_DRIVEN"
"OTHER"
STANDARD (days-based) or DATE_DRIVEN (month-based)
is_activeboolean
due_daysnumber
(standard) days until payment is due
discount_daysnumber
(standard) days within which an early-pay discount applies
discount_percentnumber
(standard) early-pay discount rate
day_of_month_duenumber
(date-driven) day of month payment is due (1–31)
discount_day_of_monthnumber
(date-driven) pay before this day of month for the discount
due_next_month_daysnumber
(date-driven) if invoiced within N days of month-end, due next month
organization_idstring
Returns
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
term label, e.g. "Net 30"
descriptionstring
category enum
Valid values:
"STANDARD"
"DATE_DRIVEN"
"OTHER"
STANDARD (days-based) or DATE_DRIVEN (month-based)
is_activeboolean
due_daysnumber
(standard) days until payment is due
discount_daysnumber
(standard) days within which an early-pay discount applies
discount_percentnumber
(standard) early-pay discount rate
day_of_month_duenumber
(date-driven) day of month payment is due (1–31)
discount_day_of_monthnumber
(date-driven) pay before this day of month for the discount
due_next_month_daysnumber
(date-driven) if invoiced within N days of month-end, due next month
organization_idstring
const options = {
method: 'POST',
url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/paymentterm',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
fields: '',
raw: '',
}
};
const results = await axios.request(options); Are we missing anything? Let us know