API reference
6 operations in acquisition-costs. Raw spec: openapi.json.
GET
/api/v1/acquisition-costs/summaryGET /api/acquisition-costs/summary — base-currency totals per reporting class, optionally narrowed to an order, project, ticket or date window.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
purchase_order_id | query | — | No | |
project_id | query | — | No | |
ticket_id | query | — | No | |
from | query | — | No | |
to | query | — | No |
Responses
| Status | Description |
|---|---|
200 | |
422 | the date window is inverted |
Security: bearer
GET
/api/v1/acquisition-costs/{id}GET /api/acquisition-costs/{id}.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
404 | layer not visible in scope |
Security: bearer
POST
/api/v1/acquisition-costs/{id}/reversePOST /api/acquisition-costs/{id}/reverse — record the correcting document.
The reversal copies the split it reverses, negated, and reuses the rate the reversed layer locked, so the pair nets to zero in the base currency. It does not re-split: a reversal that apportioned again could land a cent somewhere the original did not, and the pair would no longer cancel.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
ReverseAcquisitionCostRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | layer not visible in scope |
409 | layer already reversed, or is itself a reversal |
422 | the correcting document was refused |
Security: bearer
GET
/api/v1/purchase-receipts/{id}/acquisition-costsGET /api/purchase-receipts/{id}/acquisition-costs.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
404 | receipt not visible in scope |
Security: bearer
POST
/api/v1/purchase-receipts/{id}/acquisition-costsPOST /api/purchase-receipts/{id}/acquisition-costs — record one charge document against a receipt and split it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
CreateAcquisitionCostRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | receipt or vendor not visible in scope |
409 | idempotency key reused or order not receivable |
422 | the charge or its split was refused |
Security: bearer
GET
/api/v1/purchase-receipts/{id}/valuationGET /api/purchase-receipts/{id}/valuation — receipt cost plus capitalised layers, per line and in total. Every amount comes from a stored snapshot, so two runs over the same receipt answer the same money.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
404 | receipt not visible in scope |
Security: bearer