Finance API
Invoices and finance documents.
On this page
Contract version 1.1.0. 4 operations; 4 served, 0 specified only.
Note
"Served" means the endpoint exists in the runtime, not that it is enabled for your app. Provider-backed endpoints return 503 FEATURE_UNAVAILABLE until the matching connection is ready.
| Method | Path | Summary | Auth | Status |
|---|---|---|---|---|
| GET | /v1/finance/documents | List my documents | Consumer session | served |
| GET | /v1/finance/documents/{document_id} | Get my document | Consumer session | served |
| POST | /v1/finance/documents/{document_id}/credit-note | Issue credit note | Operator session | served |
| POST | /v1/finance/documents/{document_id}/download | Get document download | Consumer session | served |
GET /v1/finance/documents
List my documents.
| Operation ID | listMyDocuments |
| Auth | Consumer session (app user) |
| Status | Served |
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.
GET /v1/finance/documents/{document_id}
Get my document.
| Operation ID | getMyDocument |
| Auth | Consumer session (app user) |
| Status | Served |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
document_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Responses
200Successful operation —Invoice
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/finance/documents/{document_id}/credit-note
Issue credit note.
| Operation ID | issueCreditNote |
| Auth | Operator session (console) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
document_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Request body (application/json, required): ReasonRequest
Responses
200Successful operation —Invoice
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/finance/documents/{document_id}/download
Get document download. Authorize ownership, then issue expiring download; file URL not permanent public access.
| Operation ID | getDocumentDownload |
| Auth | Consumer session (app user) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
document_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Responses
200Successful operation — Envelope{ request_id, data, next_cursor? }(data shape not yet pinned in the contract)
Errors: 400 401 403 404 409 422 429 503 as problem details.