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

# Price one line for a customer and quantity

> Targets: one line within 100 ms at the 95th percentile and 250 ms at the 99th; 100 lines within 1 s at the 95th percentile. Compare versions only within one source.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/price
openapi: 3.1.0
info:
  title: Elastly API
  version: '2026-11-01'
servers:
  - url: https://api.elastly.ai
security: []
paths:
  /v1/price:
    post:
      summary: Price one line for a customer and quantity
      description: >-
        Targets: one line within 100 ms at the 95th percentile and 250 ms at the
        99th; 100 lines within 1 s at the 95th percentile. Compare versions only
        within one source.
      operationId: price
      parameters:
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          required: false
          name: Elastly-Version
          in: header
        - schema:
            type: string
            pattern: ^[\x21-\x7e]{1,255}$
          required: false
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                buyer:
                  oneOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - customer
                        customerId:
                          type: string
                          minLength: 1
                          maxLength: 128
                          example: 6f1c2a4e-8b7d-4c3e-9a51-2d0f7e3b9c84
                        customerRef:
                          type: string
                          minLength: 1
                          maxLength: 255
                          description: >-
                            The customer's record key in the connected source
                            system.
                          example: CUST-2207
                        paymentTermsId:
                          type: string
                          format: uuid
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - channel
                        channelId:
                          type: string
                          minLength: 1
                          maxLength: 128
                      required:
                        - kind
                        - channelId
                      additionalProperties: false
                currency:
                  type: string
                  pattern: ^[A-Z]{3}$
                order:
                  type: object
                  properties:
                    bill:
                      type: object
                      properties:
                        amount:
                          type: string
                          pattern: ^-?(?:0|[1-9]\d*)$
                        currency:
                          type: string
                          pattern: ^[A-Z]{3}$
                        scale:
                          type: integer
                          minimum: 0
                          maximum: 18
                        roundingPolicyVersion:
                          type: string
                          minLength: 1
                      required:
                        - amount
                        - currency
                        - scale
                        - roundingPolicyVersion
                      additionalProperties: false
                    quantities:
                      type: array
                      items:
                        type: object
                        properties:
                          sku:
                            type: string
                            minLength: 1
                            maxLength: 128
                            pattern: ^[^\p{C}\p{Zl}\p{Zp}]+$/u
                          unit:
                            type: string
                            minLength: 1
                            maxLength: 32
                          qty:
                            type: string
                            pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                        required:
                          - sku
                          - unit
                          - qty
                        additionalProperties: false
                      minItems: 1
                      maxItems: 1000
                  additionalProperties: false
                warehouseId:
                  type: string
                  format: uuid
                deliveryCountry:
                  type: string
                  pattern: ^[A-Z]{2}$
                lines:
                  type: array
                  items:
                    type: object
                    properties:
                      lineRef:
                        type: string
                        minLength: 1
                        maxLength: 64
                      sku:
                        type: string
                        minLength: 1
                        maxLength: 128
                        pattern: ^[^\p{C}\p{Zl}\p{Zp}]+$/u
                      quantity:
                        type: string
                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                      unit:
                        type: string
                        minLength: 1
                        maxLength: 32
                      warehouseId:
                        type: string
                        format: uuid
                      deliveryCountry:
                        type: string
                        pattern: ^[A-Z]{2}$
                    required:
                      - sku
                      - quantity
                    additionalProperties: false
                  minItems: 1
                  maxItems: 100
              required:
                - buyer
                - currency
                - lines
              additionalProperties: false
              example:
                buyer:
                  kind: customer
                  customerId: 6f1c2a4e-8b7d-4c3e-9a51-2d0f7e3b9c84
                currency: USD
                lines:
                  - sku: 6205-2RS
                    quantity: '400'
                  - sku: 6206-ZZ
                    quantity: '120'
      responses:
        '200':
          description: Price one line for a customer and quantity
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
            Idempotent-Replayed:
              description: >-
                Present and true when the response replays an earlier request
                with the same idempotency key
              schema:
                type: string
                enum:
                  - 'true'
          content:
            application/json:
              schema:
                type: object
                properties:
                  pricingVersionId:
                    type:
                      - string
                      - 'null'
                    format: uuid
                  digest:
                    type:
                      - string
                      - 'null'
                  pricedAt:
                    type: string
                    format: date-time
                  pricingDay:
                    type: string
                    format: date
                  lines:
                    type: array
                    items:
                      anyOf:
                        - type: object
                          properties:
                            lineRef:
                              type: string
                              minLength: 1
                              maxLength: 64
                            sku:
                              type: string
                            state:
                              type: string
                              enum:
                                - ok
                            price:
                              type: object
                              properties:
                                amount:
                                  type: string
                                  pattern: ^-?(?:0|[1-9]\d*)$
                                currency:
                                  type: string
                                  pattern: ^[A-Z]{3}$
                                scale:
                                  type: integer
                                  minimum: 0
                                  maximum: 18
                                roundingPolicyVersion:
                                  type: string
                                  minLength: 1
                              required:
                                - amount
                                - currency
                                - scale
                                - roundingPolicyVersion
                              additionalProperties: false
                            unitPrice:
                              type: object
                              properties:
                                amount:
                                  type: string
                                  pattern: ^-?(?:0|[1-9]\d*)$
                                currency:
                                  type: string
                                  pattern: ^[A-Z]{3}$
                                scale:
                                  type: integer
                                  minimum: 0
                                  maximum: 18
                                roundingPolicyVersion:
                                  type: string
                                  minLength: 1
                              required:
                                - amount
                                - currency
                                - scale
                                - roundingPolicyVersion
                              additionalProperties: false
                            guard:
                              type: string
                              enum:
                                - none
                                - floor
                                - ceiling
                                - map
                                - min_price
                                - max_price
                                - price_stability
                                - increase_cap
                                - change_per_cycle
                            warnings:
                              type: array
                              items:
                                type: object
                                properties:
                                  code:
                                    type: string
                                    minLength: 1
                                  guards:
                                    type: array
                                    items:
                                      type: string
                                  source:
                                    type: string
                                  channels:
                                    type: array
                                    items:
                                      type: string
                                      enum:
                                        - quote
                                        - published
                                        - storefront
                                        - api
                                  gap:
                                    type: object
                                    properties:
                                      amount:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      points:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                    required:
                                      - amount
                                      - points
                                    additionalProperties: false
                                required:
                                  - code
                                  - guards
                                additionalProperties: false
                            trace:
                              type: array
                              items:
                                anyOf:
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - category
                                          - brand
                                          - attribute
                                          - segment
                                          - region
                                          - country
                                          - terms
                                          - volume
                                          - learned
                                          - price_test
                                          - demand
                                          - stock
                                          - adjustment
                                          - seasonal
                                          - lifecycle
                                          - strategy
                                          - product_terms_replaced
                                      termKey:
                                        type: string
                                        minLength: 1
                                      label:
                                        type: string
                                      source:
                                        type: string
                                      valuePts:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      shadowPts:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      status:
                                        type: string
                                        enum:
                                          - applied
                                          - unchanged
                                          - skipped
                                          - unenforced
                                          - conflict
                                      input:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      output:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      reason:
                                        type:
                                          - string
                                          - 'null'
                                      attributeId:
                                        type: string
                                        format: uuid
                                      strategy:
                                        type: object
                                        properties:
                                          name:
                                            type: string
                                          ruleKey:
                                            type: string
                                            minLength: 1
                                          ruleNumber:
                                            type: integer
                                            exclusiveMinimum: 0
                                          ruleName:
                                            type: string
                                          reads:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                field:
                                                  anyOf:
                                                    - type: string
                                                      enum:
                                                        - days_of_stock
                                                        - units_sold
                                                        - markup
                                                        - competitor_gap
                                                        - competitor_count
                                                        - list_price
                                                        - category
                                                        - brand
                                                        - kvi
                                                        - price_band
                                                    - type: string
                                                      pattern: ^attribute:.*$
                                                window:
                                                  anyOf:
                                                    - type: number
                                                      enum:
                                                        - 7
                                                    - type: number
                                                      enum:
                                                        - 30
                                                    - type: number
                                                      enum:
                                                        - 90
                                                    - type: number
                                                      enum:
                                                        - 365
                                                    - type: 'null'
                                                value:
                                                  type:
                                                    - string
                                                    - 'null'
                                                op:
                                                  type: string
                                                  enum:
                                                    - gt
                                                    - gte
                                                    - lt
                                                    - lte
                                                    - between
                                                    - any_of
                                                    - none_of
                                                threshold:
                                                  type: string
                                                thresholds:
                                                  type: array
                                                  items:
                                                    type: string
                                                holds:
                                                  type: boolean
                                              required:
                                                - field
                                                - window
                                                - value
                                                - op
                                                - threshold
                                                - thresholds
                                                - holds
                                              additionalProperties: false
                                          shape:
                                            anyOf:
                                              - type: number
                                                enum:
                                                  - 1
                                              - type: number
                                                enum:
                                                  - 2
                                          applyOnTop:
                                            type: boolean
                                          orderMode:
                                            type: string
                                            enum:
                                              - policy
                                              - own
                                              - none
                                        required:
                                          - name
                                          - ruleKey
                                          - ruleNumber
                                          - ruleName
                                          - reads
                                          - shape
                                          - applyOnTop
                                          - orderMode
                                        additionalProperties: false
                                      orderSize:
                                        type: object
                                        properties:
                                          source:
                                            type: string
                                            enum:
                                              - policy
                                              - strategy
                                              - 'off'
                                              - skipped
                                          basis:
                                            type:
                                              - string
                                              - 'null'
                                            enum:
                                              - quantity
                                              - bill
                                              - both
                                              - null
                                          tier:
                                            type:
                                              - object
                                              - 'null'
                                            properties:
                                              from:
                                                type: number
                                              points:
                                                type: number
                                            required:
                                              - from
                                              - points
                                            additionalProperties: false
                                          tiers:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                from:
                                                  type: number
                                                points:
                                                  type: number
                                                basis:
                                                  type: string
                                                  enum:
                                                    - quantity
                                                    - bill
                                              required:
                                                - from
                                                - points
                                                - basis
                                              additionalProperties: false
                                        required:
                                          - source
                                          - basis
                                          - tier
                                          - tiers
                                        additionalProperties: false
                                      replaced:
                                        type: array
                                        items:
                                          type: string
                                      evidence:
                                        type: object
                                        properties:
                                          level:
                                            type: string
                                            enum:
                                              - segment
                                              - segment_category
                                              - segment_subcategory
                                              - customer_category
                                              - customer_subcategory
                                              - customer_item
                                          strength:
                                            type: string
                                            enum:
                                              - High
                                              - Medium
                                              - Low
                                          observed:
                                            type: object
                                            properties:
                                              lines:
                                                type: integer
                                                minimum: 0
                                              invoices:
                                                type: integer
                                                minimum: 0
                                              customers:
                                                type: integer
                                                minimum: 0
                                              distinctPrices:
                                                type: integer
                                                minimum: 0
                                              lastInvoiceDay:
                                                type: string
                                                format: date
                                              rangeLowPts:
                                                type: string
                                                pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                              rangeHighPts:
                                                type: string
                                                pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                            required:
                                              - lines
                                              - invoices
                                              - distinctPrices
                                              - lastInvoiceDay
                                              - rangeLowPts
                                              - rangeHighPts
                                            additionalProperties: false
                                        required:
                                          - level
                                          - strength
                                        additionalProperties: false
                                      learnedFrom:
                                        type: object
                                        properties:
                                          months:
                                            type:
                                              - integer
                                              - 'null'
                                            exclusiveMinimum: 0
                                          lines:
                                            type: integer
                                            minimum: 0
                                          strength:
                                            type: string
                                            enum:
                                              - High
                                              - Medium
                                              - Low
                                        required:
                                          - months
                                          - lines
                                          - strength
                                        additionalProperties: false
                                    required:
                                      - kind
                                      - termKey
                                      - label
                                      - source
                                      - valuePts
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - guard
                                      termKey:
                                        type: string
                                        minLength: 1
                                      label:
                                        type: string
                                      status:
                                        type: string
                                        enum:
                                          - applied
                                          - unchanged
                                          - skipped
                                          - unenforced
                                          - conflict
                                      input:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      output:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      source:
                                        type: string
                                      points:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      factor:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      reference:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      basis:
                                        type: string
                                        enum:
                                          - contract
                                          - imported
                                          - custom_price
                                          - price_list
                                      basisReference:
                                        type: string
                                      low:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      high:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      period:
                                        type: string
                                        enum:
                                          - Month
                                          - Quarter
                                      windowStart:
                                        type: string
                                        format: date-time
                                      reason:
                                        type:
                                          - string
                                          - 'null'
                                      conflicts:
                                        type: array
                                        items:
                                          type: string
                                      warehouse:
                                        type: object
                                        properties:
                                          locationId:
                                            type:
                                              - string
                                              - 'null'
                                            format: uuid
                                          reason:
                                            type: string
                                            enum:
                                              - line
                                              - rule
                                              - default
                                              - network-average
                                              - item-level
                                          ruleId:
                                            type:
                                              - string
                                              - 'null'
                                            format: uuid
                                          conversions:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                from:
                                                  type: string
                                                  pattern: ^[A-Z]{3}$
                                                to:
                                                  type: string
                                                  pattern: ^[A-Z]{3}$
                                                factor:
                                                  type: string
                                                  pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                                rateId:
                                                  type:
                                                    - string
                                                    - 'null'
                                                  format: uuid
                                              required:
                                                - from
                                                - to
                                                - factor
                                                - rateId
                                              additionalProperties: false
                                            maxItems: 100
                                        required:
                                          - locationId
                                          - reason
                                          - ruleId
                                        additionalProperties: false
                                      conversion:
                                        type: object
                                        properties:
                                          from:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          to:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          factor:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                          source:
                                            type: string
                                            minLength: 1
                                        required:
                                          - from
                                          - to
                                          - factor
                                          - source
                                        additionalProperties: false
                                    required:
                                      - kind
                                      - termKey
                                      - label
                                      - status
                                      - input
                                      - output
                                    additionalProperties: false
                            fxRateIds:
                              type: array
                              items:
                                type: string
                                format: uuid
                            evaluationFingerprint:
                              type: string
                              pattern: ^[0-9a-f]{64}$
                            decisionId:
                              type: string
                              format: uuid
                            priceId:
                              type: string
                              pattern: ^[A-Za-z0-9_-]{1,120}$
                            version:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            validFrom:
                              type: string
                              format: date-time
                            validUntil:
                              type: string
                              format: date-time
                            cost:
                              type: object
                              properties:
                                amount:
                                  type: string
                                  pattern: ^-?(?:0|[1-9]\d*)$
                                currency:
                                  type: string
                                  pattern: ^[A-Z]{3}$
                                scale:
                                  type: integer
                                  minimum: 0
                                  maximum: 18
                                roundingPolicyVersion:
                                  type: string
                                  minLength: 1
                              required:
                                - amount
                                - currency
                                - scale
                                - roundingPolicyVersion
                              additionalProperties: false
                            floorPts:
                              type: string
                              pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                            targetPts:
                              type: string
                              pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                            ceilingPts:
                              type:
                                - string
                                - 'null'
                              pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                            markupPts:
                              type: string
                              pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                            appliedMarkupPts:
                              type: string
                              pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                          required:
                            - lineRef
                            - sku
                            - state
                            - price
                            - unitPrice
                            - guard
                            - warnings
                            - trace
                            - fxRateIds
                            - evaluationFingerprint
                            - priceId
                            - version
                            - validFrom
                            - validUntil
                            - cost
                            - floorPts
                            - targetPts
                            - ceilingPts
                            - markupPts
                            - appliedMarkupPts
                          additionalProperties: false
                        - type: object
                          properties:
                            lineRef:
                              type: string
                              minLength: 1
                              maxLength: 64
                            sku:
                              type: string
                            state:
                              type: string
                              enum:
                                - ok
                            price:
                              type: object
                              properties:
                                amount:
                                  type: string
                                  pattern: ^-?(?:0|[1-9]\d*)$
                                currency:
                                  type: string
                                  pattern: ^[A-Z]{3}$
                                scale:
                                  type: integer
                                  minimum: 0
                                  maximum: 18
                                roundingPolicyVersion:
                                  type: string
                                  minLength: 1
                              required:
                                - amount
                                - currency
                                - scale
                                - roundingPolicyVersion
                              additionalProperties: false
                            unitPrice:
                              type: object
                              properties:
                                amount:
                                  type: string
                                  pattern: ^-?(?:0|[1-9]\d*)$
                                currency:
                                  type: string
                                  pattern: ^[A-Z]{3}$
                                scale:
                                  type: integer
                                  minimum: 0
                                  maximum: 18
                                roundingPolicyVersion:
                                  type: string
                                  minLength: 1
                              required:
                                - amount
                                - currency
                                - scale
                                - roundingPolicyVersion
                              additionalProperties: false
                            guard:
                              type: string
                              enum:
                                - none
                                - floor
                                - ceiling
                                - map
                                - min_price
                                - max_price
                                - price_stability
                                - increase_cap
                                - change_per_cycle
                            warnings:
                              type: array
                              items:
                                type: object
                                properties:
                                  code:
                                    type: string
                                    minLength: 1
                                  guards:
                                    type: array
                                    items:
                                      type: string
                                  source:
                                    type: string
                                  channels:
                                    type: array
                                    items:
                                      type: string
                                      enum:
                                        - quote
                                        - published
                                        - storefront
                                        - api
                                  gap:
                                    type: object
                                    properties:
                                      amount:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      points:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                    required:
                                      - amount
                                      - points
                                    additionalProperties: false
                                required:
                                  - code
                                  - guards
                                additionalProperties: false
                            trace:
                              type: array
                              items:
                                anyOf:
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - category
                                          - brand
                                          - attribute
                                          - segment
                                          - region
                                          - country
                                          - terms
                                          - volume
                                          - learned
                                          - price_test
                                          - demand
                                          - stock
                                          - adjustment
                                          - seasonal
                                          - lifecycle
                                          - strategy
                                          - product_terms_replaced
                                      termKey:
                                        type: string
                                        minLength: 1
                                      label:
                                        type: string
                                      source:
                                        type: string
                                      valuePts:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      shadowPts:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      status:
                                        type: string
                                        enum:
                                          - applied
                                          - unchanged
                                          - skipped
                                          - unenforced
                                          - conflict
                                      input:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      output:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      reason:
                                        type:
                                          - string
                                          - 'null'
                                      attributeId:
                                        type: string
                                        format: uuid
                                      strategy:
                                        type: object
                                        properties:
                                          name:
                                            type: string
                                          ruleKey:
                                            type: string
                                            minLength: 1
                                          ruleNumber:
                                            type: integer
                                            exclusiveMinimum: 0
                                          ruleName:
                                            type: string
                                          reads:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                field:
                                                  anyOf:
                                                    - type: string
                                                      enum:
                                                        - days_of_stock
                                                        - units_sold
                                                        - markup
                                                        - competitor_gap
                                                        - competitor_count
                                                        - list_price
                                                        - category
                                                        - brand
                                                        - kvi
                                                        - price_band
                                                    - type: string
                                                      pattern: ^attribute:.*$
                                                window:
                                                  anyOf:
                                                    - type: number
                                                      enum:
                                                        - 7
                                                    - type: number
                                                      enum:
                                                        - 30
                                                    - type: number
                                                      enum:
                                                        - 90
                                                    - type: number
                                                      enum:
                                                        - 365
                                                    - type: 'null'
                                                value:
                                                  type:
                                                    - string
                                                    - 'null'
                                                op:
                                                  type: string
                                                  enum:
                                                    - gt
                                                    - gte
                                                    - lt
                                                    - lte
                                                    - between
                                                    - any_of
                                                    - none_of
                                                threshold:
                                                  type: string
                                                thresholds:
                                                  type: array
                                                  items:
                                                    type: string
                                                holds:
                                                  type: boolean
                                              required:
                                                - field
                                                - window
                                                - value
                                                - op
                                                - threshold
                                                - thresholds
                                                - holds
                                              additionalProperties: false
                                          shape:
                                            anyOf:
                                              - type: number
                                                enum:
                                                  - 1
                                              - type: number
                                                enum:
                                                  - 2
                                          applyOnTop:
                                            type: boolean
                                          orderMode:
                                            type: string
                                            enum:
                                              - policy
                                              - own
                                              - none
                                        required:
                                          - name
                                          - ruleKey
                                          - ruleNumber
                                          - ruleName
                                          - reads
                                          - shape
                                          - applyOnTop
                                          - orderMode
                                        additionalProperties: false
                                      orderSize:
                                        type: object
                                        properties:
                                          source:
                                            type: string
                                            enum:
                                              - policy
                                              - strategy
                                              - 'off'
                                              - skipped
                                          basis:
                                            type:
                                              - string
                                              - 'null'
                                            enum:
                                              - quantity
                                              - bill
                                              - both
                                              - null
                                          tier:
                                            type:
                                              - object
                                              - 'null'
                                            properties:
                                              from:
                                                type: number
                                              points:
                                                type: number
                                            required:
                                              - from
                                              - points
                                            additionalProperties: false
                                          tiers:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                from:
                                                  type: number
                                                points:
                                                  type: number
                                                basis:
                                                  type: string
                                                  enum:
                                                    - quantity
                                                    - bill
                                              required:
                                                - from
                                                - points
                                                - basis
                                              additionalProperties: false
                                        required:
                                          - source
                                          - basis
                                          - tier
                                          - tiers
                                        additionalProperties: false
                                      replaced:
                                        type: array
                                        items:
                                          type: string
                                      evidence:
                                        type: object
                                        properties:
                                          level:
                                            type: string
                                            enum:
                                              - segment
                                              - segment_category
                                              - segment_subcategory
                                              - customer_category
                                              - customer_subcategory
                                              - customer_item
                                          strength:
                                            type: string
                                            enum:
                                              - High
                                              - Medium
                                              - Low
                                          observed:
                                            type: object
                                            properties:
                                              lines:
                                                type: integer
                                                minimum: 0
                                              invoices:
                                                type: integer
                                                minimum: 0
                                              customers:
                                                type: integer
                                                minimum: 0
                                              distinctPrices:
                                                type: integer
                                                minimum: 0
                                              lastInvoiceDay:
                                                type: string
                                                format: date
                                              rangeLowPts:
                                                type: string
                                                pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                              rangeHighPts:
                                                type: string
                                                pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                            required:
                                              - lines
                                              - invoices
                                              - distinctPrices
                                              - lastInvoiceDay
                                              - rangeLowPts
                                              - rangeHighPts
                                            additionalProperties: false
                                        required:
                                          - level
                                          - strength
                                        additionalProperties: false
                                      learnedFrom:
                                        type: object
                                        properties:
                                          months:
                                            type:
                                              - integer
                                              - 'null'
                                            exclusiveMinimum: 0
                                          lines:
                                            type: integer
                                            minimum: 0
                                          strength:
                                            type: string
                                            enum:
                                              - High
                                              - Medium
                                              - Low
                                        required:
                                          - months
                                          - lines
                                          - strength
                                        additionalProperties: false
                                    required:
                                      - kind
                                      - termKey
                                      - label
                                      - source
                                      - valuePts
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - guard
                                      termKey:
                                        type: string
                                        minLength: 1
                                      label:
                                        type: string
                                      status:
                                        type: string
                                        enum:
                                          - applied
                                          - unchanged
                                          - skipped
                                          - unenforced
                                          - conflict
                                      input:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      output:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      source:
                                        type: string
                                      points:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      factor:
                                        type: string
                                        pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                      reference:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      basis:
                                        type: string
                                        enum:
                                          - contract
                                          - imported
                                          - custom_price
                                          - price_list
                                      basisReference:
                                        type: string
                                      low:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      high:
                                        type: object
                                        properties:
                                          amount:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)$
                                          currency:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          scale:
                                            type: integer
                                            minimum: 0
                                            maximum: 18
                                          roundingPolicyVersion:
                                            type: string
                                            minLength: 1
                                        required:
                                          - amount
                                          - currency
                                          - scale
                                          - roundingPolicyVersion
                                        additionalProperties: false
                                      period:
                                        type: string
                                        enum:
                                          - Month
                                          - Quarter
                                      windowStart:
                                        type: string
                                        format: date-time
                                      reason:
                                        type:
                                          - string
                                          - 'null'
                                      conflicts:
                                        type: array
                                        items:
                                          type: string
                                      warehouse:
                                        type: object
                                        properties:
                                          locationId:
                                            type:
                                              - string
                                              - 'null'
                                            format: uuid
                                          reason:
                                            type: string
                                            enum:
                                              - line
                                              - rule
                                              - default
                                              - network-average
                                              - item-level
                                          ruleId:
                                            type:
                                              - string
                                              - 'null'
                                            format: uuid
                                          conversions:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                from:
                                                  type: string
                                                  pattern: ^[A-Z]{3}$
                                                to:
                                                  type: string
                                                  pattern: ^[A-Z]{3}$
                                                factor:
                                                  type: string
                                                  pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                                rateId:
                                                  type:
                                                    - string
                                                    - 'null'
                                                  format: uuid
                                              required:
                                                - from
                                                - to
                                                - factor
                                                - rateId
                                              additionalProperties: false
                                            maxItems: 100
                                        required:
                                          - locationId
                                          - reason
                                          - ruleId
                                        additionalProperties: false
                                      conversion:
                                        type: object
                                        properties:
                                          from:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          to:
                                            type: string
                                            pattern: ^[A-Z]{3}$
                                          factor:
                                            type: string
                                            pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
                                          source:
                                            type: string
                                            minLength: 1
                                        required:
                                          - from
                                          - to
                                          - factor
                                          - source
                                        additionalProperties: false
                                    required:
                                      - kind
                                      - termKey
                                      - label
                                      - status
                                      - input
                                      - output
                                    additionalProperties: false
                            fxRateIds:
                              type: array
                              items:
                                type: string
                                format: uuid
                            evaluationFingerprint:
                              type: string
                              pattern: ^[0-9a-f]{64}$
                            decisionId:
                              type: string
                              format: uuid
                            priceId:
                              type: string
                              pattern: ^[A-Za-z0-9_-]{1,120}$
                            version:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            validFrom:
                              type: string
                              format: date-time
                            validUntil:
                              type: string
                              format: date-time
                            cost:
                              type: 'null'
                            floorPts:
                              type: 'null'
                            targetPts:
                              type: 'null'
                            ceilingPts:
                              type: 'null'
                            markupPts:
                              type: 'null'
                            appliedMarkupPts:
                              type: 'null'
                          required:
                            - lineRef
                            - sku
                            - state
                            - price
                            - unitPrice
                            - guard
                            - warnings
                            - trace
                            - fxRateIds
                            - evaluationFingerprint
                            - priceId
                            - version
                            - validFrom
                            - validUntil
                            - cost
                            - floorPts
                            - targetPts
                            - ceilingPts
                            - markupPts
                            - appliedMarkupPts
                          additionalProperties: false
                        - type: object
                          properties:
                            lineRef:
                              type: string
                              minLength: 1
                              maxLength: 64
                            sku:
                              type: string
                            state:
                              type: string
                              enum:
                                - missing_cost
                                - stale_cost
                                - missing_data
                                - blocked_floor
                                - blocked_map
                                - blocked_exposure
                                - unavailable
                            reason:
                              type: string
                              enum:
                                - positive_cost_required
                                - cost_age_exceeded
                                - invalid_required_input
                                - missing_currency_rate
                                - stale_currency_rate
                                - invalid_strategy_target
                                - empty_guard_intersection
                                - settled_guard_conflict
                                - hidden
                                - unmapped_customer
                                - rate_limit
                                - agreement_conflict
                                - not_positive
                                - too_many_decimals
                                - wrong_currency
                                - unsupported_unit
                                - no_pricing_version
                                - deadline
                                - decision_write_failed
                                - engine_unavailable
                            nextAction:
                              type: string
                              enum:
                                - refresh_cost
                                - resolve_input
                                - resolve_exposure
                                - resolve_guard_conflict
                                - retry
                          required:
                            - lineRef
                            - sku
                            - state
                            - reason
                            - nextAction
                          additionalProperties: false
                  totals:
                    type: array
                    items:
                      type: object
                      properties:
                        currency:
                          type: string
                          pattern: ^[A-Z]{3}$
                        amount:
                          type: object
                          properties:
                            amount:
                              type: string
                              pattern: ^-?(?:0|[1-9]\d*)$
                            currency:
                              type: string
                              pattern: ^[A-Z]{3}$
                            scale:
                              type: integer
                              minimum: 0
                              maximum: 18
                            roundingPolicyVersion:
                              type: string
                              minLength: 1
                          required:
                            - amount
                            - currency
                            - scale
                            - roundingPolicyVersion
                          additionalProperties: false
                      required:
                        - currency
                        - amount
                      additionalProperties: false
                  complete:
                    type: boolean
                required:
                  - pricingVersionId
                  - digest
                  - pricedAt
                  - pricingDay
                  - lines
                  - totals
                  - complete
                additionalProperties: false
        '400':
          description: unsupported_api_version, invalid_request, invalid_idempotency_key
          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'
        '409':
          description: idempotency_request_in_progress
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: idempotency_key_reused
          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.