{
    "_captured_when": "2026-05-29 — ai_agent permission baseline. Lines come through inline on /supplierinvoices/{id} so this 403 is informational only and doesn't block any current workflow. If a future skill needs the dedicated /lines endpoint, ai_agent needs an additional permission grant.",
    "_curl": "curl -H 'DOLAPIKEY: <key>' https://erp.arcodange.lab/api/index.php/supplierinvoices/1/lines",
    "_http_status": 403,
    "error": {
        "code": 403,
        "message": "Forbidden"
    },
    "debug": {
        "source": "api_supplier_invoices.class.php:614 at call stage",
        "stages": {
            "success": ["get", "route", "negotiate", "authenticate", "validate"],
            "failure": ["call", "message"]
        }
    }
}
