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

# Get Quote Version Workflow State

> Get all button states for the Quote version dialog.

Packages ImageState, Button states and status info into one call. Collects most important warnings/errors from across all quotelines/alternatives in this quote version.
NsApiSlow threshold: 5000 ms.



## OpenAPI

````yaml /openapi/agent/openapi-v3-QuoteAgent.json post /api/v1/Agents/Quote/GetQuoteVersionWorkflowState
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - QuoteAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Agents/Quote/GetQuoteVersionWorkflowState:
    post:
      tags:
        - Quote_Agent
      summary: Get Quote Version Workflow State
      description: "Get all button states for the Quote version dialog.\n\nPackages ImageState, Button states and status info into one call. Collects most important warnings/errors from across all quotelines/alternatives in this quote version.\r\nNsApiSlow threshold: 5000 ms."
      operationId: v1QuoteAgent_GetQuoteVersionWorkflowState
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - name: Accept-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code.
          required: false
          schema:
            type: string
        - name: SO-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code. Overrides Accept-Language value.
          required: false
          schema:
            type: string
        - name: SO-Culture
          in: header
          description: >-
            Number, date formatting in a specified culture (iso2 language) code.
            Partially overrides SO-Language/Accept-Language value. Ignored if no
            Language set.
          required: false
          schema:
            type: string
        - name: SO-TimeZone
          in: header
          description: >-
            Specify the timezone code that you would like date/time responses
            converted to.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest
        description: QuoteVersionId, QuoteAlternativeId
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.QuoteVersionWorkflowState
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.QuoteVersionWorkflowState
            application/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.QuoteVersionWorkflowState
            text/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.QuoteVersionWorkflowState
            application/json-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.QuoteVersionWorkflowState
            application/merge-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.QuoteVersionWorkflowState
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.QuoteCarriers.GetQuoteVersionWorkflowStateRequest:
      description: >-
        GetQuoteVersionWorkflowState: Get all button states for the Quote
        version dialog. Packages ImageState, Button states and status info into
        one call. Collects most important warnings/errors from across all
        quotelines/alternatives in this quote version.
      type: object
      properties:
        QuoteVersionId:
          format: int32
          type: integer
        QuoteAlternativeId:
          format: int32
          type: integer
    SuperOffice.CRM.Services.QuoteVersionWorkflowState:
      description: "Information about possible button actions for the quote version dialog.\r\n<para />\r\nCarrier object for QuoteVersionWorkflowState.\r\nServices for the QuoteVersionWorkflowState Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IQuoteAgent\">Quote Agent</see>."
      type: object
      properties:
        ActionButtons:
          description: >-
            Array of visible buttons with defined actions in the quote verson
            dialog.
          type: array
          items:
            $ref: >-
              #/components/schemas/SuperOffice.CRM.Services.QuoteVersionButtonState
        StateImage:
          $ref: >-
            #/components/schemas/SuperOffice.CRM.Services.QuoteVersionButtonState
        UpdatePricesButton:
          $ref: >-
            #/components/schemas/SuperOffice.CRM.Services.QuoteVersionButtonState
        Status:
          $ref: >-
            #/components/schemas/SuperOffice.CRM.Services.QuoteVersionStatusInformation
        TableRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.TableRight'
        FieldProperties:
          description: >-
            Field property dictionary mapping field names to field access
            rights.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldProperty'
    SuperOffice.CRM.Services.QuoteVersionButtonState:
      description: "Information about possible button actions for the quote version dialog.\r\n<para />\r\nCarrier object for QuoteVersionButtonState.\r\nServices for the QuoteVersionButtonState Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IQuoteAgent\">Quote Agent</see>."
      type: object
      properties:
        Action:
          description: Action for the button
          enum:
            - None
            - ValidateVersion
            - Edit
            - Send
            - Approve
            - Reject
            - ValidateVersionAndSendIfPossible
            - ValidateVersionAndPlaceOrderIfPossible
            - CloneVersion
            - SendConfirmation
            - GetOrderState
            - UpdatePrices
          type: string
        ImageHint:
          description: Image to be shown
          type: string
        DisplayText:
          description: Text to be displayed on the button
          type: string
        TooltipText:
          description: The tooltip for the button
          type: string
        Enabled:
          description: Indicate if the button should be enabled or disabled
          type: boolean
        TableRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.TableRight'
        FieldProperties:
          description: >-
            Field property dictionary mapping field names to field access
            rights.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldProperty'
    SuperOffice.CRM.Services.QuoteVersionStatusInformation:
      description: "Information about possible button actions for the quote version dialog.\r\n<para />\r\nCarrier object for QuoteVersionStatusInformation.\r\nServices for the QuoteVersionStatusInformation Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IQuoteAgent\">Quote Agent</see>."
      type: object
      properties:
        Status:
          description: >-
            Status information for the quote version: Ok / OkWithInfo / Warn /
            Error.
          enum:
            - Ok
            - OkWithInfo
            - Warning
            - Error
          type: string
        IconHint:
          description: Icon hint for the associated message.
          type: string
        DisplayMessage:
          description: >-
            Generated error message for the Quote Version. Will check for errors
            on quote lines, alternatives and the version itself.
          type: string
        DisplayTooltip:
          description: >-
            Generated full tooltip for the Quote Version. Will check for errors
            on quote lines, alternatives and the version itself.
          type: string
        TableRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.TableRight'
        FieldProperties:
          description: >-
            Field property dictionary mapping field names to field access
            rights.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldProperty'
    SuperOffice.CRM.Security.TableRight:
      description: "Wraps a table right together with an explanatory reason.\r\nCode can indicate why access is restricted."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string
    SuperOffice.CRM.Security.FieldProperty:
      description: >-
        Class holding properties like field length, field type about a field in
        the carrier.
      type: object
      properties:
        FieldRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldRight'
        FieldType:
          type: string
        FieldLength:
          format: int32
          description: ''
          type: integer
    SuperOffice.CRM.Security.FieldRight:
      description: "Wraps the field right together with an explanatory reason.\r\nAlso adds logical operators to the field rights so that they can be easily combined."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string

````

## Related topics

- [SuperOffice.WebApi.Data.Quote GetQuoteVersionWorkflowStateRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Quote_GetQuoteVersionWorkflowStateRequest.md)
- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [SuperOffice.WebApi.Agents.QuoteAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.QuoteAgent.md)
- [SuperOffice.WebApi.Agents.IQuoteAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IQuoteAgent.md)
- [NSQuoteVersionWorkflowState](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteVersionWorkflowState.md)
- [Get Quote Version Workflow Button States](/en/api/reference/restful/agent/quote_agent/get-quote-version-workflow-button-states.md)
