Generate Bills
Create and save the Bills based on the Bill Generate Request
Request
URI
POST
https://{api_host}/suite-api/api/chargeback/bills
COPY
Request Body
The calculation param for resources metering by policy assignments
bill-generation-request
of type(s)
application/json
Required
Show optional properties
{
"title": "string",
"billingStartTime": 0,
"billingEndTime": 0,
"resourceIds": [
{}
],
"timeZone": {}
}
"{\n \"title\" : \"Test Bill Generation\",\n \"description\" : \"Test Bill Generation\",\n \"billingStartTime\" : 1665122400000,\n \"billingEndTime\" : 1666322044280,\n \"resourceIds\" : [ \"ff3810e3-def1-4bea-98e5-c4c016867714\" ],\n \"policyId\" : \"e250db35-63f5-47f5-b805-e31588794867\",\n \"timeZone\" : \"UTC\"\n}"
string
title
Required
The title of the bill
string
description
Optional
The description of the bill
integer As int64
As int64
billingStartTime
Required
Billing start time in milliseconds
integer As int64
As int64
billingEndTime
Required
Billing end time in milliseconds
array of
string
resourceIds
Required
Constraints:
minItems: 0
maxItems: 1000
The resource ids for which the bill needs to be generated
string As uuid
As uuid
policyId
Optional
The UUID of the policy which is used for RegionQuota bill generation
object
timeZone
Required
Billing timeZone
Responses
201
The list of resources bills
Returns
bill-generation-result
of type(s)
application/json
"{\n \"generatedBills\" : [ {\n \"billId\" : \"8980b983-d559-43ef-bf01-c9a2803b8f6b\",\n \"resourceId\" : \"326f7c1c-4092-4b49-9f82-695c542951cb\"\n } ]\n}"
array of
object
generatedBills
Optional
List of generated bills
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"billingEndTime:"integer","billingStartTime:"integer","resourceIds":["string"],"timeZone:"object","title:"string"}' https://{api_host}/suite-api/api/chargeback/bills
Chargeback Billing Operations
POST
Generate Bills
POST
Get Bill Summary
GET
Get Bill
DELETE
Delete Bill