API Reference
Landed Costs
Freight and duty spread over a purchase invoice's lines.
2 endpoints· Auth: JWT or API Key
get
/api/v1/console/purchase-invoices/{id}/landed-costs JWT API KeyThe landed costs loaded onto one receipt
- Capability (any)
receive_purchaseorview_profit- API key scope
cap:receive_purchaseorcap:view_profit(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/{id}/landed-costs" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/purchase-invoices/{id}/landed-costs JWT API KeyLoad a landed cost
Moves money (a payable bill or a cash withdrawal) and stock value, so it is a money write: a machine caller must send `Idempotency-Key`.
- Capability
receive_purchase- API key scope
cap:receive_purchase(the key's owner must also hold the capability)- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"chargeType": "string",
"description": "string",
"amount": 0,
"currencyCode": "string",
"allocationMethod": "string",
"settlement": "string",
"chargeSupplierId": "00000000-0000-0000-0000-000000000000",
"paidFrom": "string",
"businessDate": "2026-11-27",
"purchaseInvoiceItemIds": [
"00000000-0000-0000-0000-000000000000"
]
}| chargeType string | — |
| description string | — |
| amount integer (int64) | Minor units of Panoptes.Application.DTOs.Requests.Purchasing.CreateLandedCostRequest.CurrencyCode (whole dinars for IQD). |
| currencyCode string | Defaults to the branch's base currency for cash, and must equal the carrier's own currency on account (the payable is paid like every bill from that supplier). |
| allocationMethod string | — |
| settlement string | — |
| chargeSupplierId string (uuid) | The carrier or broker owed the charge; defaults to the receipt's own supplier. |
| paidFrom string | `drawer` or `vault` for a cash settlement; defaults to the vault. |
| businessDate string (date) | Defaults to today; a past day must be open (period guard). |
| purchaseInvoiceItemIds string (uuid)[] | The receipt lines to load; empty or null = every accepted line. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/{id}/landed-costs" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"chargeType": "string",
"description": "string",
"amount": 0,
"currencyCode": "string",
"allocationMethod": "string",
"settlement": "string",
"chargeSupplierId": "00000000-0000-0000-0000-000000000000",
"paidFrom": "string",
"businessDate": "2026-11-27",
"purchaseInvoiceItemIds": [
"00000000-0000-0000-0000-000000000000"
]
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu