# 🧾 Billing

Manage billing cycles, statements, and billing configurations.

 - [POST /gql/v1/draft_invoice_histories](https://api.doc.aiwyn.ai/bundle/billing/getdraftinvoicehistoriespaginated.md): **Retrieve draft invoice histories with basic pagination support** Provides paginated access to draft invoice history records. Real Example: ```bash curl --location 'https://{{host}}/v1/draft_invoice
 - [POST /gql/v1/draft_invoice_histories/search](https://api.doc.aiwyn.ai/bundle/billing/filterdraftinvoicehistoriesdynamic.md): **Advanced draft invoice history filtering with custom GraphQL where clauses and dynamic ordering** Supports client, invoice, job filtering and draftInvoice approvedAt date range. Real Example: ```ba
 - [GET /gql/v1/draft_invoice/{id}](https://api.doc.aiwyn.ai/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
