> 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/invoice-details.md).

# Invoice Details

This API is used to get an invoice details

```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.InvoiceDetailBillingResp":{"type":"object","properties":{"detail":{"$ref":"#/components/schemas/ai_backend__billing.Invoice"},"list":{"$ref":"#/components/schemas/ai_backend__billing.DetailBillingTypeResp"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.InvoicePaymentHistory"}}}},"ai_backend__billing.Invoice":{"type":"object","properties":{"billed":{"type":"number"},"billing_account":{"type":"string"},"due_date":{"type":"string"},"id":{"type":"string"},"last_calculated_for":{"type":"string"},"number":{"type":"integer"},"organization_id":{"type":"string"},"payment_status":{"type":"string"},"ppn":{"type":"integer"},"ppn_value":{"type":"number"},"price":{"type":"number"},"project":{"$ref":"#/components/schemas/ai_backend__billing.Project"},"project_id":{"type":"string"},"service_type":{"type":"string"},"stamp":{"type":"string"},"stamp_expire_date":{"type":"string"},"stamp_value":{"type":"number"},"start_date":{"type":"string"},"total_discount":{"type":"number"},"type":{"type":"string"}}},"ai_backend__billing.Project":{"type":"object","properties":{"deletedAt":{"$ref":"#/components/schemas/ai_backend__gorm.DeletedAt"},"id":{"type":"string"},"name":{"type":"string"},"organization_id":{"type":"string"},"payment_method":{"type":"string"},"postpaid_fixed_type":{"type":"string"},"postpaid_type":{"type":"string"}}},"ai_backend__gorm.DeletedAt":{"type":"object","properties":{"time":{"type":"string"},"valid":{"description":"Valid is true if Time is not NULL","type":"boolean"}}},"ai_backend__billing.DetailBillingTypeResp":{"type":"object","properties":{"daily_backup":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"deka_agent":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"deka_registry":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"deka_rock":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"floating_ip":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"instance":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"manage_service":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"manage_service_addon":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"object_storage":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"open_vpn":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"os":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"root_disk":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"slb":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"snapshot":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"storage":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}},"vpn_ipsec":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__backend_responses_billing.BillingDetail"}}}},"ai_backend__backend_responses_billing.BillingDetail":{"type":"object","properties":{"billed":{"type":"number"},"created_at":{"type":"string"},"deleted_at":{"$ref":"#/components/schemas/ai_backend__gorm.DeletedAt"},"discount_value":{"type":"number"},"name":{"type":"string"},"price":{"$ref":"#/components/schemas/ai_backend__billing.Price"},"specification":{"type":"string"},"type":{"type":"string"},"usage":{"type":"string"}}},"ai_backend__billing.Price":{"type":"object","properties":{"per":{"type":"string"},"value":{"type":"number"}}},"ai_backend__backend_responses_billing.InvoicePaymentHistory":{"type":"object","properties":{"amount":{"type":"number"},"created_at":{"type":"string"}}}}},"paths":{"/core/billing/invoice/detail/{invoice_id}":{"get":{"description":"This API is used to get an invoice details","tags":["Cloudeka Backend","Billing"],"summary":"Invoice Details","parameters":[{"schema":{"type":"string"},"description":"Invoice ID","name":"invoice_id","in":"path","required":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"},{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ai_backend__billing.InvoiceDetailBillingResp"}}}]}}}}}}}}}
```
