Consulta um detalhamento diário de custos por instância ou item faturável.
Experimente agora
Testar
Autorização RAM
Sintaxe da solicitação
POST /api/v1/dailyBills/sumByItem HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| body |
object |
Não |
||
| projectNames |
array |
Não |
||
|
string |
Não |
|||
| startDate |
integer |
Não |
||
| endDate |
integer |
Não |
||
| statsType |
string |
Não |
||
| types |
array |
Não |
||
|
string |
Não |
|||
| pageNumber |
integer |
Não |
||
| pageSize |
integer |
Não |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| requestId |
string |
O identificador exclusivo da solicitação. |
|
| httpCode |
integer |
O código de status HTTP. |
|
| data |
object |
Os dados da resposta. |
|
| itemSummaryBills |
array<object> |
Uma matriz de resumos de custos no nível do item. |
|
|
array<object> |
Um resumo de custos para um único item faturável. |
||
| itemName |
string |
The name of the billable item. |
|
| totalCost |
string |
The total cost of the item. |
|
| currency |
string |
The currency of the cost. |
|
| percentage |
number |
The item's percentage of the total cost. |
|
| specCode |
string |
The specification code of the item. |
|
| dailySumBills |
array<object> |
An array of daily cost summaries for the item. |
|
|
array<object> |
A daily cost summary for the item. |
||
| dateTime |
string |
The date. Format: YYYYMMDD. |
|
| cost |
string |
The cost for the day. |
|
| currency |
string |
The currency of the cost. |
|
| itemBills |
array<object> |
An array of detailed bills for the item on the specified day. |
|
|
object |
A detailed bill for the item. |
||
| itemName |
string |
The name of the billable item. |
|
| cost |
string |
The cost of the item. |
|
| currency |
string |
The currency of the cost. |
|
| percentage |
number |
The item's percentage of the daily total cost. |
|
| totalCount |
integer |
O número total de entradas retornadas. |
|
| pageNumber |
integer |
O número da página atual. |
|
| pageSize |
integer |
O número de entradas por página. |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "",
"httpCode": 0,
"data": {
"itemSummaryBills": [
{
"itemName": "",
"totalCost": "",
"currency": "",
"percentage": 0,
"specCode": "",
"dailySumBills": [
{
"dateTime": "",
"cost": "",
"currency": "",
"itemBills": [
{
"itemName": "",
"cost": "",
"currency": "",
"percentage": 0
}
]
}
]
}
],
"totalCount": 0,
"pageNumber": 0,
"pageSize": 0
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.