Create markdown plan (start a price reduction / discount / clearance)
curl --request POST \
--url https://app.solya.app/api/markdown-plans \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "First markdown wave covering slow-movers from the spring collection",
"endDate": "2025-06-30",
"name": "Summer 2025 Wave A",
"season": "SS25",
"startDate": "2025-06-01"
}
'import requests
url = "https://app.solya.app/api/markdown-plans"
payload = {
"description": "First markdown wave covering slow-movers from the spring collection",
"endDate": "2025-06-30",
"name": "Summer 2025 Wave A",
"season": "SS25",
"startDate": "2025-06-01"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'First markdown wave covering slow-movers from the spring collection',
endDate: '2025-06-30',
name: 'Summer 2025 Wave A',
season: 'SS25',
startDate: '2025-06-01'
})
};
fetch('https://app.solya.app/api/markdown-plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.solya.app/api/markdown-plans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'First markdown wave covering slow-movers from the spring collection',
'endDate' => '2025-06-30',
'name' => 'Summer 2025 Wave A',
'season' => 'SS25',
'startDate' => '2025-06-01'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.solya.app/api/markdown-plans"
payload := strings.NewReader("{\n \"description\": \"First markdown wave covering slow-movers from the spring collection\",\n \"endDate\": \"2025-06-30\",\n \"name\": \"Summer 2025 Wave A\",\n \"season\": \"SS25\",\n \"startDate\": \"2025-06-01\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.solya.app/api/markdown-plans")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"First markdown wave covering slow-movers from the spring collection\",\n \"endDate\": \"2025-06-30\",\n \"name\": \"Summer 2025 Wave A\",\n \"season\": \"SS25\",\n \"startDate\": \"2025-06-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/markdown-plans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"First markdown wave covering slow-movers from the spring collection\",\n \"endDate\": \"2025-06-30\",\n \"name\": \"Summer 2025 Wave A\",\n \"season\": \"SS25\",\n \"startDate\": \"2025-06-01\"\n}"
response = http.request(request)
puts response.read_body{
"id": "ms-uuid-001",
"name": "Summer 2025 Wave A",
"status": "DRAFT"
}Markdown
Create markdown plan (start a price reduction / discount / clearance)
Creates a new markdown plan (price reduction / discount / promotion / clearance) in DRAFT status. Use this to start a plan for discounting slow-movers or overstock, then add the products/variants to mark down.
POST
/
api
/
markdown-plans
Create markdown plan (start a price reduction / discount / clearance)
curl --request POST \
--url https://app.solya.app/api/markdown-plans \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "First markdown wave covering slow-movers from the spring collection",
"endDate": "2025-06-30",
"name": "Summer 2025 Wave A",
"season": "SS25",
"startDate": "2025-06-01"
}
'import requests
url = "https://app.solya.app/api/markdown-plans"
payload = {
"description": "First markdown wave covering slow-movers from the spring collection",
"endDate": "2025-06-30",
"name": "Summer 2025 Wave A",
"season": "SS25",
"startDate": "2025-06-01"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'First markdown wave covering slow-movers from the spring collection',
endDate: '2025-06-30',
name: 'Summer 2025 Wave A',
season: 'SS25',
startDate: '2025-06-01'
})
};
fetch('https://app.solya.app/api/markdown-plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.solya.app/api/markdown-plans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'First markdown wave covering slow-movers from the spring collection',
'endDate' => '2025-06-30',
'name' => 'Summer 2025 Wave A',
'season' => 'SS25',
'startDate' => '2025-06-01'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.solya.app/api/markdown-plans"
payload := strings.NewReader("{\n \"description\": \"First markdown wave covering slow-movers from the spring collection\",\n \"endDate\": \"2025-06-30\",\n \"name\": \"Summer 2025 Wave A\",\n \"season\": \"SS25\",\n \"startDate\": \"2025-06-01\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.solya.app/api/markdown-plans")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"First markdown wave covering slow-movers from the spring collection\",\n \"endDate\": \"2025-06-30\",\n \"name\": \"Summer 2025 Wave A\",\n \"season\": \"SS25\",\n \"startDate\": \"2025-06-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/markdown-plans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"First markdown wave covering slow-movers from the spring collection\",\n \"endDate\": \"2025-06-30\",\n \"name\": \"Summer 2025 Wave A\",\n \"season\": \"SS25\",\n \"startDate\": \"2025-06-01\"\n}"
response = http.request(request)
puts response.read_body{
"id": "ms-uuid-001",
"name": "Summer 2025 Wave A",
"status": "DRAFT"
}Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Body
application/json
Plan end date in ISO-8601 format (e.g. 2025-06-30)
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Display name for the markdown plan
Minimum string length:
1Plan start date in ISO-8601 format (e.g. 2025-06-01)
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Optional identifier of the collection
Optional free-text description of the plan
Optional season code, e.g. SS25 or FW25

