GET
/
invoice_groups
/
{invoice_group_id}
curl --request GET \
  --url https://api.togai.com/invoice_groups/{invoice_group_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "inv_group.20rvWRxQcQK.0ZwPG",
  "name": "Invoice Group 1",
  "email": "acme@acme.com",
  "dailyInvoiceConsolidation": true,
  "accountsCount": 2,
  "accounts": [
    "ACC0001",
    "ACC0002"
  ],
  "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",
  "nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}

Authorizations

Authorization
string
header
required

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

Path Parameters

invoice_group_id
string
required
Maximum length: 512
Example:

"inv_grp.20rqjgFJf2O.ejl25"

Response

200
application/json
Response to get invoice group request

Invoice group details

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

billing address of the customer

accountsCount
integer
required
Required range: x >= 0
createdAt
string
required
updatedAt
string
required
accounts
string[]
required
netTermDays
integer
nextToken
string