Create a date-driven term
Changed onCreates a date-driven term that sets the payment due on a specific day of the month and can optionally grant an early-payment discount before discountDayOfMonth. Use it when you need due dates tied to calendar days instead of a fixed number of days after the transaction.
Request
- Base URLhttps://api.conductor.is/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
The ID of the End-User to receive this request.
Request body
Example request
{
"name": "2% 5th Net 25th",
"isActive": true,
"dueDayOfMonth": 15,
"gracePeriodDays": 2,
"discountDayOfMonth": 5,
"discountPercentage": "10"
}Response
Returns the newly created date-driven term.
Example response
{
"id": "80000001-1234567890",
"objectType": "qbd_date_driven_term",
"createdAt": "2025-01-01T12:34:56+00:00",
"updatedAt": "2025-02-01T12:34:56+00:00",
"revisionNumber": "1721172183",
"name": "2% 5th Net 25th",
"isActive": true,
"dueDayOfMonth": 15,
"gracePeriodDays": 2,
"discountDayOfMonth": 5,
"discountPercentage": "10"
}Changes
- breaking
response property
discountDayOfMonthlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
discountPercentagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
gracePeriodDayslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200
- breaking
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - info
response property
discountDayOfMonthlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200 - info
response property
discountPercentagelist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200 - info
response property
gracePeriodDayslist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200
- breaking