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

# Distribute Term

> Step 9 of the bill-run flow. Sends published bills to customers via the configured delivery channel (email, portal, etc.). Term must be in `Published` status before this step. Pass `billId` to distribute a single bill only.



## OpenAPI

````yaml POST /billspree/bills/distribute-bills
openapi: 3.1.0
info:
  title: Billspree API
  description: REST API for Billspree — billing, AR management, and workspace operations.
  version: 1.0.0
servers:
  - url: https://{workspace}.spreesuite.com
    variables:
      workspace:
        default: your-workspace
        description: Your organization's subdomain (e.g. demo → demo.spreesuite.com)
security:
  - apiKeyAuth: []
paths:
  /billspree/bills/distribute-bills:
    post:
      tags:
        - Bill Run
      summary: Distribute Term
      description: >-
        Step 9 of the bill-run flow. Sends published bills to customers via the
        configured delivery channel (email, portal, etc.). Term must be in
        `Published` status before this step. Pass `billId` to distribute a
        single bill only.
      operationId: distributeBills
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DistributeBillsRequest'
            example:
              method: Distribute
              action: Distribute Bills
              apiVersion: v2
              operation: schedule
              data:
                termID: 5
                sheduleTime: '2026-06-15T10:00:00'
              billId: null
      responses:
        '200':
          description: Distribute job registered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
components:
  schemas:
    DistributeBillsRequest:
      type: object
      required:
        - method
        - action
        - apiVersion
        - operation
        - data
      properties:
        method:
          type: string
          description: Always `"Distribute"`
          example: Distribute
        action:
          type: string
          description: Always `"Distribute Bills"`
          example: Distribute Bills
        apiVersion:
          type: string
          example: v2
        operation:
          type: string
          description: Always `"schedule"`
          example: schedule
        billId:
          type: integer
          nullable: true
          description: >-
            Pass to distribute a single bill only — `null` to distribute all
            bills in the term
        data:
          $ref: '#/components/schemas/TermScheduleData'
    GenericSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
        statusCode:
          type: integer
        message:
          type: string
        error:
          nullable: true
        data:
          type: object
    TermScheduleData:
      type: object
      required:
        - termID
        - sheduleTime
      properties:
        termID:
          type: integer
          description: The `termID` from Get Terms
        sheduleTime:
          type: string
          description: >-
            ISO datetime — pass current time to run immediately, or a future
            time to schedule
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Auth token returned from the login endpoint. Send as: `Authorization:
        <token>` (no Bearer prefix)

````