Definition

Sales and purchase entries provide the API route for creating customer invoices (sales) and supplier invoices (purchases) in the accounting system.
They abstract the underlying accounting complexity while ensuring that every transaction is properly reflected in the ledger.

Purpose

  • Simplify invoice creation for users by providing a business-friendly interface.
  • Automatically generate balanced journal entries behind the scenes, ensuring accounting integrity.
  • Standardize behavior across accounting systems, whether or not the target system natively supports invoices.
  • Ensure proper linkage to ledger accounts for revenue, expenses, taxes, and receivables/payables.
  • Integrate with payment reconciliation processes and matching workflows.

Data Abstraction Logic

  • Target system supports invoices: creates native invoice objects in the accounting software.
  • Target system lacks invoice support: automatically generates equivalent journal entries to produce the same accounting result.
  • Guarantees

Endpoints

MethodEndpointDescription
POSTCreate Sale/Purchase EntryCreate a single sale/purchase entry
POSTCreate Sale/Purchase Entry (Multiple Plans)Create multiple entries with analytic plans
GETGet Invoices by TypeList invoices by type (sale/purchase)
GETGet One InvoiceRetrieve a specific invoice
GETGet One Invoice (Multiple Analytic Plans)Retrieve invoice with multiple analytic plans
GETGet Invoices by Type (Multiple Analytic Plans)List invoices by type with multiple analytic plans

See also