# Generate Group and Division Invoice

Creates a new Premium Billing Invoice the selected Group for any Division with the Group Invoice Level AND a separate Invoice for each Division flagged as Division Invoice Level.

Endpoint: POST /generate-group-division-invoice
Version: v1
Security: apiKeyAuth, bearerAuth

## Security:

  - `apiKeyAuth` (unknown)
    apiKey in header x-api-key

  - `bearerAuth` (unknown)
    http bearer JWT

## Header parameters:

  - `vbasoftware-database` (string, required)
    Target database

## Request fields (application/json):

  - `invoice_Key` (integer)

  - `group_ID` (string)

  - `division_ID` (string)

  - `subscriber_ID` (string)

  - `groupDivisionCaptive` (string)

  - `bill_From` (string)

  - `bill_Thru` (string)

  - `invoice_Date` (string)

  - `due_Date` (string)

  - `user_ID` (string)

  - `regenerate` (boolean)

  - `input_Date` (string)

  - `activity_ID` (string)

  - `client_ID` (string)

## Response 202:

  - `202` (unknown)
    Accepted for processing

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 403:

  - `403` (unknown)
    Forbidden. The x-api-key header is missing or not valid. The API gateway sends this response, not VBAPI, so the body is not the VBAPI envelope; see Errors and troubleshooting.

## Response 429:

  - `429` (unknown)
    Too many requests. The limit is 25 requests per second sustained, with bursts up to 50, per API key. Wait and retry with exponential backoff and jitter.

