Create marketplace
curl --request POST \
--url https://api.zochil.io/v3/monitoring/marketplaces/create \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"uid": "<string>",
"phone": "<string>",
"category": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"logo": "<string>",
"description": "<string>",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"twitter_url": "<string>",
"payment_rule": "<string>",
"delivery_rule": "<string>",
"social_page_uid": "<string>",
"custom_domain": "<string>",
"terms_of_service": "<string>",
"is_test": true,
"type": "<string>",
"settlement_status": "<string>",
"features": [
"<string>"
],
"theme": "<string>"
}
'import requests
url = "https://api.zochil.io/v3/monitoring/marketplaces/create"
payload = {
"name": "<string>",
"uid": "<string>",
"phone": "<string>",
"category": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"logo": "<string>",
"description": "<string>",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"twitter_url": "<string>",
"payment_rule": "<string>",
"delivery_rule": "<string>",
"social_page_uid": "<string>",
"custom_domain": "<string>",
"terms_of_service": "<string>",
"is_test": True,
"type": "<string>",
"settlement_status": "<string>",
"features": ["<string>"],
"theme": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
uid: '<string>',
phone: '<string>',
category: '<string>',
address: '<string>',
email: 'jsmith@example.com',
logo: '<string>',
description: '<string>',
facebook_url: '<string>',
instagram_url: '<string>',
youtube_url: '<string>',
twitter_url: '<string>',
payment_rule: '<string>',
delivery_rule: '<string>',
social_page_uid: '<string>',
custom_domain: '<string>',
terms_of_service: '<string>',
is_test: true,
type: '<string>',
settlement_status: '<string>',
features: ['<string>'],
theme: '<string>'
})
};
fetch('https://api.zochil.io/v3/monitoring/marketplaces/create', 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.zochil.io/v3/monitoring/marketplaces/create",
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>',
'uid' => '<string>',
'phone' => '<string>',
'category' => '<string>',
'address' => '<string>',
'email' => 'jsmith@example.com',
'logo' => '<string>',
'description' => '<string>',
'facebook_url' => '<string>',
'instagram_url' => '<string>',
'youtube_url' => '<string>',
'twitter_url' => '<string>',
'payment_rule' => '<string>',
'delivery_rule' => '<string>',
'social_page_uid' => '<string>',
'custom_domain' => '<string>',
'terms_of_service' => '<string>',
'is_test' => true,
'type' => '<string>',
'settlement_status' => '<string>',
'features' => [
'<string>'
],
'theme' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.zochil.io/v3/monitoring/marketplaces/create"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"uid\": \"<string>\",\n \"phone\": \"<string>\",\n \"category\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"payment_rule\": \"<string>\",\n \"delivery_rule\": \"<string>\",\n \"social_page_uid\": \"<string>\",\n \"custom_domain\": \"<string>\",\n \"terms_of_service\": \"<string>\",\n \"is_test\": true,\n \"type\": \"<string>\",\n \"settlement_status\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"theme\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.zochil.io/v3/monitoring/marketplaces/create")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"uid\": \"<string>\",\n \"phone\": \"<string>\",\n \"category\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"payment_rule\": \"<string>\",\n \"delivery_rule\": \"<string>\",\n \"social_page_uid\": \"<string>\",\n \"custom_domain\": \"<string>\",\n \"terms_of_service\": \"<string>\",\n \"is_test\": true,\n \"type\": \"<string>\",\n \"settlement_status\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"theme\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zochil.io/v3/monitoring/marketplaces/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"uid\": \"<string>\",\n \"phone\": \"<string>\",\n \"category\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"payment_rule\": \"<string>\",\n \"delivery_rule\": \"<string>\",\n \"social_page_uid\": \"<string>\",\n \"custom_domain\": \"<string>\",\n \"terms_of_service\": \"<string>\",\n \"is_test\": true,\n \"type\": \"<string>\",\n \"settlement_status\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"theme\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyMarketplaces
Create marketplace
Create a new marketplace
POST
/
marketplaces
/
create
Create marketplace
curl --request POST \
--url https://api.zochil.io/v3/monitoring/marketplaces/create \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"uid": "<string>",
"phone": "<string>",
"category": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"logo": "<string>",
"description": "<string>",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"twitter_url": "<string>",
"payment_rule": "<string>",
"delivery_rule": "<string>",
"social_page_uid": "<string>",
"custom_domain": "<string>",
"terms_of_service": "<string>",
"is_test": true,
"type": "<string>",
"settlement_status": "<string>",
"features": [
"<string>"
],
"theme": "<string>"
}
'import requests
url = "https://api.zochil.io/v3/monitoring/marketplaces/create"
payload = {
"name": "<string>",
"uid": "<string>",
"phone": "<string>",
"category": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"logo": "<string>",
"description": "<string>",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"twitter_url": "<string>",
"payment_rule": "<string>",
"delivery_rule": "<string>",
"social_page_uid": "<string>",
"custom_domain": "<string>",
"terms_of_service": "<string>",
"is_test": True,
"type": "<string>",
"settlement_status": "<string>",
"features": ["<string>"],
"theme": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
uid: '<string>',
phone: '<string>',
category: '<string>',
address: '<string>',
email: 'jsmith@example.com',
logo: '<string>',
description: '<string>',
facebook_url: '<string>',
instagram_url: '<string>',
youtube_url: '<string>',
twitter_url: '<string>',
payment_rule: '<string>',
delivery_rule: '<string>',
social_page_uid: '<string>',
custom_domain: '<string>',
terms_of_service: '<string>',
is_test: true,
type: '<string>',
settlement_status: '<string>',
features: ['<string>'],
theme: '<string>'
})
};
fetch('https://api.zochil.io/v3/monitoring/marketplaces/create', 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.zochil.io/v3/monitoring/marketplaces/create",
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>',
'uid' => '<string>',
'phone' => '<string>',
'category' => '<string>',
'address' => '<string>',
'email' => 'jsmith@example.com',
'logo' => '<string>',
'description' => '<string>',
'facebook_url' => '<string>',
'instagram_url' => '<string>',
'youtube_url' => '<string>',
'twitter_url' => '<string>',
'payment_rule' => '<string>',
'delivery_rule' => '<string>',
'social_page_uid' => '<string>',
'custom_domain' => '<string>',
'terms_of_service' => '<string>',
'is_test' => true,
'type' => '<string>',
'settlement_status' => '<string>',
'features' => [
'<string>'
],
'theme' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.zochil.io/v3/monitoring/marketplaces/create"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"uid\": \"<string>\",\n \"phone\": \"<string>\",\n \"category\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"payment_rule\": \"<string>\",\n \"delivery_rule\": \"<string>\",\n \"social_page_uid\": \"<string>\",\n \"custom_domain\": \"<string>\",\n \"terms_of_service\": \"<string>\",\n \"is_test\": true,\n \"type\": \"<string>\",\n \"settlement_status\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"theme\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.zochil.io/v3/monitoring/marketplaces/create")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"uid\": \"<string>\",\n \"phone\": \"<string>\",\n \"category\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"payment_rule\": \"<string>\",\n \"delivery_rule\": \"<string>\",\n \"social_page_uid\": \"<string>\",\n \"custom_domain\": \"<string>\",\n \"terms_of_service\": \"<string>\",\n \"is_test\": true,\n \"type\": \"<string>\",\n \"settlement_status\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"theme\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zochil.io/v3/monitoring/marketplaces/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"uid\": \"<string>\",\n \"phone\": \"<string>\",\n \"category\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"payment_rule\": \"<string>\",\n \"delivery_rule\": \"<string>\",\n \"social_page_uid\": \"<string>\",\n \"custom_domain\": \"<string>\",\n \"terms_of_service\": \"<string>\",\n \"is_test\": true,\n \"type\": \"<string>\",\n \"settlement_status\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"theme\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Response
201
Marketplace created successfully

