GET/resourceTypes/{resourceTypeId}/composite-cost
Returns the rolled-up cost a composite's rate card shows in place of its own cost. 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 are not rolled up. isPartial marks a row where a component has no
card or no rate at that state and period, and missing names those components. variantId is optional; without
it the base variant applies. Fails for a type that is not composite.
Path Parameters
| Field | Type | Required | Description |
|---|
| resourceTypeId | uuid | Required | |
Query Parameters
| Field | Type | Required | Description |
|---|
| variantId | uuid | Optional | |
Response
| Field | Type | Description |
|---|
| rows | GetCompositeCostResponseRow[]| null | |
| missing | GetCompositeCostResponseMissingComponent[]| null | |
GetCompositeCostResponseRow
| Field | Type | Description |
|---|
| resourceStateId | uuid | |
| period | string| null | |
| costFixed | number | |
| costVariable | number | |
| isPartial | boolean | |
GetCompositeCostResponseMissingComponent
| Field | Type | Description |
|---|
| componentId | uuid | |
| label | string| null | |