Create Sales Channel
curl --request POST \
--url https://api.launchmystore.io/api/v1/sales_channels.json \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"platform": "<string>",
"config": {},
"sync_settings": {}
}
'import requests
url = "https://api.launchmystore.io/api/v1/sales_channels.json"
payload = {
"name": "<string>",
"platform": "<string>",
"config": {},
"sync_settings": {}
}
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({name: '<string>', platform: '<string>', config: {}, sync_settings: {}})
};
fetch('https://api.launchmystore.io/api/v1/sales_channels.json', 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://api.launchmystore.io/api/v1/sales_channels.json",
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([
'name' => '<string>',
'platform' => '<string>',
'config' => [
],
'sync_settings' => [
]
]),
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://api.launchmystore.io/api/v1/sales_channels.json"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"platform\": \"<string>\",\n \"config\": {},\n \"sync_settings\": {}\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://api.launchmystore.io/api/v1/sales_channels.json")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"platform\": \"<string>\",\n \"config\": {},\n \"sync_settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/sales_channels.json")
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 \"name\": \"<string>\",\n \"platform\": \"<string>\",\n \"config\": {},\n \"sync_settings\": {}\n}"
response = http.request(request)
puts response.read_bodySales Channels
Create Sales Channel
Register a sales channel for your app so it can publish product listings
POST
/
api
/
v1
/
sales_channels.json
Create Sales Channel
curl --request POST \
--url https://api.launchmystore.io/api/v1/sales_channels.json \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"platform": "<string>",
"config": {},
"sync_settings": {}
}
'import requests
url = "https://api.launchmystore.io/api/v1/sales_channels.json"
payload = {
"name": "<string>",
"platform": "<string>",
"config": {},
"sync_settings": {}
}
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({name: '<string>', platform: '<string>', config: {}, sync_settings: {}})
};
fetch('https://api.launchmystore.io/api/v1/sales_channels.json', 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://api.launchmystore.io/api/v1/sales_channels.json",
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([
'name' => '<string>',
'platform' => '<string>',
'config' => [
],
'sync_settings' => [
]
]),
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://api.launchmystore.io/api/v1/sales_channels.json"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"platform\": \"<string>\",\n \"config\": {},\n \"sync_settings\": {}\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://api.launchmystore.io/api/v1/sales_channels.json")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"platform\": \"<string>\",\n \"config\": {},\n \"sync_settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/sales_channels.json")
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 \"name\": \"<string>\",\n \"platform\": \"<string>\",\n \"config\": {},\n \"sync_settings\": {}\n}"
response = http.request(request)
puts response.read_bodyRegisters a sales channel owned by your app. A sales channel is the container
your app publishes product listings
into — create one before listing products. The call is idempotent per app:
re-posting returns your app’s existing channel rather than creating a
duplicate.
Auth: OAuth access token with the
write_products scope.
Body Parameters
string
required
Display name of the sales channel (e.g.
Facebook Shop).string
required
Platform identifier for the channel (e.g.
facebook, amazon, custom).object
Channel-specific configuration. Opaque to the platform — stored and returned
as-is.
object
Sync preferences for the channel. Stored and returned as-is.
Request
{
"name": "Facebook Shop",
"platform": "facebook",
"config": { "catalog_id": "1234567890" }
}
Response
{
"sales_channel": {
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"name": "Facebook Shop",
"platform": "facebook"
}
}
Errors
| Status | Body | Cause |
|---|---|---|
400 | { message: "name and platform are required" } | name or platform missing. |
403 | { errors: { base: [...] } } | Token lacks the write_products scope. |
⌘I