The Lines API manages commercial merchandise lines (lines), grouping products into distinct operational segments (e.g. Cervezas, Gaseosas, Licores, Abarrotes) for sales reporting and distributor quotas.
/v1/inventory/master/lines
¶ Mandatory Headers
| 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 |
Active operating company ID. |
view |
string |
A |
State: A (Active), I (Inactive), D (Trashed), ALL. |
GET /v1/inventory/master/lines?companyId=1&view=A
{
"success": true,
"message": "Proceso realizado correctamente",
"data": [
{
"id": 8,
"company_id": 1,
"name": "LÍNEA CERVEZAS NACIONALES",
"code": "LIN-CERV-NAC",
"status": "A"
}
]
}
POST /v1/inventory/master/lines?companyId=1
Content-Type: application/json
{
"name": "LÍNEA AGUAS Y ENERGIZANTES",
"code": "LIN-AGUAS"
}
GET /v1/inventory/master/lines/8?companyId=1
PUT /v1/inventory/master/lines/8?companyId=1
DELETE /v1/inventory/master/lines/8?companyId=1
PUT /v1/inventory/master/lines/8/restore?companyId=1