Global Incidences (GlobalIncidence) provide an audit trail and annotation layer across any module in GOAL (Orders, Business Partners, Delivery Routes, Kardex adjustments, Invoices).
/v1/base/common/incidences
| 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. |
Retrieve the chronological timeline of incidents and observations attached to a specific entity.
GET /v1/base/common/incidences/{moduleName}/{entityId}?companyId=1
moduleName: The identifier of the domain module (e.g. business-partner, order, delivery-route, product).entityId: The primary ID of the target record.GET /v1/base/common/incidences/business-partner/1045?companyId=1
200 OK{
"success": true,
"message": "Incidencias obtenidas correctamente",
"data": [
{
"id": 512,
"company_id": 1,
"module_name": "business-partner",
"entity_id": 1045,
"type": "CREDIT_OVERLIMIT",
"title": "Solicitud de ampliación de línea",
"description": "Cliente solicitó incremento temporal a S/ 60,000 por campaña navideña.",
"severity": "MEDIUM",
"status": "OPEN",
"user": {
"id": 84,
"name": "Juan Pérez",
"email": "jperez@goal.pe"
},
"created_at": "2026-10-06T11:45:00.000Z"
}
]
}
Attach a new incident, observation, or discrepancy record to any entity.
POST /v1/base/common/incidences?companyId=1
Content-Type: application/json
{
"module_name": "business-partner",
"entity_id": 1045,
"type": "GEOLOCATION_DISCREPANCY",
"title": "Coordenadas fuera de rango de ruta",
"description": "El transportista reporta que el local comercial se ubica a 150m al norte del punto registrado.",
"severity": "LOW",
"metadata": {
"reported_latitude": -12.084100,
"reported_longitude": -76.972300,
"delivery_sheet_id": 9821
}
}
201 Created{
"success": true,
"message": "Incidencia registrada exitosamente",
"data": {
"id": 513,
"module_name": "business-partner",
"entity_id": 1045,
"created_at": "2026-10-06T18:35:00.000Z"
}
}