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

# Reject Cost Sheet

> Reject a cost sheet with a required reason (managers/admins only).



## OpenAPI

````yaml /api/openapi-cutmake.json post /costings/{costing_id}/reject
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /costings/{costing_id}/reject:
    post:
      tags:
        - Costing Management
      summary: Reject Cost Sheet
      description: Reject a cost sheet with a required reason (managers/admins only).
      operationId: reject_cost_sheet_costings__costing_id__reject_post
      parameters:
        - name: costing_id
          in: path
          required: true
          schema:
            type: string
            description: The costing document ID (e.g., CS-2024-001)
            title: Costing Id
          description: The costing document ID (e.g., CS-2024-001)
        - name: X-User-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-User-Id
        - name: X-Org-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Org-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostSheetRejectRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostSheetActionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    CostSheetRejectRequest:
      properties:
        reason:
          type: string
          minLength: 1
          title: Reason
        comments:
          anyOf:
            - type: string
            - type: 'null'
          title: Comments
        versionNumber:
          anyOf:
            - type: integer
            - type: 'null'
          title: Versionnumber
      type: object
      required:
        - reason
      title: CostSheetRejectRequest
      description: Reject endpoint requires a non-empty reason
    CostSheetActionResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        cost_sheet_id:
          type: string
          title: Cost Sheet Id
        document_id:
          type: string
          title: Document Id
        version_number:
          type: integer
          title: Version Number
        status:
          type: string
          title: Status
      type: object
      required:
        - success
        - message
        - cost_sheet_id
        - document_id
        - version_number
        - status
      title: CostSheetActionResponse
      description: Response shared by action endpoints (same structure as update response)
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````