Saltar al contenido

Final cost report

Módulo Reports

GET/reports/final-cost-reportreports.finalCostReport

Final cost of one project by GL account: the gate 3 baseline plus approved change orders against posted actuals from the Universal Posting Line. A project without a baseline answers 422 NO_ANSWER, never zero. A rule that refuses the request returns 422 with `refusal` and `reason`.

  • Requiere la capacidad finance.budget.read.
  • Alcances de OAuth: finance.
  • Estados de error: 400, 401, 422, 429. Los errores son detalles de problema RFC 9457.

Parámetros de ruta y de consulta

reports.finalCostReport: Parámetros de ruta y de consulta
CampoTipoObligatorioDescripción
project_idstring (uuid)SíThe project reported on.

Respuesta 200: ReportRowPage

reports.finalCostReport: ReportRowPage
CampoTipoObligatorioDescripción
dataarray of ReportRowSíItems on this page, in the documented default order.
next_cursorstring | nullSíOpaque cursor for the next page; null on the last page.
{
  "data": [
    {
      "dimension": "5400",
      "budget": {
        "total_minor": 1250000,
        "currency": "USD",
        "unpriced_count": 2
      },
      "actual": {
        "total_minor": 1250000,
        "currency": "USD",
        "unpriced_count": 2
      }
    }
  ],
  "next_cursor": null
}

Ejemplos de código

curl -X GET "$XOS_BASE_URL/reports/final-cost-report" \
  -H "Authorization: Bearer $XOS_API_KEY"
const { data } = await xos.reports.finalCostReport();
response = xos.reports.final_cost_report()
xos reports final-cost-report