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

# Compute Token Payroll Current Step

> Derives each payroll's current step and contributor/settlement counts from its settlement orders.

Required scope: `payroll:read`

## OpenAPI

````yaml api-reference/openapi.json POST /stablecoin-payroll/compute-token-payroll-current-step
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /stablecoin-payroll/compute-token-payroll-current-step:
    post:
      operationId: computeTokenPayrollCurrentStep
      summary: Compute Token Payroll Current Step
      x-toku-required-scope: payroll:read
      description: >-
        Derives each payroll's current step and contributor/settlement counts
        from its settlement orders.


        Required scope: `payroll:read`
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ComputeTokenPayrollCurrentStepRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputeTokenPayrollCurrentStepResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    ComputeTokenPayrollCurrentStepRequest:
      type: object
      properties:
        tokenPayrollIDs:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 200
          minItems: 1
          maxItems: 10000
      required:
        - tokenPayrollIDs
    ComputeTokenPayrollCurrentStepResponse:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/PayrollTokenFirstSettlementStep'
      description: Request regeneration does not infer response shapes.
    PayrollTokenFirstSettlementStep:
      type: object
      properties:
        currentStep:
          type: string
          enum:
            - REVIEW
            - APPROVED
            - IN_PROGRESS
            - COMPLETED
        totalContributors:
          type: integer
        contributorsWithSettlementOrders:
          type: integer
        isApproved:
          type: boolean
      required:
        - currentStep
        - totalContributors
        - contributorsWithSettlementOrders
        - isApproved
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
