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

# Get Style True Cost

> Return the per-unit true cost for a style from its cost sheet.

Used by the sales order form to auto-fill (read-only) true cost when a style is
selected directly (i.e. not via quote conversion). True cost = material +
processing + logistics + overhead (unit price). Prefers the latest finalized
cost sheet (matching the deals pipeline); if none is finalized yet, falls back
to the latest cost sheet's current (e.g. draft) version. Returns nulls (not
404) when the style has no cost sheet at all. `source` is "final" or "draft".



## OpenAPI

````yaml /api/openapi-cutmake.json get /api/v1/styles/{style_id}/true-cost
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /api/v1/styles/{style_id}/true-cost:
    get:
      tags:
        - Styles
      summary: Get Style True Cost
      description: >-
        Return the per-unit true cost for a style from its cost sheet.


        Used by the sales order form to auto-fill (read-only) true cost when a
        style is

        selected directly (i.e. not via quote conversion). True cost = material
        +

        processing + logistics + overhead (unit price). Prefers the latest
        finalized

        cost sheet (matching the deals pipeline); if none is finalized yet,
        falls back

        to the latest cost sheet's current (e.g. draft) version. Returns nulls
        (not

        404) when the style has no cost sheet at all. `source` is "final" or
        "draft".
      operationId: get_style_true_cost_api_v1_styles__style_id__true_cost_get
      parameters:
        - name: style_id
          in: path
          required: true
          schema:
            type: string
            title: Style Id
        - name: X-Org-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    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

````