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

# Bm Action

> Business Manager verifies the application (PENDING_BM → PENDING_CM | REJECTED).



## OpenAPI

````yaml /openapi/payment.yaml post /api/v1/commissions/{application_id}/bm-action
openapi: 3.1.0
info:
  title: Cape Media - Payment Service
  description: >-
    Invoice requests, invoice uploads, payment tracking, and commission
    management.
  version: 1.0.0
servers:
  - url: https://api.capedigital.co.ke/payment
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/commissions/{application_id}/bm-action:
    post:
      tags:
        - Commissions
      summary: Bm Action
      description: >-
        Business Manager verifies the application (PENDING_BM → PENDING_CM |
        REJECTED).
      operationId: bm_action_api_v1_commissions__application_id__bm_action_post
      parameters:
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Application Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalAction'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApprovalAction:
      properties:
        decision:
          type: string
          enum:
            - APPROVED
            - REJECTED
          title: Decision
          description: Outcome of this step.
        remarks:
          type: string
          title: Remarks
          description: Mandatory explanation — visible to the applicant.
      type: object
      required:
        - decision
        - remarks
      title: ApprovalAction
      description: >-
        An approval or rejection action at any step in the commission workflow.


        **Required role by step:**


        | Step | Endpoint | Required role |

        |---|---|---|

        | BM verification | `POST /commissions/{id}/bm-action` |
        `business_manager` realm role |

        | CM approval | `POST /commissions/{id}/cm-action` |
        `commercial_manager` realm role |

        | CD sign-off | `POST /commissions/{id}/cd-action` |
        `commercial_director` realm role |

        | Finance payout | `POST /commissions/{id}/payout` |
        `finance:manage_commission` |
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````