# Wafeq Documentation > Wafeq's Public APIs ## Guides: GETTING STARTED - [Build with the Wafeq API](https://docs.wafeq.com/accounting/quickstart-send-you-first-e-invoice.md): Automate complete accounting workflows—from sales and purchasing to banking, journals, and financial reports. - [Choose an integration type and authenticate](https://docs.wafeq.com/accounting/authenticate-and-make-your-first-request.md): Choose between a private API-key integration and a multi-customer OAuth app, then make your first authenticated Wafeq request. - [Invoice creation example](https://docs.wafeq.com/accounting/invoice-creation-example.md) - [Wafeq Public API vs ZATCA API](https://docs.wafeq.com/accounting/wafeq-public-api-vs-zatca-api.md): Choose the correct invoice API based on whether you need Wafeq accounting records or standalone Saudi e-invoicing compliance. ## Guides: SALES & RECEIVABLES - [Quote to cash](https://docs.wafeq.com/accounting/quote-to-cash.md): Create a customer quote, convert it to an invoice, and record the payment without losing the accounting trail. - [Manage the invoice lifecycle](https://docs.wafeq.com/accounting/manage-the-invoice-lifecycle.md): Create, deliver, adjust, report, and collect invoices while keeping Wafeq’s accounting records consistent. ## Guides: PURCHASES & EXPENSES - [Purchase to pay](https://docs.wafeq.com/accounting/purchase-to-pay.md): Create purchase orders and supplier bills, then record payment with a complete payables trail. - [Record expenses and receipts](https://docs.wafeq.com/accounting/record-expenses-and-receipts.md): Capture operational spend, attach receipt files, and post expenses to the ledger with the right account and dimensions. ## Guides: BANKING & ACCOUNTING - [Import and account for bank transactions](https://docs.wafeq.com/accounting/import-and-account-for-bank-transactions.md): Bring bank statement activity into Wafeq and create the corresponding ledger entries without mixing the two records. - [Post journals and read financial reports](https://docs.wafeq.com/accounting/post-journals-and-read-financial-reports.md): Create balanced manual journals and retrieve profit and loss, balance sheet, cash flow, and trial balance reports. ## Guides: INTEGRATION PATTERNS - [Design a reliable integration](https://docs.wafeq.com/accounting/design-a-reliable-integration.md): Use idempotency, external IDs, pagination, incremental sync, and safe retries to keep Wafeq and your system consistent. - [Track projects, cost centers, and custom data](https://docs.wafeq.com/accounting/track-projects-cost-centers-and-custom-data.md): Preserve the reporting dimensions and business context finance teams need across every accounting workflow. - [Work with files and attachments](https://docs.wafeq.com/accounting/work-with-files-and-attachments.md): Upload files, attach them to accounting records, retrieve their metadata, and manage their lifecycle safely. - [Custom Fields](https://docs.wafeq.com/accounting/custom-fields.md) ## Guides: E-INVOICING USE CASES - [Use case for B2B](https://docs.wafeq.com/accounting/use-case-for-b2b-1.md): Use Wafeq's e-invoicing API to send your customers compliant B2B e-invoices. - [Use case for B2C](https://docs.wafeq.com/accounting/use-case-for-b2c-1.md): Use Wafeq's e-invoicing API to send your customers compliant B2C e-invoices. - [Use case for e-commerce](https://docs.wafeq.com/accounting/use-case-for-e-commerce-1.md): If you're running an e-commerce store, you can use Wafeq's e-invoicing API to send your customers compliant e-invoices. - [Use case for expense management](https://docs.wafeq.com/accounting/use-case-for-expense-management-1.md): Use Wafeq's API to push expenses from an expense management software into Wafeq. ## Guides: AI ASSISTANTS - [Use Wafeq with Claude or ChatGPT](https://docs.wafeq.com/accounting/mcp.md): Connect your AI assistant to Wafeq and ask about your books in plain words. - [MCP technical details](https://docs.wafeq.com/accounting/mcp-developers.md): For developers and app reviewers: server URL, OAuth, scopes, confirmations, limits and errors. - [MCP tool reference](https://docs.wafeq.com/accounting/mcp-tools.md): Every tool on the Wafeq MCP server, 122 read and 158 write, with what each one does. ## API Reference: INTRODUCTION - [Authentication](https://docs.wafeq.com/accounting/reference/authentication.md) - [Authorization](https://docs.wafeq.com/accounting/reference/authorization.md) - [Idempotency](https://docs.wafeq.com/accounting/reference/idempotency.md) - [Rate Limits](https://docs.wafeq.com/accounting/reference/rate-limits.md) ## API Reference: Wafeq Public API - Accounts - [List accounts](https://docs.wafeq.com/accounting/reference/accounts_list.md): Endpoint for retrieving a list of accounts. - [Create account](https://docs.wafeq.com/accounting/reference/accounts_create.md): Endpoint for creating a new account. - [Delete account](https://docs.wafeq.com/accounting/reference/accounts_destroy.md): Endpoint for deleting an existing account. - [Retrieve account](https://docs.wafeq.com/accounting/reference/accounts_retrieve.md): Endpoint for retrieving a single account. - [Partial update account](https://docs.wafeq.com/accounting/reference/accounts_partial_update.md): Endpoint for partially updating an existing account. - [Update account](https://docs.wafeq.com/accounting/reference/accounts_update.md): Endpoint for updating an existing account. - Amortizations - [List amortizations](https://docs.wafeq.com/accounting/reference/amortizations_list.md): Endpoint for retrieving a list of amortizations. - [Preview amortization schedule](https://docs.wafeq.com/accounting/reference/amortizations_preview_create.md): Endpoint for previewing the amortization events that would be generated for the given schedule, without creating an amortization. - [Delete amortization](https://docs.wafeq.com/accounting/reference/amortizations_destroy.md): Endpoint for deleting an existing amortization. - [Retrieve amortization](https://docs.wafeq.com/accounting/reference/amortizations_retrieve.md): Endpoint for retrieving a single amortization. - [End amortization early](https://docs.wafeq.com/accounting/reference/amortizations_end_early_create.md): Endpoint for terminating an amortization early, recognizing the remaining balance against the provided account. - [Preview early termination](https://docs.wafeq.com/accounting/reference/amortizations_preview_end_early_create.md): Endpoint for previewing the remaining balance and the posted events that would be reversed by terminating the amortization early at the given date. - Bank Accounts - [List bank accounts](https://docs.wafeq.com/accounting/reference/bank_accounts_list.md): Endpoint for retrieving a list of bank accounts. - [Create bank account](https://docs.wafeq.com/accounting/reference/bank_accounts_create.md): Endpoint for creating a new bank account. - [Delete bank account](https://docs.wafeq.com/accounting/reference/bank_accounts_destroy.md): Endpoint for deleting an existing bank account. - [Retrieve bank account](https://docs.wafeq.com/accounting/reference/bank_accounts_retrieve.md): Endpoint for retrieving a single bank account. - [Partial update bank account](https://docs.wafeq.com/accounting/reference/bank_accounts_partial_update.md): Endpoint for partially updating an existing bank account. - [Update bank account](https://docs.wafeq.com/accounting/reference/bank_accounts_update.md): Endpoint for updating an existing bank account. - Bank Ledger Transactions - [List bank ledger transactions](https://docs.wafeq.com/accounting/reference/bank_accounts_ledger_transactions_list.md): Endpoint for retrieving a list of bank ledger transactions. - [Create bank ledger transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_ledger_transactions_create.md): Endpoint for creating a new bank ledger transaction. - [Delete bank ledger transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_ledger_transactions_destroy.md): Endpoint for deleting an existing bank ledger transaction. - [Retrieve bank ledger transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_ledger_transactions_retrieve.md): Endpoint for retrieving a single bank ledger transaction. - [Partial update bank ledger transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_ledger_transactions_partial_update.md): Endpoint for partially updating an existing bank ledger transaction. - [Update bank ledger transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_ledger_transactions_update.md): Endpoint for updating an existing bank ledger transaction. - Bank Statement Transactions - [List bank statement transactions](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_list.md): Endpoint for retrieving a list of bank statement transactions. - [Create bank statement transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_create.md): Endpoint for creating a new bank statement transaction. - [Delete bank statement transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_destroy.md): Endpoint for deleting an existing bank statement transaction. - [Retrieve bank statement transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_retrieve.md): Endpoint for retrieving a single bank statement transaction. - [Partial update bank statement transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_partial_update.md): Endpoint for partially updating an existing bank statement transaction. - [Update bank statement transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_update.md): Endpoint for updating an existing bank statement transaction. - [Reconcile bank statement transaction](https://docs.wafeq.com/accounting/reference/bank_accounts_statement_transactions_reconcile_create.md): Reconcile this bank statement transaction against existing bank-side journal lines. Payments and adjustments must already exist. The linked total must equal the statement amount. Repeating the… - Beneficiaries - [List beneficiaries](https://docs.wafeq.com/accounting/reference/beneficiaries_list.md): Endpoint for retrieving a list of beneficiaries. - [Create beneficiary](https://docs.wafeq.com/accounting/reference/beneficiaries_create.md): Endpoint for creating a new beneficiary. - [Delete beneficiary](https://docs.wafeq.com/accounting/reference/beneficiaries_destroy.md): Endpoint for deleting an existing beneficiary. - [Retrieve beneficiary](https://docs.wafeq.com/accounting/reference/beneficiaries_retrieve.md): Endpoint for retrieving a single beneficiary. - [Partial update beneficiary](https://docs.wafeq.com/accounting/reference/beneficiaries_partial_update.md): Endpoint for partially updating an existing beneficiary. - [Update beneficiary](https://docs.wafeq.com/accounting/reference/beneficiaries_update.md): Endpoint for updating an existing beneficiary. - Debit Note Applications - [Apply debit note to bill](https://docs.wafeq.com/accounting/reference/bill_debit_notes_create.md): Apply an amount of a debit note to a bill of the same supplier and currency. Both documents must be posted. The application posts a journal entry on its date, which defaults to the debit note's date… - [Unapply debit note from bill](https://docs.wafeq.com/accounting/reference/bill_debit_notes_destroy.md): Unapply a debit note from a bill. The application and its journal entry are removed, and the balance of both documents is restored. An application dated in a closed period cannot be removed. - [Retrieve debit note application](https://docs.wafeq.com/accounting/reference/bill_debit_notes_retrieve.md): Retrieve one application of a debit note to a bill. A bill lists its applications in `debit_notes`. - [Update debit note application](https://docs.wafeq.com/accounting/reference/bill_debit_notes_partial_update.md): Change the amount or date of an application in place. Its journal entry is updated rather than replaced. The debit note and bill cannot change: to move an application, delete it and create another. - Bills - [List bills](https://docs.wafeq.com/accounting/reference/bills_list.md): Endpoint for retrieving a list of bills. - [Create bill](https://docs.wafeq.com/accounting/reference/bills_create.md): Endpoint for creating a new bill. - [Delete bill](https://docs.wafeq.com/accounting/reference/bills_destroy.md): Endpoint for deleting an existing bill. - [Retrieve bill](https://docs.wafeq.com/accounting/reference/bills_retrieve.md): Endpoint for retrieving a single bill. - [Partial update bill](https://docs.wafeq.com/accounting/reference/bills_partial_update.md): Endpoint for partially updating an existing bill. - [Update bill](https://docs.wafeq.com/accounting/reference/bills_update.md): Endpoint for updating an existing bill. - [Download bill PDF](https://docs.wafeq.com/accounting/reference/bills_download_retrieve.md): Endpoint for downloading a PDF of the bill. - Bill Line Items - [List bill line items](https://docs.wafeq.com/accounting/reference/bills_line_items_list.md): Endpoint for retrieving a list of bill line items. - [Create bill line item](https://docs.wafeq.com/accounting/reference/bills_line_items_create.md): Endpoint for creating a new bill line item. - [Delete bill line item](https://docs.wafeq.com/accounting/reference/bills_line_items_destroy.md): Endpoint for deleting an existing bill line item. - [Retrieve bill line item](https://docs.wafeq.com/accounting/reference/bills_line_items_retrieve.md): Endpoint for retrieving a single bill line item. - [Partial update bill line item](https://docs.wafeq.com/accounting/reference/bills_line_items_partial_update.md): Endpoint for partially updating an existing bill line item. - [Update bill line item](https://docs.wafeq.com/accounting/reference/bills_line_items_update.md): Endpoint for updating an existing bill line item. - Branches - [List branches](https://docs.wafeq.com/accounting/reference/branches_list.md): Endpoint for retrieving a list of branches. - [Create branch](https://docs.wafeq.com/accounting/reference/branches_create.md): Endpoint for creating a new branch. - [Delete branch](https://docs.wafeq.com/accounting/reference/branches_destroy.md): Endpoint for deleting an existing branch. - [Retrieve branch](https://docs.wafeq.com/accounting/reference/branches_retrieve.md): Endpoint for retrieving a single branch. - [Partial update branch](https://docs.wafeq.com/accounting/reference/branches_partial_update.md): Endpoint for partially updating an existing branch. - [Update branch](https://docs.wafeq.com/accounting/reference/branches_update.md): Endpoint for updating an existing branch. - Contacts - [List contacts](https://docs.wafeq.com/accounting/reference/contacts_list.md): Endpoint for retrieving a list of contacts. - [Create contact](https://docs.wafeq.com/accounting/reference/contacts_create.md): Endpoint for creating a new contact. - [Delete contact](https://docs.wafeq.com/accounting/reference/contacts_destroy.md): Endpoint for deleting an existing contact. - [Retrieve contact](https://docs.wafeq.com/accounting/reference/contacts_retrieve.md): Endpoint for retrieving a single contact. - [Partial update contact](https://docs.wafeq.com/accounting/reference/contacts_partial_update.md): Endpoint for partially updating an existing contact. - [Update contact](https://docs.wafeq.com/accounting/reference/contacts_update.md): Endpoint for updating an existing contact. - Cost Centers - [List cost centers](https://docs.wafeq.com/accounting/reference/cost_centers_list.md): Endpoint for retrieving a list of cost centers. - [Create cost center](https://docs.wafeq.com/accounting/reference/cost_centers_create.md): Endpoint for creating a new cost center. - [Delete cost center](https://docs.wafeq.com/accounting/reference/cost_centers_destroy.md): Endpoint for deleting an existing cost center. - [Retrieve cost center](https://docs.wafeq.com/accounting/reference/cost_centers_retrieve.md): Endpoint for retrieving a single cost center. - [Partial update cost center](https://docs.wafeq.com/accounting/reference/cost_centers_partial_update.md): Endpoint for partially updating an existing cost center. - [Update cost center](https://docs.wafeq.com/accounting/reference/cost_centers_update.md): Endpoint for updating an existing cost center. - Credit Notes - [List credit notes](https://docs.wafeq.com/accounting/reference/credit_notes_list.md): Endpoint for retrieving a list of credit notes. - [Create credit note](https://docs.wafeq.com/accounting/reference/credit_notes_create.md): Endpoint for creating a new credit note. - [Delete credit note](https://docs.wafeq.com/accounting/reference/credit_notes_destroy.md): Endpoint for deleting an existing credit note. - [Retrieve credit note](https://docs.wafeq.com/accounting/reference/credit_notes_retrieve.md): Endpoint for retrieving a single credit note. - [Partial update credit note](https://docs.wafeq.com/accounting/reference/credit_notes_partial_update.md): Endpoint for partially updating an existing credit note. - [Update credit note](https://docs.wafeq.com/accounting/reference/credit_notes_update.md): Endpoint for updating an existing credit note. - [Download credit note PDF](https://docs.wafeq.com/accounting/reference/credit_notes_download_retrieve.md): Endpoint for downloading a PDF of the credit note. - [Report credit note to tax authority](https://docs.wafeq.com/accounting/reference/credit_notes_tax_authority_report_create.md): Report the credit note to the tax authority for processing and validation. A `PENDING` status means the submission was accepted and the tax authority's verdict is still outstanding. The credit note… - Credit Note Line Items - [List credit note line items](https://docs.wafeq.com/accounting/reference/credit_notes_line_items_list.md): Endpoint for retrieving a list of credit note line items. - [Create credit note line item](https://docs.wafeq.com/accounting/reference/credit_notes_line_items_create.md): Endpoint for creating a new credit note line item. - [Delete credit note line item](https://docs.wafeq.com/accounting/reference/credit_notes_line_items_destroy.md): Endpoint for deleting an existing credit note line item. - [Retrieve credit note line item](https://docs.wafeq.com/accounting/reference/credit_notes_line_items_retrieve.md): Endpoint for retrieving a single credit note line item. - [Partial update credit note line item](https://docs.wafeq.com/accounting/reference/credit_notes_line_items_partial_update.md): Endpoint for partially updating an existing credit note line item. - [Update credit note line item](https://docs.wafeq.com/accounting/reference/credit_notes_line_items_update.md): Endpoint for updating an existing credit note line item. - Custom Fields - [List custom fields](https://docs.wafeq.com/accounting/reference/custom_fields_list.md): Endpoint for retrieving a list of custom fields. - [Create custom field](https://docs.wafeq.com/accounting/reference/custom_fields_create.md): Endpoint for creating a new custom field. - [Delete custom field](https://docs.wafeq.com/accounting/reference/custom_fields_destroy.md): Endpoint for deleting an existing custom field. The custom field must not be in use on any documents. - [Retrieve custom field](https://docs.wafeq.com/accounting/reference/custom_fields_retrieve.md): Endpoint for retrieving a single custom field. - [Partial update custom field](https://docs.wafeq.com/accounting/reference/custom_fields_partial_update.md): Endpoint for partially updating an existing custom field. - [Update custom field](https://docs.wafeq.com/accounting/reference/custom_fields_update.md): Endpoint for updating an existing custom field. - Debit Notes - [List debit notes](https://docs.wafeq.com/accounting/reference/debit_notes_list.md): Endpoint for retrieving a list of debit notes. - [Create debit note](https://docs.wafeq.com/accounting/reference/debit_notes_create.md): Endpoint for creating a new debit note. - [Delete debit note](https://docs.wafeq.com/accounting/reference/debit_notes_destroy.md): Endpoint for deleting an existing debit note. - [Retrieve debit note](https://docs.wafeq.com/accounting/reference/debit_notes_retrieve.md): Endpoint for retrieving a single debit note. - [Partial update debit note](https://docs.wafeq.com/accounting/reference/debit_notes_partial_update.md): Endpoint for partially updating an existing debit note. - [Update debit note](https://docs.wafeq.com/accounting/reference/debit_notes_update.md): Endpoint for updating an existing debit note. - [Download debit note PDF](https://docs.wafeq.com/accounting/reference/debit_notes_download_retrieve.md): Endpoint for downloading a PDF of the debit note. - Debit Note Line Items - [List debit note line items](https://docs.wafeq.com/accounting/reference/debit_notes_line_items_list.md): Endpoint for retrieving a list of debit note line items. - [Create debit note line item](https://docs.wafeq.com/accounting/reference/debit_notes_line_items_create.md): Endpoint for creating a new debit note line item. - [Delete debit note line item](https://docs.wafeq.com/accounting/reference/debit_notes_line_items_destroy.md): Endpoint for deleting an existing debit note line item. - [Retrieve debit note line item](https://docs.wafeq.com/accounting/reference/debit_notes_line_items_retrieve.md): Endpoint for retrieving a single debit note line item. - [Partial update debit note line item](https://docs.wafeq.com/accounting/reference/debit_notes_line_items_partial_update.md): Endpoint for partially updating an existing debit note line item. - [Update debit note line item](https://docs.wafeq.com/accounting/reference/debit_notes_line_items_update.md): Endpoint for updating an existing debit note line item. - Employees - [List employees](https://docs.wafeq.com/accounting/reference/employees_list.md): Endpoint for retrieving a list of employees. - [Create employee](https://docs.wafeq.com/accounting/reference/employees_create.md): Endpoint for creating a new employee. - [Delete employee](https://docs.wafeq.com/accounting/reference/employees_destroy.md): Endpoint for deleting an existing employee. - [Retrieve employee](https://docs.wafeq.com/accounting/reference/employees_retrieve.md): Endpoint for retrieving a single employee. - [Partial update employee](https://docs.wafeq.com/accounting/reference/employees_partial_update.md): Endpoint for partially updating an existing employee. - [Update employee](https://docs.wafeq.com/accounting/reference/employees_update.md): Endpoint for updating an existing employee. - Expense Reports - [List expense reports](https://docs.wafeq.com/accounting/reference/expense_reports_list.md): Endpoint for retrieving a list of expense reports. - [Retrieve expense report](https://docs.wafeq.com/accounting/reference/expense_reports_retrieve.md): Endpoint for retrieving a single expense report. - Expenses - [List expenses](https://docs.wafeq.com/accounting/reference/expenses_list.md): Endpoint for retrieving a list of expenses. - [Create expense](https://docs.wafeq.com/accounting/reference/expenses_create.md): Endpoint for creating a new expense. - [Delete expense](https://docs.wafeq.com/accounting/reference/expenses_destroy.md): Endpoint for deleting an existing expense. - [Retrieve expense](https://docs.wafeq.com/accounting/reference/expenses_retrieve.md): Endpoint for retrieving a single expense. - [Partial update expense](https://docs.wafeq.com/accounting/reference/expenses_partial_update.md): Endpoint for partially updating an existing expense. - [Update expense](https://docs.wafeq.com/accounting/reference/expenses_update.md): Endpoint for updating an existing expense. - [Mark expense as draft](https://docs.wafeq.com/accounting/reference/expenses_mark_as_draft_create.md): Moves a posted expense back to draft (removes its journal from the ledger). - [Mark expense as posted](https://docs.wafeq.com/accounting/reference/expenses_mark_as_posted_create.md): Posts a draft expense to the ledger (generates its journal). - Files - [List files](https://docs.wafeq.com/accounting/reference/files_list.md): Endpoint for retrieving a list of files. - [Create file](https://docs.wafeq.com/accounting/reference/upload_file.md): Endpoint for creating a new file. Upload a file using multipart/form-data. - [Create file (advance)](https://docs.wafeq.com/accounting/reference/upload_file_raw.md): Create file in advance mode by sending raw binary file content directly in the request body. You must include a Content-Disposition header with the filename. - [Delete file](https://docs.wafeq.com/accounting/reference/files_destroy.md): Endpoint for deleting an existing file. - [Retrieve file](https://docs.wafeq.com/accounting/reference/files_retrieve.md): Endpoint for retrieving a single file. - Credit Note Applications - [Apply credit note to invoice](https://docs.wafeq.com/accounting/reference/invoice_credit_notes_create.md): Apply an amount of a credit note to an invoice of the same customer and currency. Both documents must be posted. The application posts a journal entry on its date, which defaults to the credit note's… - [Unapply credit note from invoice](https://docs.wafeq.com/accounting/reference/invoice_credit_notes_destroy.md): Unapply a credit note from an invoice. The application and its journal entry are removed, and the balance of both documents is restored. An application dated in a closed period cannot be removed. - [Retrieve credit note application](https://docs.wafeq.com/accounting/reference/invoice_credit_notes_retrieve.md): Retrieve one application of a credit note to an invoice. An invoice lists its applications in `credit_notes`. - [Update credit note application](https://docs.wafeq.com/accounting/reference/invoice_credit_notes_partial_update.md): Change the amount or date of an application in place. Its journal entry is updated rather than replaced. The credit note and invoice cannot change: to move an application, delete it and create… - Invoices - [List invoices](https://docs.wafeq.com/accounting/reference/invoices_list.md): Endpoint for retrieving a list of invoices. - [Create invoice](https://docs.wafeq.com/accounting/reference/invoices_create.md): Endpoint for creating a new invoice. - [Delete invoice](https://docs.wafeq.com/accounting/reference/invoices_destroy.md): Endpoint for deleting an existing invoice. - [Retrieve invoice](https://docs.wafeq.com/accounting/reference/invoices_retrieve.md): Endpoint for retrieving a single invoice. - [Partial update invoice](https://docs.wafeq.com/accounting/reference/invoices_partial_update.md): Endpoint for partially updating an existing invoice. - [Update invoice](https://docs.wafeq.com/accounting/reference/invoices_update.md): Endpoint for updating an existing invoice. - [Download invoice PDF](https://docs.wafeq.com/accounting/reference/invoices_download_retrieve.md): Endpoint for downloading a PDF of the invoice. - [Report invoice to tax authority](https://docs.wafeq.com/accounting/reference/invoices_tax_authority_report_create.md): Report the invoice to the tax authority for processing and validation. A `PENDING` status means the submission was accepted and the tax authority's verdict is still outstanding. The invoice is… - Invoice Line Items - [List invoice line items](https://docs.wafeq.com/accounting/reference/invoices_line_items_list.md): Endpoint for retrieving a list of invoice line items. - [Create invoice line item](https://docs.wafeq.com/accounting/reference/invoices_line_items_create.md): Endpoint for creating a new invoice line item. - [Delete invoice line item](https://docs.wafeq.com/accounting/reference/invoices_line_items_destroy.md): Endpoint for deleting an existing invoice line item. - [Retrieve invoice line item](https://docs.wafeq.com/accounting/reference/invoices_line_items_retrieve.md): Endpoint for retrieving a single invoice line item. - [Partial update invoice line item](https://docs.wafeq.com/accounting/reference/invoices_line_items_partial_update.md): Endpoint for partially updating an existing invoice line item. - [Update invoice line item](https://docs.wafeq.com/accounting/reference/invoices_line_items_update.md): Endpoint for updating an existing invoice line item. - Item Unit Of Measures - [List item unit of measures](https://docs.wafeq.com/accounting/reference/item_units_of_measure_list.md): Endpoint for retrieving a list of item unit of measures. - [Create item unit of measure](https://docs.wafeq.com/accounting/reference/item_units_of_measure_create.md): Endpoint for creating a new item unit of measure. - [Delete item unit of measure](https://docs.wafeq.com/accounting/reference/item_units_of_measure_destroy.md): Endpoint for deleting an existing item unit of measure. - [Retrieve item unit of measure](https://docs.wafeq.com/accounting/reference/item_units_of_measure_retrieve.md): Endpoint for retrieving a single item unit of measure. - [Partial update item unit of measure](https://docs.wafeq.com/accounting/reference/item_units_of_measure_partial_update.md): Endpoint for partially updating an existing item unit of measure. - [Update item unit of measure](https://docs.wafeq.com/accounting/reference/item_units_of_measure_update.md): Endpoint for updating an existing item unit of measure. - Items - [List items](https://docs.wafeq.com/accounting/reference/items_list.md): Endpoint for retrieving a list of items. - [Create item](https://docs.wafeq.com/accounting/reference/items_create.md): Endpoint for creating a new item. - [Delete item](https://docs.wafeq.com/accounting/reference/items_destroy.md): Endpoint for deleting an existing item. - [Retrieve item](https://docs.wafeq.com/accounting/reference/items_retrieve.md): Endpoint for retrieving a single item. - [Partial update item](https://docs.wafeq.com/accounting/reference/items_partial_update.md): Endpoint for partially updating an existing item. - [Update item](https://docs.wafeq.com/accounting/reference/items_update.md): Endpoint for updating an existing item. - Journal Line Items - [List journal line items](https://docs.wafeq.com/accounting/reference/journal_line_items_list.md): Endpoint for retrieving a list of journal line items. - [Retrieve journal line item](https://docs.wafeq.com/accounting/reference/journal_line_items_retrieve.md): Endpoint for retrieving a single journal line item. - Manual Journals - [List manual journals](https://docs.wafeq.com/accounting/reference/manual_journals_list.md): Endpoint for retrieving a list of manual journals. - [Create manual journal](https://docs.wafeq.com/accounting/reference/manual_journals_create.md): Endpoint for creating a new manual journal. - [Delete manual journal](https://docs.wafeq.com/accounting/reference/manual_journals_destroy.md): Endpoint for deleting an existing manual journal. - [Retrieve manual journal](https://docs.wafeq.com/accounting/reference/manual_journals_retrieve.md): Endpoint for retrieving a single manual journal. - [Partial update manual journal](https://docs.wafeq.com/accounting/reference/manual_journals_partial_update.md): Endpoint for partially updating an existing manual journal. - [Update manual journal](https://docs.wafeq.com/accounting/reference/manual_journals_update.md): Endpoint for updating an existing manual journal. - Organizations - [Retrieve organization](https://docs.wafeq.com/accounting/reference/organization_retrieve.md): Endpoint for retrieving a single organization. - organization - [Retrieve organization profile](https://docs.wafeq.com/accounting/reference/organization_profile_retrieve.md): Retrieve the current organization profile using an organization API key or an admin OAuth scope. - [Update organization profile](https://docs.wafeq.com/accounting/reference/organization_profile_partial_update.md): Update the current organization profile using an organization API key or an admin OAuth scope. Country and base currency are immutable; updates are disabled while ZATCA is enabled. - Payment Requests - [List payment requests](https://docs.wafeq.com/accounting/reference/payment_requests_list.md): Endpoint for retrieving a list of payment requests. - [Create payment request](https://docs.wafeq.com/accounting/reference/payment_requests_create.md): Endpoint for creating a new payment request. - [Delete payment request](https://docs.wafeq.com/accounting/reference/payment_requests_destroy.md): Endpoint for deleting an existing payment request. - [Retrieve payment request](https://docs.wafeq.com/accounting/reference/payment_requests_retrieve.md): Endpoint for retrieving a single payment request. - [Partial update payment request](https://docs.wafeq.com/accounting/reference/payment_requests_partial_update.md): Endpoint for partially updating an existing payment request. - [Update payment request](https://docs.wafeq.com/accounting/reference/payment_requests_update.md): Endpoint for updating an existing payment request. - Payments - [List payments](https://docs.wafeq.com/accounting/reference/payments_list.md): Endpoint for retrieving a list of payments. - [Create payment](https://docs.wafeq.com/accounting/reference/payments_create.md): Endpoint for creating a new payment. - [Delete payment](https://docs.wafeq.com/accounting/reference/payments_destroy.md): Endpoint for deleting an existing payment. - [Retrieve payment](https://docs.wafeq.com/accounting/reference/payments_retrieve.md): Endpoint for retrieving a single payment. - [Partial update payment](https://docs.wafeq.com/accounting/reference/payments_partial_update.md): Endpoint for partially updating an existing payment. - [Update payment](https://docs.wafeq.com/accounting/reference/payments_update.md): Endpoint for updating an existing payment. - [Download payment PDF](https://docs.wafeq.com/accounting/reference/payments_download_retrieve.md): Endpoint for downloading a PDF of the payment. - Payslips - [List payslips](https://docs.wafeq.com/accounting/reference/payslips_list.md): Endpoint for retrieving a list of payslips. - [Create payslip](https://docs.wafeq.com/accounting/reference/payslips_create.md): Endpoint for creating a new payslip. - [Delete payslip](https://docs.wafeq.com/accounting/reference/payslips_destroy.md): Endpoint for deleting an existing payslip. - [Retrieve payslip](https://docs.wafeq.com/accounting/reference/payslips_retrieve.md): Endpoint for retrieving a single payslip. - [Partial update payslip](https://docs.wafeq.com/accounting/reference/payslips_partial_update.md): Endpoint for partially updating an existing payslip. - [Update payslip](https://docs.wafeq.com/accounting/reference/payslips_update.md): Endpoint for updating an existing payslip. - [Download payslip PDF](https://docs.wafeq.com/accounting/reference/payslips_download_retrieve.md): Endpoint for downloading a PDF of the payslip. - Pay Items - [List pay items](https://docs.wafeq.com/accounting/reference/payslips_pay_items_list.md): Endpoint for retrieving a list of pay items. - [Create pay item](https://docs.wafeq.com/accounting/reference/payslips_pay_items_create.md): Endpoint for creating a new pay item. - [Delete pay item](https://docs.wafeq.com/accounting/reference/payslips_pay_items_destroy.md): Endpoint for deleting an existing pay item. - [Retrieve pay item](https://docs.wafeq.com/accounting/reference/payslips_pay_items_retrieve.md): Endpoint for retrieving a single pay item. - [Partial update pay item](https://docs.wafeq.com/accounting/reference/payslips_pay_items_partial_update.md): Endpoint for partially updating an existing pay item. - [Update pay item](https://docs.wafeq.com/accounting/reference/payslips_pay_items_update.md): Endpoint for updating an existing pay item. - Projects - [List projects](https://docs.wafeq.com/accounting/reference/projects_list.md): Endpoint for retrieving a list of projects. - [Create project](https://docs.wafeq.com/accounting/reference/projects_create.md): Endpoint for creating a new project. - [Delete project](https://docs.wafeq.com/accounting/reference/projects_destroy.md): Endpoint for deleting an existing project. - [Retrieve project](https://docs.wafeq.com/accounting/reference/projects_retrieve.md): Endpoint for retrieving a single project. - [Partial update project](https://docs.wafeq.com/accounting/reference/projects_partial_update.md): Endpoint for partially updating an existing project. - [Update project](https://docs.wafeq.com/accounting/reference/projects_update.md): Endpoint for updating an existing project. - Purchase Orders - [List purchase orders](https://docs.wafeq.com/accounting/reference/purchase_orders_list.md): Endpoint for retrieving a list of purchase orders. - [Create purchase order](https://docs.wafeq.com/accounting/reference/purchase_orders_create.md): Endpoint for creating a new purchase order. - [Delete purchase order](https://docs.wafeq.com/accounting/reference/purchase_orders_destroy.md): Endpoint for deleting an existing purchase order. - [Retrieve purchase order](https://docs.wafeq.com/accounting/reference/purchase_orders_retrieve.md): Endpoint for retrieving a single purchase order. - [Partial update purchase order](https://docs.wafeq.com/accounting/reference/purchase_orders_partial_update.md): Endpoint for partially updating an existing purchase order. - [Update purchase order](https://docs.wafeq.com/accounting/reference/purchase_orders_update.md): Endpoint for updating an existing purchase order. - [Convert purchase order to bill](https://docs.wafeq.com/accounting/reference/purchase_orders_bill_create.md): This endpoint can be used to convert a purchase order to a draft bill. - [Download purchase order PDF](https://docs.wafeq.com/accounting/reference/purchase_orders_download_retrieve.md): Endpoint for downloading a PDF of the purchase order. - Purchase Order Line Items - [List purchase order line items](https://docs.wafeq.com/accounting/reference/purchase_orders_line_items_list.md): Endpoint for retrieving a list of purchase order line items. - [Create purchase order line item](https://docs.wafeq.com/accounting/reference/purchase_orders_line_items_create.md): Endpoint for creating a new purchase order line item. - [Delete purchase order line item](https://docs.wafeq.com/accounting/reference/purchase_orders_line_items_destroy.md): Endpoint for deleting an existing purchase order line item. - [Retrieve purchase order line item](https://docs.wafeq.com/accounting/reference/purchase_orders_line_items_retrieve.md): Endpoint for retrieving a single purchase order line item. - [Partial update purchase order line item](https://docs.wafeq.com/accounting/reference/purchase_orders_line_items_partial_update.md): Endpoint for partially updating an existing purchase order line item. - [Update purchase order line item](https://docs.wafeq.com/accounting/reference/purchase_orders_line_items_update.md): Endpoint for updating an existing purchase order line item. - Quotes - [List quotes](https://docs.wafeq.com/accounting/reference/quotes_list.md): Endpoint for retrieving a list of quotes. - [Create quote](https://docs.wafeq.com/accounting/reference/quotes_create.md): Endpoint for creating a new quote. - [Delete quote](https://docs.wafeq.com/accounting/reference/quotes_destroy.md): Endpoint for deleting an existing quote. - [Retrieve quote](https://docs.wafeq.com/accounting/reference/quotes_retrieve.md): Endpoint for retrieving a single quote. - [Partial update quote](https://docs.wafeq.com/accounting/reference/quotes_partial_update.md): Endpoint for partially updating an existing quote. - [Update quote](https://docs.wafeq.com/accounting/reference/quotes_update.md): Endpoint for updating an existing quote. - [Download quote PDF](https://docs.wafeq.com/accounting/reference/quotes_download_retrieve.md): Endpoint for downloading a PDF of the quote. - [Convert quote to invoice](https://docs.wafeq.com/accounting/reference/quotes_invoice_create.md): This endpoint can be used to convert a quote to an invoice. - Quote Line Items - [List quote line items](https://docs.wafeq.com/accounting/reference/quotes_line_items_list.md): Endpoint for retrieving a list of quote line items. - [Create quote line item](https://docs.wafeq.com/accounting/reference/quotes_line_items_create.md): Endpoint for creating a new quote line item. - [Delete quote line item](https://docs.wafeq.com/accounting/reference/quotes_line_items_destroy.md): Endpoint for deleting an existing quote line item. - [Retrieve quote line item](https://docs.wafeq.com/accounting/reference/quotes_line_items_retrieve.md): Endpoint for retrieving a single quote line item. - [Partial update quote line item](https://docs.wafeq.com/accounting/reference/quotes_line_items_partial_update.md): Endpoint for partially updating an existing quote line item. - [Update quote line item](https://docs.wafeq.com/accounting/reference/quotes_line_items_update.md): Endpoint for updating an existing quote line item. - Reports - [Balance Sheet ](https://docs.wafeq.com/accounting/reference/reports_balance_sheet_list.md): Generate balance sheet report in `currency` at `date` with `period_count` periods to compare and group it by `group_by` parameter. - [Cash Flow ](https://docs.wafeq.com/accounting/reference/reports_cash_flow_list.md): Generate cash flow report in `currency` from `date_after` to `date_before` range and group it by `group_by` parameter. - [Profit and Loss ](https://docs.wafeq.com/accounting/reference/reports_profit_and_loss_list.md): Generate profit and loss report in `currency` from `date_after` to `date_before` range and group it by `group_by` parameter. - [Trial Balance ](https://docs.wafeq.com/accounting/reference/reports_trial_balance_list.md): Generate trial balance report from `from_date` to `to_date` optionally with PNL openings `with_pnl_openings` and accounts with zero balances `include_zero_balances`. - Revenue Recognitions - [List revenue recognitions](https://docs.wafeq.com/accounting/reference/revenue_recognitions_list.md): Endpoint for retrieving a list of revenue recognitions. - [Preview revenue recognition schedule](https://docs.wafeq.com/accounting/reference/revenue_recognitions_preview_create.md): Endpoint for previewing the revenue recognition events that would be generated for the given schedule, without creating a revenue recognition. - [Delete revenue recognition](https://docs.wafeq.com/accounting/reference/revenue_recognitions_destroy.md): Endpoint for deleting an existing revenue recognition. - [Retrieve revenue recognition](https://docs.wafeq.com/accounting/reference/revenue_recognitions_retrieve.md): Endpoint for retrieving a single revenue recognition. - [End revenue recognition early](https://docs.wafeq.com/accounting/reference/revenue_recognitions_end_early_create.md): Endpoint for terminating a revenue recognition early, recognizing the remaining balance against the provided account. - [Preview early termination](https://docs.wafeq.com/accounting/reference/revenue_recognitions_preview_end_early_create.md): Endpoint for previewing the remaining balance and the posted events that would be reversed by terminating the revenue recognition early at the given date. - Simplified Invoices - [List simplified invoices](https://docs.wafeq.com/accounting/reference/simplified_invoices_list.md): Endpoint for retrieving a list of simplified invoices. - [Create simplified invoice](https://docs.wafeq.com/accounting/reference/simplified_invoices_create.md): Endpoint for creating a new simplified invoice. - [Delete simplified invoice](https://docs.wafeq.com/accounting/reference/simplified_invoices_destroy.md): Endpoint for deleting an existing simplified invoice. - [Retrieve simplified invoice](https://docs.wafeq.com/accounting/reference/simplified_invoices_retrieve.md): Endpoint for retrieving a single simplified invoice. - [Partial update simplified invoice](https://docs.wafeq.com/accounting/reference/simplified_invoices_partial_update.md): Endpoint for partially updating an existing simplified invoice. - [Update simplified invoice](https://docs.wafeq.com/accounting/reference/simplified_invoices_update.md): Endpoint for updating an existing simplified invoice. - [Download simplified invoice PDF](https://docs.wafeq.com/accounting/reference/simplified_invoices_download_retrieve.md): Endpoint for downloading a PDF of the simplified invoice. - [Report simplified invoice to tax authority](https://docs.wafeq.com/accounting/reference/simplified_invoices_tax_authority_report_create.md): Report the simplified invoice to the tax authority for processing and validation. A `PENDING` status means the submission was accepted and the tax authority's verdict is still outstanding. The… - Simplified Invoice Line Items - [List simplified invoice line items](https://docs.wafeq.com/accounting/reference/simplified_invoices_line_items_list.md): Endpoint for retrieving a list of simplified invoice line items. - [Create simplified invoice line item](https://docs.wafeq.com/accounting/reference/simplified_invoices_line_items_create.md): Endpoint for creating a new simplified invoice line item. - [Delete simplified invoice line item](https://docs.wafeq.com/accounting/reference/simplified_invoices_line_items_destroy.md): Endpoint for deleting an existing simplified invoice line item. - [Retrieve simplified invoice line item](https://docs.wafeq.com/accounting/reference/simplified_invoices_line_items_retrieve.md): Endpoint for retrieving a single simplified invoice line item. - [Partial update simplified invoice line item](https://docs.wafeq.com/accounting/reference/simplified_invoices_line_items_partial_update.md): Endpoint for partially updating an existing simplified invoice line item. - [Update simplified invoice line item](https://docs.wafeq.com/accounting/reference/simplified_invoices_line_items_update.md): Endpoint for updating an existing simplified invoice line item. - Tax Rates - [List tax rates](https://docs.wafeq.com/accounting/reference/tax_rates_list.md): Endpoint for retrieving a list of tax rates. - Unit Of Measures - [List unit of measures](https://docs.wafeq.com/accounting/reference/units_of_measure_list.md): Endpoint for retrieving a list of unit of measures. - [Create unit of measure](https://docs.wafeq.com/accounting/reference/units_of_measure_create.md): Endpoint for creating a new unit of measure. - [Delete unit of measure](https://docs.wafeq.com/accounting/reference/units_of_measure_destroy.md): Endpoint for deleting an existing unit of measure. - [Retrieve unit of measure](https://docs.wafeq.com/accounting/reference/units_of_measure_retrieve.md): Endpoint for retrieving a single unit of measure. - [Partial update unit of measure](https://docs.wafeq.com/accounting/reference/units_of_measure_partial_update.md): Endpoint for partially updating an existing unit of measure. - [Update unit of measure](https://docs.wafeq.com/accounting/reference/units_of_measure_update.md): Endpoint for updating an existing unit of measure. - Warehouses - [List warehouses](https://docs.wafeq.com/accounting/reference/warehouses_list.md): Endpoint for retrieving a list of warehouses. - [Create warehouse](https://docs.wafeq.com/accounting/reference/warehouses_create.md): Endpoint for creating a new warehouse. - [Delete warehouse](https://docs.wafeq.com/accounting/reference/warehouses_destroy.md): Endpoint for deleting an existing warehouse. - [Retrieve warehouse](https://docs.wafeq.com/accounting/reference/warehouses_retrieve.md): Endpoint for retrieving a single warehouse. - [Partial update warehouse](https://docs.wafeq.com/accounting/reference/warehouses_partial_update.md): Endpoint for partially updating an existing warehouse. - [Update warehouse](https://docs.wafeq.com/accounting/reference/warehouses_update.md): Endpoint for updating an existing warehouse. ## API Reference: ENUMERATIONS - [AccountSubClassificationEnum](https://docs.wafeq.com/accounting/reference/accountsubclassificationenum.md) - [AccountTypeEnum](https://docs.wafeq.com/accounting/reference/accounttypeenum.md) - [AmortizationStatusEnum](https://docs.wafeq.com/accounting/reference/amortizationstatusenum.md) - [ApplyToEnum](https://docs.wafeq.com/accounting/reference/applytoenum.md) - [BankAccountSubClassificationEnum](https://docs.wafeq.com/accounting/reference/bankaccountsubclassificationenum.md) - [BillStatusEnum](https://docs.wafeq.com/accounting/reference/billstatusenum.md) - [CalculatedFieldOperator](https://docs.wafeq.com/accounting/reference/calculatedfieldoperator.md) - [ChargeTypeEnum](https://docs.wafeq.com/accounting/reference/chargetypeenum.md) - [ClassificationEnum](https://docs.wafeq.com/accounting/reference/classificationenum.md) - [CodeEnum](https://docs.wafeq.com/accounting/reference/codeenum.md) - [CompanyIdentificationCustomerType](https://docs.wafeq.com/accounting/reference/companyidentificationcustomertype.md) - [CompanyIdentificationSupplierType](https://docs.wafeq.com/accounting/reference/companyidentificationsuppliertype.md) - [CountryEnum](https://docs.wafeq.com/accounting/reference/countryenum.md) - [CurrencyEnum](https://docs.wafeq.com/accounting/reference/currencyenum.md) - [CustomFieldLookupEntityType](https://docs.wafeq.com/accounting/reference/customfieldlookupentitytype.md) - [DurationEnum](https://docs.wafeq.com/accounting/reference/durationenum.md) - [EstimateStatusEnum](https://docs.wafeq.com/accounting/reference/estimatestatusenum.md) - [FieldTypeEnum](https://docs.wafeq.com/accounting/reference/fieldtypeenum.md) - [LanguageEnum](https://docs.wafeq.com/accounting/reference/languageenum.md) - [PartyTypeEnum](https://docs.wafeq.com/accounting/reference/partytypeenum.md) - [PaymentRequestStatusEnum](https://docs.wafeq.com/accounting/reference/paymentrequeststatusenum.md) - [PlaceOfSupplyEnum](https://docs.wafeq.com/accounting/reference/placeofsupplyenum.md) - [PublicPostedDocumentStatusEnum](https://docs.wafeq.com/accounting/reference/publicposteddocumentstatusenum.md) - [PublicSalesDocumentStatusEnum](https://docs.wafeq.com/accounting/reference/publicsalesdocumentstatusenum.md) - [PurchaseOrderStatusEnum](https://docs.wafeq.com/accounting/reference/purchaseorderstatusenum.md) - [RecognitionTypeEnum](https://docs.wafeq.com/accounting/reference/recognitiontypeenum.md) - [RevenueRecognitionStatusEnum](https://docs.wafeq.com/accounting/reference/revenuerecognitionstatusenum.md) - [SimplifiedInvoiceStatusEnum](https://docs.wafeq.com/accounting/reference/simplifiedinvoicestatusenum.md) - [StateEnum](https://docs.wafeq.com/accounting/reference/stateenum.md) - [TaxAmountTypeEnum](https://docs.wafeq.com/accounting/reference/taxamounttypeenum.md) - [TaxRateTypeEnum](https://docs.wafeq.com/accounting/reference/taxratetypeenum.md) - [TypeEnum](https://docs.wafeq.com/accounting/reference/typeenum.md) - [ExpenseReportStatusEnum](https://docs.wafeq.com/accounting/reference/expensereportstatusenum.md)