Intercompany
Intercompany transactions
Authentication
Requires session cookie (web app) or API key (x-api-key header). All endpoints are tenant-scoped via entityId.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/intercompany?entityId= | List IC transactions |
| POST | /api/intercompany | Create IC transaction |
List intercompany transactions
GET /api/intercompany?entityId={entityId}
Query params: entityId, counterpartyEntityId?, periodId?, status?, limit?, cursor?
Returns paginated intercompany transactions.
{
"transactions": [
{
"id": "ic_abc123",
"fromEntityId": "ent_1",
"toEntityId": "ent_2",
"amount": 50000,
"currency": "USD",
"status": "matched",
"createdAt": "2025-01-15T12:00:00Z"
}
],
"nextCursor": "eyJpZCI6ImljX2FiYzEyMyJ9"
}Create IC transaction
POST /api/intercompany
Body: { "entityId", "counterpartyEntityId", "amount", "currency", "memo?", "journalEntryId?" }