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

# Apply For Commission

> Submit a monthly commission application. Immediately enters the BM verification queue.

The server computes rate and commission amount from the applicant's role and achievement.
A BM covering two categories submits two separate applications — one per category.



## OpenAPI

````yaml /openapi/payment.yaml post /api/v1/commissions
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:
    post:
      tags:
        - Commissions
      summary: Apply For Commission
      description: >-
        Submit a monthly commission application. Immediately enters the BM
        verification queue.


        The server computes rate and commission amount from the applicant's role
        and achievement.

        A BM covering two categories submits two separate applications — one per
        category.
      operationId: apply_for_commission_api_v1_commissions_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommissionApplicationCreate'
      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:
    CommissionApplicationCreate:
      properties:
        category:
          $ref: '#/components/schemas/BusinessCategory'
          description: >-
            Business category this application covers: Direct, Agency, Digital,
            or Government.
        month:
          type: integer
          maximum: 12
          minimum: 1
          title: Month
          description: Commission month (1–12), e.g. 5 for May.
        year:
          type: integer
          minimum: 2020
          title: Year
          description: Commission year, e.g. 2026.
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Supporting remarks or context from the applicant.
      type: object
      required:
        - category
        - month
        - year
      title: CommissionApplicationCreate
      description: |-
        Submit a monthly commission application.

        The server computes `achievement_percentage`, `commission_rate`, and
        `commission_amount` — do not supply these.

        **Endpoint:** `POST /api/v1/commissions`
        **Required role:** `sales:read` or `sales:write`

        A BM covering two categories must submit two separate applications —
        one per category. Each is assessed independently.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BusinessCategory:
      type: string
      enum:
        - Direct
        - Agency
        - Digital
        - Government
      title: BusinessCategory
      description: >-
        The four commercial business categories. Mirrors lead_category.name in
        commercial-service.
    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

````