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

# Revenue and orders Depict drove, per feature

> Under the one attribution rule (a purchased line belongs to the feature the shopper last clicked that product on within window_hours before buying): lines, orders, revenue and touches for collections, recommendations and search, plus unattributed, Depict total and the whole store, for the window and the one before, with a daily revenue series. Read-only.



## OpenAPI

````yaml /api-reference/openapi/lite.json get /depict-attribution
openapi: 3.1.0
info:
  title: Search & Merchandising API
  version: 1.0.0
  description: >-
    REST API behind Depict: Search & Merchandising, the native Shopify app:
    onboarding, collections, boost & bury, dashboards, A/B testing and
    multi-store management. Endpoints are served under the /api/lite prefix and
    are authenticated with the Shopify session token that App Bridge issues to
    the embedded app.
servers:
  - url: /api/lite
security:
  - ShopifySessionToken: []
paths:
  /depict-attribution:
    get:
      summary: Revenue and orders Depict drove, per feature
      description: >-
        Under the one attribution rule (a purchased line belongs to the feature
        the shopper last clicked that product on within window_hours before
        buying): lines, orders, revenue and touches for collections,
        recommendations and search, plus unattributed, Depict total and the
        whole store, for the window and the one before, with a daily revenue
        series. Read-only.
      operationId: depictAttribution
      parameters:
        - schema:
            type: string
            description: Lite merchant id, e.g. `shopify-<shop id>`.
          required: true
          description: Lite merchant id, e.g. `shopify-<shop id>`.
          name: merchant_id
          in: query
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-09-01'
            description: First day, inclusive.
          required: true
          description: First day, inclusive.
          name: from_date
          in: query
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-09-01'
            description: Last day, inclusive.
          required: true
          description: Last day, inclusive.
          name: to_date
          in: query
        - schema:
            type: string
            pattern: ^[A-Z]{3}$
            description: >-
              ISO 4217 code for every revenue; the order feed's own when
              omitted.
          required: false
          description: ISO 4217 code for every revenue; the order feed's own when omitted.
          name: currency
          in: query
      responses:
        '200':
          description: Both windows' figures.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepictAttributionResponse'
        '400':
          description: >-
            The query, path or body failed the schema; `detail` carries zod's
            messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '401':
          description: Not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '403':
          description: Authenticated, but this identity may not call the API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '404':
          description: Merchant not found for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
components:
  schemas:
    DepictAttributionResponse:
      type: object
      properties:
        current:
          $ref: '#/components/schemas/DepictAttributionFigures'
        previous:
          $ref: '#/components/schemas/DepictAttributionFigures'
        daily:
          type: object
          properties:
            current:
              type: array
              items:
                $ref: '#/components/schemas/DepictAttributionDay'
            previous:
              type: array
              items:
                $ref: '#/components/schemas/DepictAttributionDay'
          required:
            - current
            - previous
        window_hours:
          type: number
      required:
        - current
        - previous
        - daily
        - window_hours
    Detail:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
      description: 'Every 4xx/5xx body: `{detail}`.'
    DepictAttributionFigures:
      type: object
      properties:
        collections:
          $ref: '#/components/schemas/DepictAttributionOwner'
        recommendations:
          $ref: '#/components/schemas/DepictAttributionOwner'
        search:
          $ref: '#/components/schemas/DepictAttributionOwner'
        unattributed:
          $ref: '#/components/schemas/DepictAttributionOwner'
        dropped:
          $ref: '#/components/schemas/DepictAttributionOwner'
        depict:
          $ref: '#/components/schemas/DepictAttributionOwner'
        store:
          $ref: '#/components/schemas/DepictAttributionOwner'
        currency:
          type:
            - string
            - 'null'
      required:
        - collections
        - recommendations
        - search
        - unattributed
        - dropped
        - depict
        - store
        - currency
    DepictAttributionDay:
      type: object
      properties:
        date:
          type: string
        collections:
          type:
            - number
            - 'null'
        recommendations:
          type:
            - number
            - 'null'
        search:
          type:
            - number
            - 'null'
        depict:
          type:
            - number
            - 'null'
        store:
          type:
            - number
            - 'null'
      required:
        - date
        - collections
        - recommendations
        - search
        - depict
        - store
    DepictAttributionOwner:
      type: object
      properties:
        lines:
          type: number
        orders:
          type: number
        revenue:
          type:
            - number
            - 'null'
          description: null when the orders' currencies could not be brought to one figure.
        touches:
          type: number
      required:
        - lines
        - orders
        - revenue
        - touches
  securitySchemes:
    ShopifySessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Shopify App Bridge session token of the embedded Depict: Search &
        Merchandising app. The shop in the token determines the merchant;
        merchant_id parameters must belong to that shop.

````