Get Capital Stack
GET
/api/canvas/{deal_id}/capital-stack
const url = 'https://example.com/api/canvas/example/capital-stack';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/canvas/example/capital-stack \ --header 'Authorization: Bearer <token>'Return the debt capital stack (tranches + subordination + maturities) for deal_id.
Returns 200 with available: false and empty arrays when the
property graph has no debt tranches for the deal (no debt schedule in
the workbook, or the parse-time hook was skipped). The UI renders the
empty state in that case.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”deal_id
required
Deal Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CapitalStackResponse
Top-level response for GET /canvas/{deal_id}/capital-stack.
object
deal_id
required
Deal Id
string
available
required
Available
boolean
tranches
required
Tranches
Array<object>
DebtTrancheRowA single debt tranche in the capital stack, senior-first by position.
object
position
required
Position
integer
entity_id
required
Entity Id
string
name
required
Name
string
tranche_count
required
Tranche Count
integer
subordination
required
Subordination
Array<object>
SubordinationEdgeA junior→senior subordination relationship between two tranches.
object
junior_entity_id
required
Junior Entity Id
string
senior_entity_id
required
Senior Entity Id
string
Examplegenerated
{ "deal_id": "example", "available": true, "tranches": [ { "position": 1, "entity_id": "example", "name": "example", "loan_instrument": "example", "loan_amount": 1, "interest_rate": 1, "rate_type": "example", "io_period_months": 1, "amortization_months": 1, "balloon_payment": 1, "total_debt_service_year1": 1, "maturity_date": "example", "maturity_year": 1 } ], "tranche_count": 1, "total_debt": 1, "earliest_maturity_year": 1, "subordination": [ { "junior_entity_id": "example", "senior_entity_id": "example" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}