Skip to main content
GET
/
api
/
markdown-plans
/
{planId}
/
items
List markdown plan items
curl --request GET \
  --url https://app.solya.app/api/markdown-plans/{planId}/items \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "brand": "Nike",
      "currentStock": 8,
      "currentValue": 1119.2,
      "discountGroup": "30%",
      "id": "mdi-uuid-001",
      "name": "Nike Air Max 90",
      "productId": "prod-uuid-nike-air",
      "size": "42",
      "sizeId": "sz-uuid-001",
      "sku": "NIKE-AM90-WB-42",
      "status": "TO_REVIEW",
      "variant": "White / Black",
      "variantId": "var-uuid-001"
    }
  ],
  "page": 1,
  "pageSize": 50,
  "total": 1
}

Authorizations

Authorization
string
header
required

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

Path Parameters

planId
string
required

Markdown plan identifier

Minimum string length: 1

Query Parameters

Free-text search across product name, variant, size and SKU

brands
string
required

Comma-separated brand IDs to filter by

products
string
required

Comma-separated product IDs to filter by

variants
string
required

Comma-separated variant IDs to filter by

sizes
string
required

Comma-separated size IDs to filter by

page
number
default:1

Page number, starting from 1

pageSize
number
default:50

Number of items per page

Response

Successful response

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