> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmeasure.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Next Invoice

> Generate the next invoice for the subscription right away. This is an asynchronous process so changes won't be reflected immediately.



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json post /companies/{company_id}/subscriptions/{id}/generate_next_invoice
openapi: 3.1.0
info:
  title: Measure API
  description: APIs to communicate with Measure
  version: 1.0.0
servers:
  - url: https://api.getmeasure.com/api/v1
security: []
paths:
  /companies/{company_id}/subscriptions/{id}/generate_next_invoice:
    post:
      tags:
        - Subscriptions
      summary: Generate Next Invoice
      description: >-
        Generate the next invoice for the subscription right away. This is an
        asynchronous process so changes won't be reflected immediately.
      operationId: Generate_Next_Invoice
      parameters:
        - name: company_id
          in: path
          description: 'The company ID with the prefix ''cmp_''. '
          required: true
          schema:
            description: 'The company ID with the prefix ''cmp_''. '
            type: string
        - name: id
          in: path
          description: The resource ID
          required: true
          schema:
            description: The resource ID
            type: string
        - name: Idempotency-Key
          in: header
          description: >-
            The idempotency key that will be used to ensure the request is only
            performed once
          schema:
            description: >-
              The idempotency key that will be used to ensure the request is
              only performed once
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBaseSuccessResponse'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    ResponseBaseSuccessResponse:
      properties:
        success:
          type: boolean
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````