← Technical API reference

Backend resource · STATIC DECLARATIONS

Payment Method Line API reference · mansoq-odoo-be

Static source contract for Payment Method Line: 2 declared or inherited operation mappings, schema/field evidence and authorization/refusal references. Deployment and behavioral review remain explicit.

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.

Declared route and availability

This resource is declared in mansoq-odoo-be at /api/{installed_plugin_prefix}/payment-method-line/. plugin/local mount; actual prefix and enablement require deployment verification A registered path and an indexed handler do not prove deployment availability, user permission or production readiness.

ViewSet for fetching payment method lines from Odoo.

Payment method lines represent available payment sources for Care of Accounts (charity, sponsor, fund payments on behalf of patients).

Usage: GET /api/v1/odoo/payment-method-line/ GET /api/v1/odoo/payment-method-line/?journal_type=credit

Operation map

Method Path Action Evidence
GET /api/{installed_plugin_prefix}/payment-method-line/ list declared/inherited method
GET /api/{installed_plugin_prefix}/payment-method-line/{external_id}/ retrieve declared/inherited method

list · GET

List payment method lines from Odoo filtered by journal type.

Query Parameters: journal_type (str): The care connector code to filter by. Default: 'credit' for Care of Accounts.

Returns: List of payment method lines with id, name, code, journal_id, journal_name

GET /api/{installed_plugin_prefix}/payment-method-line/ — action list. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
deployment mount installed_plugin_prefix deployment-selected mount prefix true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query journal_type not declared at read site not established

Authorization: no literal permission name was resolved in the bounded handler/helper traversal. Authentication, inherited policies, object/facility scoping and middleware still require review; this does not mean public access.

Declared refusal/error evidence: ValidationError (dynamic detail; inspect source).

retrieve · GET

Retrieve a specific payment method line by ID.

Path Parameters: pk (int): The ID of the payment method line

Returns: Payment method line details

GET /api/{installed_plugin_prefix}/payment-method-line/{external_id}/ — action retrieve. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
deployment mount installed_plugin_prefix deployment-selected mount prefix true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Authorization: no literal permission name was resolved in the bounded handler/helper traversal. Authentication, inherited policies, object/facility scoping and middleware still require review; this does not mean public access.

Declared refusal/error evidence: ValidationError (dynamic detail; inspect source).

Integration review checklist

Confirm the installed route and full schema; review authentication, organization/facility scoping, all accepted fields, value-state and date/time semantics, idempotency, pagination, response/exception branches and the allowed correction/reversal workflow. Test positive and negative cases with synthetic data. This source reference does not establish external certification or replace an illustrated user procedure.

Pinned source evidence

Links require access to the private source repository.