---
title: "Export invoices"
method: POST
path: "/v2/billing/invoices/export"
tags: ["Billing"]
---

# Export invoices

`POST /v2/billing/invoices/export`

## Request

- Base URL: `https://app.ninjarmm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ninjarmm.com/v2/billing/invoices/export`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionKey`
- TypeScript: <https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/docs/v2/billing/invoices/export/post.ts> (a function with typed inputs; its response is checked against the schema)

Exports approved invoices to be marked as completed.

## Request body

- object
  - `invoiceIds` integer[], required

## Response `200`

Invoices successfully exported

- object

## Other responses

- `400`: Bad request - Empty invoice IDs list or invalid invoice status
- `403`: Forbidden - Insufficient permissions

## Changes

- **2026-07-12** `dec5d4ed264e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/changes/v2/billing/invoices/export/post.md)

---

[API](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0.md) - [All operations](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/revisions/5ce571d1bb71?raw)
