---
title: "Create an invoice group"
method: POST
path: "/invoice_groups"
tags: ["InvoiceGroups"]
---

# Create an invoice group

`POST /invoice_groups`

This API let’s you to create an invoice group

## Request body

- CreateInvoiceGroupRequest — Create an invoice group
  - `name` string, required
  - `email` string, required
  - `dailyInvoiceConsolidation` boolean, required
  - `accountIds` string[], required
  - `netTermDays` integer
  - `address` Address, required — billing address of the customer
    - `phoneNumber` string — Contact number
    - `line1` string — Address line 1 (eg. Street, PO Box, Company Name)
    - `line2` string — Address line 2 (eg. apartment, suite, unit or building)
    - `postalCode` string — ZIP or postal code
    - `city` string — City, district, suburb, town or village
    - `state` string — State, county, province or region
    - `country` string — Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)

## Response `200`

Response to create invoice group request

- InvoiceGroups — Invoice group details
  - `id` string, required
  - `name` string, required
  - `email` string, required
  - `dailyInvoiceConsolidation` boolean, required
  - `netTermDays` integer
  - `invoiceCurrency` string, required
  - `billingAddress` Address, required — billing address of the customer
    - `phoneNumber` string — Contact number
    - `line1` string — Address line 1 (eg. Street, PO Box, Company Name)
    - `line2` string — Address line 2 (eg. apartment, suite, unit or building)
    - `postalCode` string — ZIP or postal code
    - `city` string — City, district, suburb, town or village
    - `state` string — State, county, province or region
    - `country` string — Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
  - `accountsCount` integer, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Error response
- `401` — Error response
- `403` — Error response
- `404` — Error response
- `429` — Error response
- `default` — Error response

## Changes

- **2024-03-01** `6fb940b0dad9` — 1 warning
  - the `email` request property's maxLength was set to `320`
- **2023-11-03** `a6c96c5ec06e` — 2 info
  - added the new optional request property `address/phoneNumber`
  - added the optional property `allOf[#/components/schemas/InvoiceGroupDetails]/billingAddress/phoneNumber` to the response with the `200` status
- **2023-09-07** `cfabb13f9886` — 3 breaking, 1 warning, 4 info
  - added the new required request property `email`
  - added the new required request property `name`
  - removed the required property `allOf[#/components/schemas/InvoiceGroupDetails]/gracePeriod` from the response with the `200` status
  - removed the request property `gracePeriod`
  - …4 more
- **2023-09-02** `6b13f6f47735` — 5 breaking, 4 warning, 1 info
  - added the new required request property `gracePeriod`
  - removed the required property `allOf[#/components/schemas/InvoiceGroupDetails]/email` from the response with the `200` status
  - removed the required property `allOf[#/components/schemas/InvoiceGroupDetails]/name` from the response with the `200` status
  - removed the required property `allOf[subschema #2]/createdAt` from the response with the `200` status
  - …6 more

[Change history](https://skmtc.dev/togaihq/apis/togai-apis/changes/invoice_groups/post.md)

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) · [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/togaihq/togai-apis/revisions/442f5d8f4aa0/schema)
