Skip to main content
POST
/
invoice_groups
Create an invoice group
curl --request POST \
  --url https://api.togai.com/invoice_groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "<string>",
  "dailyInvoiceConsolidation": true,
  "accountIds": [
    "<string>"
  ],
  "address": {
    "phoneNumber": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "postalCode": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>"
  },
  "netTermDays": 123
}
'
{
  "id": "<string>",
  "name": "<string>",
  "email": "<string>",
  "dailyInvoiceConsolidation": true,
  "invoiceCurrency": "<string>",
  "billingAddress": {
    "phoneNumber": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "postalCode": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>"
  },
  "accountsCount": 1,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "netTermDays": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Payload to approve or decline a proposal

Create an invoice group

name
string
required
email
string
required
Maximum string length: 320
dailyInvoiceConsolidation
boolean
required
accountIds
string[]
required
Required array length: 1 - 100 elements
address
object
required

billing address of the customer

netTermDays
integer<int32>

Response

Response to create invoice group request

Invoice group details

id
string
required
name
string
required
email
string
required
Maximum string length: 320
dailyInvoiceConsolidation
boolean
required
invoiceCurrency
string
required
billingAddress
object
required

billing address of the customer

accountsCount
integer<int32>
required
Required range: x >= 0
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
netTermDays
integer<int32>