← Technical API reference

Frontend module · STATIC DECLARATIONS

Invoice Api client API reference · mansoq-web-teleicu

7 client route/call declarations with path parameters, named payload/response types and source references. Exact server acceptance and permissions require the matched backend contract.

Static API contract — behavior review pending. Source baseline f6e9f05f76d4.

Enable JavaScript to inspect structured operation, parameter, schema and permission evidence. Download this reference and its evidence.

Client contract scope

These 7 declarations come from repositories/teleicu/mansoq-web-teleicu/src/types/billing/invoice/invoiceApi.ts. Client types and noAuth flags describe the caller; they do not authorize a server action. Dynamic paths and missing backend matches are retained as review work, not repaired into invented endpoints.

Operation map

Client method HTTP method Path pattern Resolution
default.listInvoice GET /api/v1/facility/{facilityId}/invoice/ literal
default.retrieveInvoice GET /api/v1/facility/{facilityId}/invoice/{invoiceId}/ literal
default.createInvoice POST /api/v1/facility/{facilityId}/invoice/ literal
default.updateInvoice PUT /api/v1/facility/{facilityId}/invoice/{invoiceId}/ literal
default.cancelInvoice POST /api/v1/facility/{facilityId}/invoice/{invoiceId}/cancel_invoice/ literal
default.lockInvoice POST /api/v1/facility/{facilityId}/invoice/{invoiceId}/lock/ literal
default.unlockInvoice POST /api/v1/facility/{facilityId}/invoice/{invoiceId}/unlock/ literal

default.listInvoice

GET /api/v1/facility/{facilityId}/invoice/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId. Transport strings are declared here; semantic identifier types require the server contract.

Declared default query fields: ordering (string). These are defaults observed at this route object, not an exhaustive query allowlist.

response type: PaginatedResponse<InvoiceList>. client-side declaration; not proof of accepted server payload.

PaginatedResponse declared fields:

Field Type Required Description
count number true —
results TItem[] true —

InvoiceList declared fields:

Field Type Required Description
total_net string true —
total_gross string true —
locked boolean true —
created_date string true —
modified_date string true —
account AccountRead true —
is_refund boolean true —

Composed/inherited schema references: InvoiceBase. Exact generic composition is retained in the structured reference and requires server-side confirmation.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.retrieveInvoice

GET /api/v1/facility/{facilityId}/invoice/{invoiceId}/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, invoiceId. Transport strings are declared here; semantic identifier types require the server contract.

response type: InvoiceRead. client-side declaration; not proof of accepted server payload.

InvoiceRead declared fields:

Field Type Required Description
charge_items ChargeItemRead[] true —
total_price_components MonetaryComponent[] true —
payment_reconciliations PaymentReconciliationRead[] false —
created_by UserReadMinimal true —
updated_by UserReadMinimal true —
payments PaymentReconciliationRead[] true —
total_payments string true —
credit_notes PaymentReconciliationRead[] true —
total_credit_notes string true —

Composed/inherited schema references: InvoiceList. Exact generic composition is retained in the structured reference and requires server-side confirmation.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.createInvoice

POST /api/v1/facility/{facilityId}/invoice/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId. Transport strings are declared here; semantic identifier types require the server contract.

request type: InvoiceCreate. client-side declaration; not proof of accepted server payload.

InvoiceCreate declared fields:

Field Type Required Description
account string true —
charge_items string[] true —

Composed/inherited schema references: InvoiceBase. Exact generic composition is retained in the structured reference and requires server-side confirmation.

response type: InvoiceRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.updateInvoice

PUT /api/v1/facility/{facilityId}/invoice/{invoiceId}/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, invoiceId. Transport strings are declared here; semantic identifier types require the server contract.

request type: InvoiceCreate. client-side declaration; not proof of accepted server payload.

response type: InvoiceRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.cancelInvoice

POST /api/v1/facility/{facilityId}/invoice/{invoiceId}/cancel_invoice/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, invoiceId. Transport strings are declared here; semantic identifier types require the server contract.

request type: InvoiceCancel. client-side declaration; not proof of accepted server payload.

InvoiceCancel declared fields:

Field Type Required Description
reason string true —

response type: InvoiceRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.lockInvoice

POST /api/v1/facility/{facilityId}/invoice/{invoiceId}/lock/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, invoiceId. Transport strings are declared here; semantic identifier types require the server contract.

response type: InvoiceRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.unlockInvoice

POST /api/v1/facility/{facilityId}/invoice/{invoiceId}/unlock/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, invoiceId. Transport strings are declared here; semantic identifier types require the server contract.

response type: InvoiceRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

Pinned source evidence

Links require access to the private source repository.