# 🧾 Billing

Manage billing cycles, statements, and billing configurations.

 - [POST /gql/v1/draft_invoice_histories](https://dev.docs.api.aiwyn.ai/api/bundle/billing/getdraftinvoicehistoriespaginated.md): **Retrieve draft invoice histories with basic pagination support** **Pagination (v1 — limit/offset):** `pageSize` is a limit (records to return). `page` is an offset (records to skip), not a page inde
 - [POST /gql/v1/draft_invoice_histories/search](https://dev.docs.api.aiwyn.ai/api/bundle/billing/filterdraftinvoicehistoriesdynamic.md): **Advanced draft invoice history filtering with custom GraphQL where clauses and dynamic ordering** **Pagination (v1 — limit/offset):** `pageSize` is a limit (records to return). `page` is an offset (
 - [GET /gql/v1/draft_invoice/{id}](https://dev.docs.api.aiwyn.ai/api/bundle/billing/getdraftinvoicebyid.md): **Retrieve a specific draft invoice by its unique identifier** This endpoint provides detailed draft invoice information including: - Complete draft invoice details and line items - Draft status and r
