Docs
Get Composite Cost
GET /resourceTypes/{resourceTypeId}/composite-cost?variantId={variantId}
GET
/resourceTypes/{resourceTypeId}/composite-cost?variantId={variantId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
The rolled-up cost a composite's rate card shows in place of its own cost (R7). Each component's card is its pinned variant's, else its target type's default. Rates are summed by state and period, times the component quantity. Minimums and clocks aren't rolled up. variantId is optional; without it the base variant applies.
Requires
ResourceTypeDatabase.Read permission.Response
200 OK with { rows: [{ resourceStateId, period, costFixed, costVariable, isPartial }], missing: [{ componentId, label }] }. isPartial is true when a component has no card or no rate at that state and period.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | The type isn't composite. |
| 404 | Type or variant not found. |
| 403 | Missing permission. |