> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api/cloudeka-backend/monthly-cost-details-by-type-1.md).

# Monthly Cost Details by Type

This API is used to get the monthly costs details by type

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"Cloudeka Backend","description":"API endpoints for Cloudeka Backend (base: /core)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_backend__handler.SuccessRespond":{"type":"object","properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"}}},"ai_backend__billing.BaseBillingDetail":{"type":"object","properties":{"billed":{"type":"number"},"billing_type":{"$ref":"#/components/schemas/ai_backend__constant.BillingType"},"discount":{"type":"number"},"discount_value":{"type":"number"},"package_id":{"type":"string"},"price":{"type":"number"},"price_unit":{"$ref":"#/components/schemas/ai_backend__constant.BillingPriceUnit"},"service_id":{"type":"string"},"service_name":{"type":"string"},"service_type":{"$ref":"#/components/schemas/ai_backend__constant.ServiceType"},"service_type_name":{"type":"string"},"size":{"type":"number"},"size_unit":{"type":"string"},"specification":{"type":"string"},"sub_total":{"type":"number"},"usage":{"type":"string"},"usage_hours":{"type":"number"}}},"ai_backend__constant.BillingType":{"type":"string","enum":["Trial","Fixed","PPU","Monthly","One Time"]},"ai_backend__constant.BillingPriceUnit":{"type":"string","enum":["hour","day","month","one time","coin"]},"ai_backend__constant.ServiceType":{"type":"string","enum":["INSTANCE","OS_CHARGING","ROOT_DISK","STORAGE","OBJECT_STORAGE","SNAPSHOT","DEKA_FLEXI_FLOATING_IP","SLB","DAILY_BACKUP","MANAGE_SERVICE","MANAGE_SERVICE_ADDON","DEKA_AGENT","DEKA_NAT","DEKA_NAT_FIP","VPN_IPSEC","VPN_IPSEC_PHASE","USER_OPENVPN","DEKA_ROCK","DEKA_HARBOR_STARTER_NODE","DEKA_HARBOR_ADDITIONAL_NODE","DEKA_REGISTRY","DEKA_DNS_ZONE","DEKA_DNS_A_RECORD","DEKA_LLM","FLOATING-IP","BACKUP_VM","LICENSE_BACKUP_VM","WAIVER","CDN","CPU","GPU","RAM","VOLUME","floating-ip","FLEXI"]},"ai_backend__requests.GroupedBillingDetail":{"type":"object","properties":{"end":{"type":"string"},"project_id":{"type":"string"},"start":{"type":"string"},"type":{"type":"string"}}}}},"paths":{"/core/billing/v2/monthly-cost/by-type/detail":{"post":{"description":"This API is used to get the monthly costs details by type","tags":["Cloudeka Backend","Billing v2"],"summary":"Monthly Cost Details by Type","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__billing.BaseBillingDetail"}}}}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__requests.GroupedBillingDetail"}}},"description":"Monthly Cost Details by Type Payload","required":true}}}}}
```
