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

# Cm Decision

> Commercial Manager review at GATE_CM_APPROVAL — second tier, scoped to the
CM's category. Requires prior BM approval.

Approve: log CM_APPROVED → notify commercial-service (cm_approve → CD gate).
Reject:  log CM_REJECTED → notify commercial-service (cm_reject → re-upload).



## OpenAPI

````yaml /openapi/inventory.yaml post /api/v1/bookings/{order_id}/cm-decision
openapi: 3.1.0
info:
  title: Cape Digi - Inventory Service
  description: >-
    Ad inventory catalog, rate cards, booking orders, campaign tracking, ad
    asset management, and commercial transmission scheduling.
  version: 1.0.0
servers:
  - url: https://api.capedigital.co.ke/inventory
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/bookings/{order_id}/cm-decision:
    post:
      tags:
        - Bookings
      summary: Cm Decision
      description: >-
        Commercial Manager review at GATE_CM_APPROVAL — second tier, scoped to
        the

        CM's category. Requires prior BM approval.


        Approve: log CM_APPROVED → notify commercial-service (cm_approve → CD
        gate).

        Reject:  log CM_REJECTED → notify commercial-service (cm_reject →
        re-upload).
      operationId: cm_decision_api_v1_bookings__order_id__cm_decision_post
      parameters:
        - name: order_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Order Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CmDecisionBody'
      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:
    CmDecisionBody:
      properties:
        decision:
          type: string
          enum:
            - approve
            - reject
          title: Decision
        remarks:
          anyOf:
            - type: string
            - type: 'null'
          title: Remarks
      type: object
      required:
        - decision
      title: CmDecisionBody
    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

````