API Reference

Intercompany

Balances and settlements between the organisation's companies.

2 endpoints· Auth: JWT or API Key
get/api/v1/console/accounting/intercompany JWT API Key

The branch's 1160 / 2050 balances, its counterparties and its settlements

Capability (any)
view_glormanage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/intercompany" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/intercompany/settlements JWT API Key

Create settlements

Pay a counterparty: a journal in each branch's own ledger, keyed on the request's reference.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Request body

application/json
{
  "counterpartyBranchId": "00000000-0000-0000-0000-000000000000",
  "amountIqd": 0,
  "payFrom": "string",
  "receiveInto": "string",
  "reference": "00000000-0000-0000-0000-000000000000",
  "memo": "string"
}
counterpartyBranchId
string (uuid)
The branch being paid — the one carrying 1160 for this branch's debt.
amountIqd
integer (int64)
Base-currency minor units, strictly positive.
payFrom
string
`vault` (the safe) or `bank`.
receiveInto
string
`vault` (the counterparty's safe) or `bank`.
reference
string (uuid)
The client's idempotency key: a retried submit settles once.
memo
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/intercompany/settlements" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "counterpartyBranchId": "00000000-0000-0000-0000-000000000000",
  "amountIqd": 0,
  "payFrom": "string",
  "receiveInto": "string",
  "reference": "00000000-0000-0000-0000-000000000000",
  "memo": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu