Skip to main content
GET
/
api
/
intelligence
/
outcome-attributions
List outcome attributions
curl --request GET \
  --url https://app.solya.app/api/intelligence/outcome-attributions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "attributionSource": "DECISION_VECTOR",
      "createdAt": "2025-09-14T10:00:00.000Z",
      "decisionVectorId": "dv-uuid-001",
      "eventType": "ITEM_ADDED",
      "planAuditLogId": "pal-uuid-001",
      "planId": "plan-uuid-restock-001",
      "planItemId": "item-uuid-001",
      "planType": "RESTOCK",
      "shopId": "shop-uuid-paris",
      "variantId": "var-uuid-001"
    },
    {
      "attributionSource": "MANUAL",
      "createdAt": "2025-09-13T14:30:00.000Z",
      "decisionVectorId": null,
      "eventType": "ITEM_ADDED",
      "planAuditLogId": "pal-uuid-002",
      "planId": "plan-uuid-markdown-001",
      "planItemId": "item-uuid-002",
      "planType": "MARKDOWN",
      "shopId": "shop-uuid-lyon",
      "variantId": "var-uuid-002"
    }
  ],
  "page": 1,
  "pageSize": 20,
  "total": 142
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Query Parameters

page
integer
default:1

Page number, 1-indexed (default: 1)

Required range: 1 <= x <= 9007199254740991
pageSize
integer
default:20

Number of items per page, max 100 (default: 20)

Required range: 1 <= x <= 100
planType
enum<string>

Filter by plan type

Available options:
RESTOCK,
MARKDOWN,
REBALANCE,
PRE_SEASON_ORDER,
PRE_SEASON_SCENARIO,
SUPPLIER_EXCHANGE,
SUPPLIER_RETURN
planId
string

Filter by plan ID

window
enum<string>

Restrict to events from the last J7 (7 days), J30 (30 days), or J90 (90 days)

Available options:
J7,
J30,
J90
variantId
string

Filter by variant ID from the item snapshot

shopId
string

Filter by shop ID from the item snapshot

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true