POST
/
invoice_groups
/
{invoice_group_id}
/
remove_accounts
curl --request POST \
  --url https://api.togai.com/invoice_groups/{invoice_group_id}/remove_accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "accountIds": [
    "ACC0001",
    "ACC0002"
  ]
}'
{
  "success": true
}

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"

Body

application/json
Payload to add or remove accounts to/from an invoice group

Add accounts to an invoice group

accountIds
string[]
required

Response

200
application/json
OK
success
boolean
required
Example:

true