# Accounting
These group of endpoints are designed to manage accounting operations such as invoice management, payment processing, and general ledger entries. These endpoints are essential for ensuring accurate financial records and efficient financial operations.
**Key Features**
- **Invoice Management:** Create, retrieve, and update invoices.
- **Payment Processing:** Handle payment transactions and manage payment records.
- **General Ledger:** Access and update general ledger entries for comprehensive financial tracking.
**Business Value**
- **Financial Accuracy:** Ensures accurate and up-to-date financial records, minimizing errors and discrepancies.
- **Operational Efficiency:** Streamlines financial operations, reducing the time and effort required to manage accounting tasks.
- **Compliance:** Helps meet regulatory requirements by maintaining detailed and accurate financial records.
**Use Cases**
- **Financial Management:** Efficiently manage financial transactions and records, ensuring all financial data is current and accurate.
- **Audit Preparation:** Maintain detailed financial records to facilitate audit processes and ensure compliance.
- **Budgeting and Forecasting:** Use financial data to create budgets and forecast future financial performance.
**Why Use These Endpoints**
Utilizing the endpoints under the `Accounting` tag helps to streamline financial operations by ensuring data integrity and accuracy. They are essential tools for maintaining financial health and compliance within the organization.
## Get an Accounting Document
- [GET /api/external/accounting/attachments/{uuid}](https://developer.fl3xx.com/reference/accounting/getaccountingdocumentbyuuid.md): Get an accounting document using its UUID.
## Get Bookings
- [GET /api/external/quote/bookings](https://developer.fl3xx.com/reference/accounting/getbookings.md): Searches for bookings using the provided filters.
## Get a Booking
- [GET /api/external/accounting/booking/{reference}](https://developer.fl3xx.com/reference/accounting/getaccountentriesbybookingid.md): Fetches details of a booking using its ID.
## Get Invoices
- [GET /api/external/accounting/booking/{reference}/invoices](https://developer.fl3xx.com/reference/accounting/getbookinginvoicesbybookingid.md): Fetches all invoices associated with a specific booking.
## Get Split Pricing
- [GET /api/external/accounting/booking/{reference}/split](https://developer.fl3xx.com/reference/accounting/getbookingsplitinfobybookingid.md): Fetches split pricing information (cost, owner share, profitability) for a specific bookingId.
## Add GL Code to Account Entry
- [PUT /api/external/accounting/{accountEntryId}](https://developer.fl3xx.com/reference/accounting/putaccountcodetoaccountentry.md): Adds a General Ledger (GL) code to an existing account entry identified by its ID.
## Get Invoice Payments
- [GET /api/external/accounting/invoice-payments](https://developer.fl3xx.com/reference/accounting/getinvoicepayments.md): Fetches payments associated with a booking and/or invoice.
## Creates an Invoice Payment
- [POST /api/external/accounting/invoice-payments](https://developer.fl3xx.com/reference/accounting/postinvoicepayment.md): Creates a new payment associated with a booking and/or invoice.
## Get an Invoice Payment
- [GET /api/external/accounting/invoice-payments/{paymentId}](https://developer.fl3xx.com/reference/accounting/getinvoicepaymentbyid.md): Gets a booking and/or invoice payment by its ID.
## Update an Invoice Payment
- [PUT /api/external/accounting/invoice-payments/{paymentId}](https://developer.fl3xx.com/reference/accounting/putinvoicepaymentbyid.md): Updates a booking and/or invoice payment information.
## Delete an Invoice Payment
- [DELETE /api/external/accounting/invoice-payments/{paymentId}](https://developer.fl3xx.com/reference/accounting/deleteinvoicepaymentbyid.md): Delete booking and/or invoice payment.
## Add Invoice Payment Document
- [POST /api/external/accounting/invoice-payments/{paymentId}/documents](https://developer.fl3xx.com/reference/accounting/postinvoicepaymentdocument.md): Associates a (PDF, JPG, PNG or JPEG) file to a booking and/or invoice payment.
## Get Invoice Payment Document
- [GET /api/external/accounting/invoice-payments/{paymentId}/documents/{uuid}](https://developer.fl3xx.com/reference/accounting/getinvoicepaymentdocumentbyuuid.md): Fetches a document associated with a booking and/or invoice payment by its UUID.
## Delete Invoice Payment Document
- [DELETE /api/external/accounting/invoice-payments/{paymentId}/documents/{uuid}](https://developer.fl3xx.com/reference/accounting/deleteinvoicepaymentdocumentbyuuid.md): Deletes a document associated with a booking and/or invoice payment by its UUID.
## Get Crew expenses
- [GET /api/external/crew-expenses](https://developer.fl3xx.com/reference/accounting/getcrewexpenses.md): This endpoint allows users to retrieve a list of expenses associated with crew members. It provides detailed information about each expense, including the type, amount, date, and associated crew member.
A finance manager wants to review all expenses submitted by crew members for a specific month. By using this endpoint, they can fetch a comprehensive list of expenses, filter them by date, and analyze the data to ensure all expenses are accounted for and within the budget.
## Download Crew Expense Document
- [GET /api/external/crew-expenses/{crewExpenseId}/documents/{documentUuid}](https://developer.fl3xx.com/reference/accounting/getcrewexpensedocument.md): This endpoint allows users to download a document associated with a specific crew expense. It requires the and as path parameters to identify the specific document to be downloaded.
A finance manager needs to review the receipts submitted by a crew member for a specific expense. By using this endpoint, they can download the receipt document associated with the crew expense for further review and verification.
## Get Accounting Projects
- [GET /api/external/accounting-projects](https://developer.fl3xx.com/reference/accounting/accountingprojectsget.md): This endpoint retrieves a paginated list of accounting projects. It allows users to manage and access project details efficiently, supporting financial tracking and project organization.
A finance manager can use this endpoint to retrieve a list of accounting projects for review, ensuring all projects are tracked and managed effectively.
## Create an Accounting Project
- [POST /api/external/accounting-projects](https://developer.fl3xx.com/reference/accounting/accountingprojectspost.md): This endpoint allows users to create a new accounting project. It supports financial tracking and project organization by enabling the addition of project details.
A finance manager can use this endpoint to create a new accounting project, ensuring all financial activities are properly tracked and managed.
## Update an Accounting Project
- [PUT /api/external/accounting-projects/{projectId}](https://developer.fl3xx.com/reference/accounting/accountingprojectsput.md): This endpoint allows users to update an existing accounting project. It supports financial tracking and project organization by enabling modifications to project details.
A finance manager can use this endpoint to update details of an accounting project, ensuring all financial activities are properly tracked and managed.