---
title: "POST /invoices"
method: POST
path: "/invoices"
tags: ["Invoices"]
---

# POST /invoices

`POST /invoices`

Creates an individual invoice for a business.

## Request body

- PushInvoiceDto
  - `connection` PushConnection, required
    - `businessName` string, required — Unique business name identifier.
    - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'shopify' | 'square' | 'plaid' | 'myob' | 'zohoBooks' | 'byod', required — Name of accounting platform service.
  - `data` PushInvoice, required
    - `passThrough` object
    - `invoiceNumber` string
    - `postedDate` string, date
    - `dueDate` string, date
    - `currency` string
    - `currencyRate` number, float
    - `memo` string
    - `customerRef` string, required
    - `lines` InvoiceLineItem[], required
      - `description` string
      - `quantity` number, float, required
      - `inventoryRef` string
      - `locationRef` string
      - `accountRef` string
      - `discountPercentage` number
      - `subTotal` number, float
      - `totalAmount` number, float
      - `unitAmount` number, float
      - `taxAmount` number, float
      - `taxRef` string

## Response `200`

- PushInvoiceResponseDto
  - `pushCommunicationId` string, required
  - `requestedOn` string, date-time, required
  - `status` 'success' | 'failed' | 'pending', required
  - `businessName` string, required
  - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod', required
  - `data` PushInvoice, required
    - `passThrough` object
    - `invoiceNumber` string
    - `postedDate` string, date
    - `dueDate` string, date
    - `currency` string
    - `currencyRate` number, float
    - `memo` string
    - `customerRef` string, required
    - `lines` InvoiceLineItem[], required
      - `description` string
      - `quantity` number, float, required
      - `inventoryRef` string
      - `locationRef` string
      - `accountRef` string
      - `discountPercentage` number
      - `subTotal` number, float
      - `totalAmount` number, float
      - `unitAmount` number, float
      - `taxAmount` number, float
      - `taxRef` string

## Other responses

- `400` — Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401` — Unauthorized - Not logged in or log in expired
- `403` — Forbidden - Not enough permission
- `500` — Server Error

---

[API](https://skmtc.net/railz/apis/fis-accounting-data-as-a-service-api.md) · [All operations](https://skmtc.net/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/railz/fis-accounting-data-as-a-service-api/revisions/5cdfae3fa1fa/schema)
