InvoiceGroups
List Invoice Groups
Introduction
APIs
- Authentication
- Customers
- Accounts
- Aliases
- Event Schemas
- Usage Meters
- AddOns
- Licenses
- Feature
- (Deprecated) Price Plans
- Price Plan V2
- Settings
- Price Experimentation
- Jobs
- Event Ingestion
- Entitlements
- Event Management
- Metrics
- Credits
- Invoices
- Payments
- Wallet
- InvoiceGroups
- Alerts
- Reports
InvoiceGroups
List Invoice Groups
This API let’s you to list invoice groups
GET
/
invoice_groups
curl --request GET \
--url https://api.togai.com/invoice_groups \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"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"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
Response to get invoice group request
Invoice group details
Maximum length:
320
billing address of the customer
Contact number
Address line 1 (eg. Street, PO Box, Company Name)
Address line 2 (eg. apartment, suite, unit or building)
ZIP or postal code
City, district, suburb, town or village
State, county, province or region
Two letter country code ISO-3166-1 Alpha-2
Required range:
x >= 0
curl --request GET \
--url https://api.togai.com/invoice_groups \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"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"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}