# Attribution report for a single product

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /{version}/api/get/product-analysis/cause-event/list:
    post:
      summary: Attribution report for a single product
      deprecated: false
      description: |-
        - Rate limits: 5 requests per second.
        - version: v2-4-2.
      tags:
        - Public API/Attribution/Product analytics
      parameters:
        - name: version
          in: path
          description: ''
          required: true
          example: v2-4-2
          schema:
            type: string
        - name: ApiKey
          in: header
          description: ''
          required: true
          example: '{{ApiKey}}'
          schema:
            type: string
            default: '{{ApiKey}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                start_date:
                  type: string
                  description: >-
                    The start date range of the event in ISO format, e.g.
                    1970-01-01, the time zone should be consistent with your
                    store settings.
                end_date:
                  type: string
                  description: >-
                    The end date of the event in ISO format, e.g. 1970-01-01,
                    the time zone should be consistent with your store
                    settings.If you want to see the data for 1970-01-01, please
                    enter 1970-01-02.
                sorts:
                  type: array
                  items:
                    type: object
                    properties:
                      column:
                        type: string
                        description: |-
                          - conversions
                          - conversion_value
                          - spend
                          - cpa
                          - roas
                      order:
                        type: string
                        description: asc/desc
                    x-apifox-orders:
                      - column
                      - order
                  description: The default order is conversion_value desc.
                  nullable: true
                page:
                  type: string
                  description: Min is 1
                page_size:
                  type: string
                  description: The range is 1 to 100
                product_id:
                  type: string
                  description: The id of product
              required:
                - start_date
                - end_date
                - page
                - page_size
                - product_id
              x-apifox-orders:
                - start_date
                - end_date
                - product_id
                - sorts
                - page
                - page_size
            example:
              start_date: '2025-05-15'
              end_date: '2025-05-21'
              product_id: '7893679407317'
              sorts:
                - column: conversion_value
                  order: desc
              page: '1'
              page_size: '20'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 1:success; < 0:failed
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      total:
                        type: integer
                      page_size:
                        type: integer
                      records:
                        type: array
                        items:
                          type: object
                          properties:
                            campaign:
                              type: string
                            channel:
                              type: string
                            conversions:
                              type: integer
                            conversion_value:
                              type: number
                            spend:
                              type: integer
                            cpa:
                              type: integer
                            roas:
                              type: integer
                          required:
                            - campaign
                            - channel
                            - conversions
                            - conversion_value
                            - spend
                            - cpa
                            - roas
                          x-apifox-orders:
                            - campaign
                            - channel
                            - conversions
                            - conversion_value
                            - spend
                            - cpa
                            - roas
                    required:
                      - total
                      - page_size
                      - records
                    x-apifox-orders:
                      - total
                      - page_size
                      - records
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 1
                message: Service succeed
                data:
                  total: 1
                  page_size: 1
                  records:
                    - campaign: '--/direct'
                      channel: direct
                      conversions: 9
                      conversion_value: 143.11
                      spend: 0
                      cpa: 0
                      roas: 0
                    - campaign: Non-order ad cost
                      channel: N/A
                      conversions: 0
                      conversion_value: 0
                      spend: 1154.94
                      cpa: 0
                      roas: 0
          headers: {}
          x-apifox-name: Success
      security: []
      x-apifox-folder: Public API/Attribution/Product analytics
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7934002/apis/api-427731463-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://data-api.test.attribuly.com
    description: test
  - url: https://data.api.attribuly.com
    description: prod
security: []

```
