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

# Read a past price with its inputs



## OpenAPI

````yaml /api-reference/openapi.json get /v1/decisions/{id}
openapi: 3.1.0
info:
  title: Elastly API
  version: '2026-11-01'
servers:
  - url: https://api.elastly.ai
security: []
paths:
  /v1/decisions/{id}:
    get:
      summary: Read a past price with its inputs
      operationId: getDecision
      parameters:
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: string
                pattern: ^[A-Za-z0-9_-]{1,120}$
          required: true
          name: id
          in: path
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          required: false
          name: Elastly-Version
          in: header
      responses:
        '200':
          description: Read a past price with its inputs
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  priceId:
                    type: string
                    pattern: ^[A-Za-z0-9_-]{1,120}$
                  at:
                    type: string
                    format: date-time
                  source:
                    type: string
                    enum:
                      - quote
                      - order
                      - api
                      - recompute
                      - shadow
                      - publication
                  pricingChannel:
                    type: string
                    enum:
                      - quote
                      - api
                      - storefront
                      - published
                  served:
                    type: boolean
                  environment:
                    type: string
                    enum:
                      - live
                      - test
                  buyerKind:
                    type: string
                    enum:
                      - customer
                      - channel
                  customerId:
                    type:
                      - string
                      - 'null'
                    format: uuid
                  sku:
                    type: string
                  unit:
                    type: string
                  quantity:
                    type: string
                    pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                  currency:
                    type: string
                    pattern: ^[A-Z]{3}$
                  price:
                    type:
                      - string
                      - 'null'
                    pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                  floor:
                    type:
                      - string
                      - 'null'
                    pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                  target:
                    type:
                      - string
                      - 'null'
                    pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                  ceiling:
                    type:
                      - string
                      - 'null'
                    pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                  costAmount:
                    type:
                      - string
                      - 'null'
                    pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                  costBasis:
                    type:
                      - string
                      - 'null'
                    enum:
                      - purchase
                      - landed
                      - standard
                      - average
                      - estimated
                      - null
                  resultState:
                    type: string
                    enum:
                      - ok
                      - missing_cost
                      - stale_cost
                      - missing_data
                      - blocked_floor
                      - blocked_map
                      - blocked_exposure
                      - unavailable
                  pricingVersionId:
                    type: string
                    format: uuid
                  evaluationFingerprint:
                    type: string
                  resolvedInputs: {}
                  traceId:
                    type: string
                    format: uuid
                  outcome:
                    type:
                      - object
                      - 'null'
                    properties:
                      outcome:
                        type: string
                        enum:
                          - won
                          - lost
                      quantity:
                        type: string
                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                      reasonCode:
                        type: string
                      occurredAt:
                        type: string
                        format: date-time
                    required:
                      - outcome
                      - occurredAt
                    additionalProperties: false
                required:
                  - id
                  - priceId
                  - at
                  - source
                  - pricingChannel
                  - served
                  - environment
                  - buyerKind
                  - customerId
                  - sku
                  - unit
                  - quantity
                  - currency
                  - price
                  - floor
                  - target
                  - ceiling
                  - costAmount
                  - costBasis
                  - resultState
                  - pricingVersionId
                  - evaluationFingerprint
                  - traceId
                  - outcome
                additionalProperties: false
        '400':
          description: unsupported_api_version
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: unauthenticated
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: >-
            insufficient_scope, plan_required, workspace_read_only,
            workspace_locked, workspace_purging
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: not_found
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: rate_limited
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: service_unavailable
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - apiKey: []
components:
  schemas:
    ApiError:
      type: object
      properties:
        error:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - access_denied
            - rate_limited
            - plan_required
            - workspace_read_only
            - workspace_locked
            - workspace_purging
            - service_unavailable
            - insufficient_scope
            - not_found
            - idempotency_key_reused
            - idempotency_key_required
            - invalid_idempotency_key
            - idempotency_request_in_progress
            - unsupported_api_version
            - invalid_cursor
            - quote_ref_customer_mismatch
            - channel_publishing
            - connection_unavailable
            - import_not_found
            - import_state_conflict
            - file_too_large
            - unsupported_format
            - writeback_unavailable
            - write_access_revoked
            - writeback_paused
            - too_many_claims
            - quote_not_found
        requestId:
          type: string
      required:
        - error
        - requestId
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.