Billing History
This API is used to get a billing history
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
datestringOptional
project_idstringOptional
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200messagestringOptionalExample:
Successpost/core/billing/v2/history
POST /core/billing/v2/history HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"date": "text",
"project_id": "text"
}200
Successful Response
{
"code": 200,
"data": {
"billed": 1,
"date": "text",
"services": [
{
"billed": 1,
"billing_type": "Trial",
"date": "text",
"discount": 1,
"discount_value": 1,
"package_id": "text",
"price": 1,
"price_unit": "hour",
"service_id": "text",
"service_name": "text",
"service_type": "INSTANCE",
"service_type_name": "text",
"size": 1,
"size_unit": "text",
"specification": "text",
"usage": "text",
"usage_hours": 1
}
]
},
"message": "Success"
}Last updated