Hoppa till innehållet

Fakturor

The signed-in customer's invoices.

1 anrop GET Bas-URL https://api.erp.fluit.cloud/ecom

Autentisering, felkoder, rate limits, idempotens och paginering gäller alla anrop och står samlade under Kom igång.

GET /portal/invoices

List invoices

Returns invoices for the authenticated customer.

Frågeparametrar

Fält Typ
page integer
pageSize integer
status string

Svar

200 PortalInvoiceListResponse
Fält Typ
items PortalInvoice[] · nullable
page integer
pageSize integer
totalCount integer
429 Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
  • Retry-After — Seconds to wait before retrying.

Standardfel: 401 403 Felhantering

Exempel

curl
curl "https://api.erp.fluit.cloud/ecom/portal/invoices" \
  -H "Authorization: Bearer $SESSION_TOKEN" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web"
Svar 200
{
  "items": [
    {
      "balance": "299.00",
      "currencyCode": "SEK",
      "dueDate": "string",
      "id": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
      "invoiceDate": "string",
      "invoiceNumber": "INV-2026-0912",
      "paidAmount": "299.00",
      "status": "string",
      "totalAmount": "299.00",
      "totalVat": "299.00",
      "type": "string"
    }
  ],
  "page": 1,
  "pageSize": 50,
  "totalCount": 137
}

Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.

Scheman

Objekten som gruppens anrop refererar till. Fälttabellerna ovan går ett steg djupt och länkar hit i stället för att upprepa samma schema på varje endpoint.

PortalInvoice

PortalInvoiceListItem
Fält Typ
balance decimal
currencyCode string · nullable
dueDate string · nullable
id string(uuid)
invoiceDate string · nullable
invoiceNumber string · nullable
paidAmount decimal
status string · nullable
totalAmount decimal
totalVat decimal
type string · nullable