POST
/
invoice_groups
curl --request POST \
  --url https://api.togai.com/invoice_groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dailyInvoiceConsolidation": true,
  "accountIds": [
    "ACC0001",
    "ACC0002"
  ],
  "netTermDays": 30
}'
{
  "id": "inv_group.20rvWRxQcQK.0ZwPG",
  "name": "Invoice Group 1",
  "email": "acme@acme.com",
  "dailyInvoiceConsolidation": true,
  "accountsCount": 2,
  "gracePeriod": 3,
  "netTermDays": 45,
  "invoiceCurrency": "USD",
  "billingAddress": {
    "phoneNumber": "+919876543210",
    "line1": "2281 Broadway Street",
    "line2": "G-31",
    "postalCode": "29501",
    "city": "Florence",
    "state": "South Carolina",
    "country": "US"
  },
  "createdAt": "2023-07-26T12:36:56.58015Z",
  "updatedAt": "2023-07-26T12:36:56.58015Z"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
email
string
required
dailyInvoiceConsolidation
boolean
required
accountIds
string[]
required
netTermDays
integer
address
object
required

billing address of the customer

Response

200 - application/json
id
string
required
name
string
required
email
string
required
dailyInvoiceConsolidation
boolean
required
netTermDays
integer
invoiceCurrency
string
required
billingAddress
object
required

billing address of the customer

accountsCount
integer
required
createdAt
string
required
updatedAt
string
required