> ## 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.

# Process Term

> Step 6 of the bill-run flow. Runs billing calculations for all subscriptions in the term. Registered as an async job — pass the current time in `sheduleTime` to run immediately.



## OpenAPI

````yaml POST /billspree/terms/process-term
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/terms/process-term:
    post:
      tags:
        - Bill Run
      summary: Process Term
      description: >-
        Step 6 of the bill-run flow. Runs billing calculations for all
        subscriptions in the term. Registered as an async job — pass the current
        time in `sheduleTime` to run immediately.
      operationId: processTerm
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TermScheduleRequest'
            example:
              method: Update
              action: Process Term
              apiVersion: v2
              operation: schedule
              data:
                termID: 5
                sheduleTime: '2026-06-15T10:00:00'
      responses:
        '200':
          description: Term processing job registered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
components:
  schemas:
    TermScheduleRequest:
      type: object
      required:
        - method
        - action
        - apiVersion
        - operation
        - data
      properties:
        method:
          type: string
          example: Update
        action:
          type: string
        apiVersion:
          type: string
          example: v2
        operation:
          type: string
          description: >-
            Always `"schedule"` — all mutating bill-run operations are
            registered as async jobs
          example: schedule
        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)

````