Skip to main content
GET
/
api
/
data-platform
/
plans
/
{type}
/
{id}
Get a single plan with all items for outcome attribution
curl --request GET \
  --url https://app.solya.app/api/data-platform/plans/{type}/{id} \
  --header 'Authorization: Bearer <token>'
{
  "createdAt": "2026-05-10T08:00:00.000Z",
  "decidedAt": "2026-05-15T10:30:00.000Z",
  "decisionContextSnapshot": {
    "capturedAt": "2026-05-15T10:30:00.001Z",
    "forecast30d": {
      "variant-uuid-1": 12,
      "variant-uuid-2": 8
    },
    "stockoutRisk": {
      "variant-uuid-1": 0.85
    }
  },
  "id": "plan-uuid-1",
  "itemCount": 2,
  "items": [
    {
      "id": "item-uuid-1",
      "planId": "plan-uuid-1",
      "quantity": 12,
      "status": "TO_REVIEW",
      "variantId": "variant-uuid-1"
    },
    {
      "id": "item-uuid-2",
      "planId": "plan-uuid-1",
      "quantity": 8,
      "status": "TO_REVIEW",
      "variantId": "variant-uuid-2"
    }
  ],
  "organizationId": "org-uuid-1",
  "status": "VALIDATED",
  "updatedAt": "2026-05-15T10:30:00.000Z"
}

Authorizations

Authorization
string
header
required

Static internal-ops token used by the data platform and internal cron jobs (e.g. zombie-run sweep). Validated via requireBearerToken inside the handler against a service-specific environment variable.

Path Parameters

type
string
required

Plan type path segment (RESTOCK, REBALANCE, MARKDOWN, SUPPLIER_RETURN, SUPPLIER_EXCHANGE)

Minimum string length: 1
id
string
required

UUID of the plan to retrieve

Minimum string length: 1

Query Parameters

organizationId
string
required

UUID of the organization that owns the plan

Minimum string length: 1

Response

Successful response

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