Ir para a navegação

Get Generation Costs

Read the recorded costs for a generation. Credit amounts are USD face value, not cash paid. Metered amounts exclude invoice adjustments and tax. A null total means one or more components are pending or unavailable. This endpoint does not estimate prices or change billing.

Autenticação

x-api-keystring
Autenticação de chave de API via cabeçalho

Parâmetros de caminho

idstringObrigatório
A unique identifier for the generation.

Resposta

This endpoint returns an object.
generationIdstring
generationStatusstring
currencystring
Always USD.
availabilityenum
Valores permitidos:
totalCostUsdstring or null
Total as a decimal USD string. Null if any component is pending or unavailable.
knownSubtotalUsdstring
Sum of available amounts. This may be less than the final total.
retryAfterSecondsinteger or null
Suggested wait before checking again, when provided.
componentslist of objects
excludedCostslist of strings
Costs excluded from this response.

Erros

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error