Payment Terms
Define payment terms and credit periods for customer and supplier transactions.
Path Parameter:
:CODE (string) — payment terms codeEndpoints
GET
/termsList all payment terms
GET
/terms/:CODEGet single terms record by code
POST
/termsCreate new payment terms
PUT
/terms/:CODEUpdate payment terms
DELETE
/terms/:CODEDelete payment terms
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| code | string | Yes | Short payment terms code (e.g., 30D, 60D, COD). |
| description | string | Yes | Full description (e.g., 30 Days, 60 Days, Cash on Delivery). |
| termtype | string | No | Calculation type. 'A' = After (invoice date + termday = due date). Default: "A" |
| termday | integer | No | Number of days for payment due. Default: 0 |
| termmonth | integer | No | Number of months for payment due. Default: 0 |
| isactive | boolean | No | Active status flag. Default: true |
Examples
POST — Create Payment Terms
POST /terms
{
"code": "45D",
"description": "45 Days"
}POST — Create with Days
POST /terms
{
"code": "45D",
"description": "45 Days",
"termtype": "A",
"termday": 45
}PUT — Update Days
PUT /terms/45D
{
"termday": 60
}Response (200 OK)
{
"code": "45D",
"description": "45 Days",
"termtype": "A",
"termday": 60,
"termmonth": 0,
"isactive": true
}System Default Terms
GET /terms
Common defaults:
- "30 Days" (termday: 30)
- "60 Days" (termday: 60)
- "C.O.D." (termday: 0, cash on delivery)