CommerceItem Details

Item Details

Return attribution or grouped details for selected commerce items.

curl -X POST "https://api.beacon.hard.al/v1/reports/commerce/items/details?tenantId=123e4567-e89b-12d3-a456-426614174000&sourceId=123e4567-e89b-12d3-a456-426614174000&timeframe=today&startDate=example_string&endDate=example_string&timezone=example_string&interval=minute&reportingCurrency=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "kind": "attribution",
  "itemKeys": [
    "["SKU-1001","","","","Trail Running Shoes","Northwind","Shoes",37.5]"
  ],
  "limit": 10,
  "offset": 0
}'
{
  "success": true,
  "data": {
    "kind": "attribution",
    "range": {
      "startDate": "2026-10-01",
      "endDate": "2026-10-07",
      "timezone": "Europe/Istanbul"
    },
    "items": [
      {
        "itemKey": "["SKU-1001","","","","Trail Running Shoes","Northwind","Shoes",37.5]",
        "currency": {
          "reportingCurrency": "USD",
          "status": "available",
          "excludedCount": 0
        },
        "rows": [
          {
            "source": "direct",
            "medium": null,
            "campaign": null,
            "view_item_count": 960,
            "add_to_cart_count": 120,
            "orders": 24,
            "items": 48,
            "revenue": 1800
          },
          {
            "source": "google",
            "medium": "organic",
            "campaign": null,
            "view_item_count": 840,
            "add_to_cart_count": 105,
            "orders": 21,
            "items": 42,
            "revenue": 1575
          },
          {
            "source": "google",
            "medium": "cpc",
            "campaign": "brand_search",
            "view_item_count": 600,
            "add_to_cart_count": 75,
            "orders": 15,
            "items": 30,
            "revenue": 1125
          }
        ],
        "pagination": {
          "limit": 10,
          "offset": 0,
          "total": 3
        }
      }
    ]
  },
  "meta": {
    "reportSettingsVersion": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "timestamp": "2026-11-01T09:30:00.000Z",
  "path": "/v1/reports/commerce/items/details",
  "requestId": "req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"
}
POST
/v1/reports/commerce/items/details
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

OAuth access token (token exchange) or organization API key.

OAuth access token (token exchange) or organization API key.
query
tenantIdstring
Required

UUID of the tenant to report on. Send it exactly once. GET /v1/workspace/access lists the tenants this credential can read.

Format: uuid
query
sourceIdstring

UUID of one source of the tenant. Omit it to include every source of the tenant.

Format: uuid
query
timeframestring

Reporting period. The presets today, yesterday, last7days and last30days cover whole calendar days ending today in the request timezone; last7days is today and the six days before it. Use custom together with startDate and endDate. Defaults to today.

query
startDatestring

First day of a custom period, YYYY-MM-DD, inclusive. Send it only with timeframe=custom, together with endDate.

query
endDatestring

Last day of a custom period, YYYY-MM-DD, inclusive. Send it only with timeframe=custom; it must not be before startDate.

query
timezonestring

IANA time zone name such as Europe/Istanbul or America/New_York. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to Europe/Istanbul.

Min length: 1 • Max length: 100
query
intervalstring

Time bucket size: minute, hour, day, week or month.

query
reportingCurrencystring

ISO 4217 currency code, for example USD. Amounts are returned in the tenant's reporting currency.

Content-Typestring
Required

The media type of the request body

Options: application/json
No request body parameters defined
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. OAuth access token (token exchange) or organization API key.

Query Parameters

tenantIdstring
Required

UUID of the tenant to report on. Send it exactly once. GET /v1/workspace/access lists the tenants this credential can read.

sourceIdstring

UUID of one source of the tenant. Omit it to include every source of the tenant.

timeframestring

Reporting period. The presets today, yesterday, last7days and last30days cover whole calendar days ending today in the request timezone; last7days is today and the six days before it. Use custom together with startDate and endDate. Defaults to today.

startDatestring

First day of a custom period, YYYY-MM-DD, inclusive. Send it only with timeframe=custom, together with endDate.

endDatestring

Last day of a custom period, YYYY-MM-DD, inclusive. Send it only with timeframe=custom; it must not be before startDate.

timezonestring

IANA time zone name such as Europe/Istanbul or America/New_York. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to Europe/Istanbul.

intervalstring

Time bucket size: minute, hour, day, week or month.

reportingCurrencystring

ISO 4217 currency code, for example USD. Amounts are returned in the tenant's reporting currency.

Body

application/json
datastring
Required

Raw application/json data

Responses

successboolean
Required
Allowed values:true
datastring
Required
metaobject
timestampstring
Required
pathstring
Required
requestIdstring
Required