Skip to main content

Documentation Index

Fetch the complete documentation index at: https://integrations.docs.commenda.io/llms.txt

Use this file to discover all available pages before exploring further.

The Invoices Data Model is designed to standardise and simplify the handling of invoice-related information across different accounting platforms.
Pass data as a single object for synchronous writes (default). For writes with two or more records, pass data as an array and add ?run_async=true. You can also set ?run_async=true with a single record to run asynchronously and receive only a sync_id.
curl --request POST \
  --url https://api.integrations.commenda.io/v4/core/companies/1/invoices \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "data": {
    "contact_id": "123456",
    "document_number": "ROOTFI01",
    "posted_date": "2021-09-28T15:00:00.000Z",
    "due_date": "2021-09-28T15:00:00.000Z",
    "memo": "Test Invoice",
    "line_items": [
      {
        "account_id": "123456",
        "quantity": 1,
        "item_id": "123456",
        "tax_id": "123456",
        "unit_amount": 100,
        "discount_amount": 0,
        "description": "Test Item"
      }
    ]
  }
}'