---
title: "Remove accounts from an invoice group. Removing all accounts will also delete the invoice group"
method: POST
path: "/invoice_groups/{invoice_group_id}/remove_accounts"
tags: ["InvoiceGroups"]
---

# Remove accounts from an invoice group. Removing all accounts will also delete the invoice group

`POST /invoice_groups/{invoice_group_id}/remove_accounts`

## Request

- Base URL: `https://api.togai.com`
- URL: `https://api.togai.com/invoice_groups/{invoice_group_id}/remove_accounts`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/togaihq/apis/togai-apis/docs/invoice_groups/:invoice_group_id/remove_accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

This API let’s you to remove accounts from an invoice group. Removing all accounts will also delete the invoice group

## Path parameters

- `invoice_group_id` string, required

## Request body

- UpdateInvoiceGroupAccounts: Add accounts to an invoice group
  - `accountIds` string[], required

## Response `200`

OK

- BaseSuccessResponse
  - `success` boolean, required

## Other responses

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

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/togaihq/apis/togai-apis/revisions/442f5d8f4aa0?raw)
