← Technical API reference

Frontend module · STATIC DECLARATIONS

Account Api client API reference · mansoq-web

8 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 8 declarations come from repositories/platform/mansoq-web/src/types/billing/account/accountApi.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.listAccount GET /api/v1/facility/{facilityId}/account/ literal
default.retrieveAccount GET /api/v1/facility/{facilityId}/account/{accountId}/ literal
default.createAccount POST /api/v1/facility/{facilityId}/account/ literal
default.updateAccount PUT /api/v1/facility/{facilityId}/account/{accountId}/ literal
default.rebalanceAccount POST /api/v1/facility/{facilityId}/account/{accountId}/rebalance/ literal
default.setTags POST /api/v1/facility/{facilityId}/account/{external_id}/set_tags/ literal
default.removeTags POST /api/v1/facility/{facilityId}/account/{external_id}/remove_tags/ literal
default.defaultAccount POST /api/v1/facility/{facilityId}/account/default_account/ literal

default.listAccount

GET /api/v1/facility/{facilityId}/account/. 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<AccountBase>. client-side declaration; not proof of accepted server payload.

PaginatedResponse declared fields:

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

AccountBase declared fields:

Field Type Required Description
id string true —
status AccountStatus true —
billing_status AccountBillingStatus true —
name string true —
service_period Period true —
description string | null false —
extensions NamespacedExtensionData true —

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.retrieveAccount

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

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

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

AccountRead declared fields:

Field Type Required Description
patient PatientRead true —
calculated_at string false —
total_net string true —
total_gross string true —
total_paid string true —
total_balance string true —
total_billable_charge_items string true —
created_date string true —
tags TagConfig[] true —
primary_encounter EncounterRead true —

Composed/inherited schema references: AccountBase. 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.createAccount

POST /api/v1/facility/{facilityId}/account/. 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: AccountCreate. client-side declaration; not proof of accepted server payload.

AccountCreate declared fields:

Field Type Required Description
patient string true —

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

response type: AccountRead. 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.updateAccount

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

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

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

AccountUpdate declared fields:

Field Type Required Description
id string true —
patient string true —
primary_encounter string false —

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

response type: AccountRead. 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.rebalanceAccount

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

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

response type: AccountRead. 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.setTags

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

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

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

default.setTags.request declared fields:

Field Type Required Description
tags string[] true —

response type: AccountRead. 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.removeTags

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

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

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

default.removeTags.request declared fields:

Field Type Required Description
tags string[] true —

response type: AccountRead. 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.defaultAccount

POST /api/v1/facility/{facilityId}/account/default_account/. 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: object. client-side declaration; not proof of accepted server payload.

default.defaultAccount.request declared fields:

Field Type Required Description
patient string true —
facility string true —
encounter string true —

response type: AccountRead. 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.