---
title: "Create a new invoice"
method: POST
path: "/v1/companies/{company_id}/accounts/{account_id}/invoices"
tags: ["Invoices"]
---

# Create a new invoice

`POST /v1/companies/{company_id}/accounts/{account_id}/invoices`

## Request

- Base URL: `https://api.newmoneycompany.com`
- URL: `https://api.newmoneycompany.com/v1/companies/{company_id}/accounts/{account_id}/invoices`
- Auth: HTTP basic

Create an invoice from a given company ID to a given account ID. If you are invoicing another company that you manage look for their `shared_account_id`

## Path parameters

- `company_id` string, required
- `account_id` string, required

## Request body

- object
  - `items` object[], required: The line items on the invoice
    - `description` string
    - `quantity` integer
    - `unit_cost` integer: Cost in cents
  - `due_date_term` integer: Number of days for payment terms of invoice. Defaults to 30. Can also set to `NONE`
  - `due_date` string, date: Specific date for invoice to be due. Overrides `due_date_term` if both are specified
  - `note` string: Note to display on the invoice

## Response `200`

The new invoice object

- object
  - `data` Invoice
    - `accountId` string, nullable
    - `company_id` string, nullable
    - `denomination` string, nullable
    - `total_amount` integer, nullable
    - `invoice_number` string, nullable
    - `items` InvoiceItem[]: Array of items in the invoice
      - `description` string
      - `quantity` integer
      - `unit_cost` integer
      - `line_total` integer, nullable
    - `note` string, nullable
    - `close_time` string, date-time, nullable
    - `status` 'OPEN' | 'VOIDED' | 'PAID' | 'PENDING' | 'OVERDUE' | 'PARTIAL_PAID' | 'DRAFT'
    - `cash_balance_id` string, nullable: Target cash balance ID for funds to go to once invoice is paid
    - `auth_token` string, nullable
    - `due_date` string, date-time, nullable
    - `id` string, nullable

## Changes

- **2026-11-03** `fc213c1eae56`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/newmoneycompany/apis/new-money-company-api/changes/v1/companies/:company_id/accounts/:account_id/invoices/post.md)

---

[API](https://skmtc.dev/newmoneycompany/apis/new-money-company-api.md) - [All operations](https://skmtc.dev/newmoneycompany/apis/new-money-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/newmoneycompany/apis/new-money-company-api/revisions/fc213c1eae56?raw)
