Projects

Preview a project time invoice

Preview the invoice lines that invoicing the selected time would produce, without creating anything.

  • Entries that cannot be invoiced return 422 task_time_not_invoiceable.
  • Read-only POST: no Idempotency-Key needed.
post/companies/{company}/projects/{project}/time-invoices/preview

Request

  • Base URL: https://api.factuarea.com/v1
  • URL: https://api.factuarea.com/v1/companies/{company}/projects/{project}/time-invoices/preview
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

companystring uuid required

Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).

projectstring uuid required

Public identifier (UUID v7) of the project.

Headers

Factuarea-Versionstring date
Example:2026-06-01

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Request body

entry_idsstring[]

Concrete time entries to invoice (mutually exclusive with period).

grouping'per_task' | 'per_entry' | 'single_line' required

How the invoice lines are grouped.

Response

Example response

{
  "data": {
    "object": "task_time_invoice_preview",
    "project_id": "0193a4f2-7c20-7a11-8b52-4d6e8f0a2c01",
    "customer_id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a01",
    "customer_name": "Acme Soluciones SL",
    "grouping": "per_task",
    "lines": [
      {
        "description": "DEV-12 · Integrar la pasarela de pago en el checkout",
        "quantity": "3.5000",
        "unit": "HUR",
        "unit_price": "45.00",
        "amount": "157.50"
      },
      {
        "description": "DEV-14 · Corregir el cálculo del IVA en el carrito",
        "quantity": "3.0000",
        "unit": "HUR",
        "unit_price": "45.00",
        "amount": "135.00"
      }
    ],
    "total_seconds": 23400,
    "total_hours": "6.5000",
    "total_amount": "292.50",
    "entry_ids": [
      "0193a4f2-a1db-7fcc-8a6d-5c7d9e1f3b01",
      "0193a4f2-a1db-7fcc-8a6d-5c7d9e1f3b04"
    ],
    "warnings": []
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.