Skip to main content
POST
Add item to markdown plan

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

Body

application/json
discountPercent
number
required

Markdown discount rate as a percentage, e.g. 30 for 30%

shopId
string
required

Shop where the markdown applies

Minimum string length: 1
sizeId
string
required

Size identifier

Minimum string length: 1
variantId
string
required

Product variant identifier

Minimum string length: 1

Response

Successful response

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