View a daily breakdown of costs by instance or billable item.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/dailyBills/sumByItem HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
||
| projectNames |
array |
No |
||
|
string |
No |
|||
| startDate |
integer |
No |
||
| endDate |
integer |
No |
||
| statsType |
string |
No |
||
| types |
array |
No |
||
|
string |
No |
|||
| pageNumber |
integer |
No |
||
| pageSize |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The unique identifier for the request. |
|
| httpCode |
integer |
The HTTP status code. |
|
| data |
object |
The response data. |
|
| itemSummaryBills |
array<object> |
An array of item-level cost summaries. |
|
|
array<object> |
A cost summary for a single billable item. |
||
| 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 |
The total number of entries returned. |
|
| pageNumber |
integer |
The current page number. |
|
| pageSize |
integer |
The number of entries per page. |
Examples
Success response
JSON format
{
"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
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.