Skip to content
API reference

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.

MethodPathSummaryAuthStatus
GET/v1/finance/documentsList my documentsConsumer sessionserved
GET/v1/finance/documents/{document_id}Get my documentConsumer sessionserved
POST/v1/finance/documents/{document_id}/credit-noteIssue credit noteOperator sessionserved
POST/v1/finance/documents/{document_id}/downloadGet document downloadConsumer sessionserved

GET /v1/finance/documents

List my documents.

Operation IDlistMyDocuments
AuthConsumer session (app user)
StatusServed

Responses

  • 200 Successful 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 IDgetMyDocument
AuthConsumer session (app user)
StatusServed

Parameters

NameInTypeRequiredNotes
document_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Responses

  • 200 Successful 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 IDissueCreditNote
AuthOperator session (console)
StatusServed
Idempotency-KeyRequired — see idempotency

Parameters

NameInTypeRequiredNotes
document_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Request body (application/json, required): ReasonRequest

Responses

  • 200 Successful 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 IDgetDocumentDownload
AuthConsumer session (app user)
StatusServed
Idempotency-KeyRequired — see idempotency

Parameters

NameInTypeRequiredNotes
document_idpathstringyesmin length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$

Responses

  • 200 Successful 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.