Payment Term Groups (PaymentTermGroup) aggregate individual payment terms into macro categories (e.g., CONTADO, CRÉDITO, CONSIGNACIÓN) for reporting, credit limit control, and presale policy validation.
/v1/base/common/payment-term-groups
| Header | Type | Description |
|---|---|---|
Authorization |
string |
Bearer <token> OAuth2 token. |
x-app-stage |
string |
Current tenant stage (dev, staging, prod). |
x-app-uid |
string |
Authenticated user UUID. |
| Parameter | Type | Default | Description |
|---|---|---|---|
companyId |
integer |
Required | Current operational company ID. |
view |
string |
A |
State filter: A, I, D, ALL. |
search |
string |
- | Filter by group name. |
GET /v1/base/common/payment-term-groups?companyId=1&view=A
200 OK{
"success": true,
"message": "Proceso realizado correctamente",
"data": [
{
"id": 1,
"company_id": 1,
"code": "GRP-CONTADO",
"name": "CONDICIONES DE CONTADO",
"is_credit": false,
"status": "A"
},
{
"id": 2,
"company_id": 1,
"code": "GRP-CREDITO",
"name": "CONDICIONES DE CRÉDITO",
"is_credit": true,
"status": "A"
}
]
}
Fast autocomplete endpoint for search boxes and inputs.
GET /v1/base/common/payment-term-groups/autocomplete?companyId=1&search=cred
200 OK{
"success": true,
"data": [
{ "id": 2, "value": "CONDICIONES DE CRÉDITO" }
]
}
POST /v1/base/common/payment-term-groups?companyId=1
Content-Type: application/json
{
"code": "GRP-CONSIGNA",
"name": "CONDICIONES DE CONSIGNACIÓN",
"is_credit": true
}
GET /v1/base/common/payment-term-groups/2?companyId=1
PUT /v1/base/common/payment-term-groups/2?companyId=1
DELETE /v1/base/common/payment-term-groups/2?companyId=1
PUT /v1/base/common/payment-term-groups/2/restore?companyId=1