curl --request POST \
--url https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"price": 1,
"description": "<string>",
"salePrice": 1,
"category": "<string>",
"subcategory": "<string>",
"imageUrl": "<string>",
"thumbnailUrl": "<string>",
"sku": "<string>",
"slug": "<string>",
"position": 123,
"cartProduct": true,
"hide": true,
"stock": 123,
"tags": [
"<string>"
],
"extraProductsCategory": [
{
"title": "<string>",
"obligatory": true,
"multipleOption": true,
"maxOptions": 123,
"minOptions": 123,
"extraProducts": [
{
"title": "<string>",
"price": 1,
"available": true,
"stock": 123
}
]
}
]
}
'import requests
url = "https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products"
payload = {
"title": "<string>",
"price": 1,
"description": "<string>",
"salePrice": 1,
"category": "<string>",
"subcategory": "<string>",
"imageUrl": "<string>",
"thumbnailUrl": "<string>",
"sku": "<string>",
"slug": "<string>",
"position": 123,
"cartProduct": True,
"hide": True,
"stock": 123,
"tags": ["<string>"],
"extraProductsCategory": [
{
"title": "<string>",
"obligatory": True,
"multipleOption": True,
"maxOptions": 123,
"minOptions": 123,
"extraProducts": [
{
"title": "<string>",
"price": 1,
"available": True,
"stock": 123
}
]
}
]
}
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({
title: '<string>',
price: 1,
description: '<string>',
salePrice: 1,
category: '<string>',
subcategory: '<string>',
imageUrl: '<string>',
thumbnailUrl: '<string>',
sku: '<string>',
slug: '<string>',
position: 123,
cartProduct: true,
hide: true,
stock: 123,
tags: ['<string>'],
extraProductsCategory: [
{
title: '<string>',
obligatory: true,
multipleOption: true,
maxOptions: 123,
minOptions: 123,
extraProducts: [{title: '<string>', price: 1, available: true, stock: 123}]
}
]
})
};
fetch('https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products', 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.mareaalcalina.com/v1/storefronts/{storefrontId}/products",
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([
'title' => '<string>',
'price' => 1,
'description' => '<string>',
'salePrice' => 1,
'category' => '<string>',
'subcategory' => '<string>',
'imageUrl' => '<string>',
'thumbnailUrl' => '<string>',
'sku' => '<string>',
'slug' => '<string>',
'position' => 123,
'cartProduct' => true,
'hide' => true,
'stock' => 123,
'tags' => [
'<string>'
],
'extraProductsCategory' => [
[
'title' => '<string>',
'obligatory' => true,
'multipleOption' => true,
'maxOptions' => 123,
'minOptions' => 123,
'extraProducts' => [
[
'title' => '<string>',
'price' => 1,
'available' => true,
'stock' => 123
]
]
]
]
]),
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.mareaalcalina.com/v1/storefronts/{storefrontId}/products"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"price\": 1,\n \"description\": \"<string>\",\n \"salePrice\": 1,\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"thumbnailUrl\": \"<string>\",\n \"sku\": \"<string>\",\n \"slug\": \"<string>\",\n \"position\": 123,\n \"cartProduct\": true,\n \"hide\": true,\n \"stock\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"extraProductsCategory\": [\n {\n \"title\": \"<string>\",\n \"obligatory\": true,\n \"multipleOption\": true,\n \"maxOptions\": 123,\n \"minOptions\": 123,\n \"extraProducts\": [\n {\n \"title\": \"<string>\",\n \"price\": 1,\n \"available\": true,\n \"stock\": 123\n }\n ]\n }\n ]\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.mareaalcalina.com/v1/storefronts/{storefrontId}/products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"price\": 1,\n \"description\": \"<string>\",\n \"salePrice\": 1,\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"thumbnailUrl\": \"<string>\",\n \"sku\": \"<string>\",\n \"slug\": \"<string>\",\n \"position\": 123,\n \"cartProduct\": true,\n \"hide\": true,\n \"stock\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"extraProductsCategory\": [\n {\n \"title\": \"<string>\",\n \"obligatory\": true,\n \"multipleOption\": true,\n \"maxOptions\": 123,\n \"minOptions\": 123,\n \"extraProducts\": [\n {\n \"title\": \"<string>\",\n \"price\": 1,\n \"available\": true,\n \"stock\": 123\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products")
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 \"title\": \"<string>\",\n \"price\": 1,\n \"description\": \"<string>\",\n \"salePrice\": 1,\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"thumbnailUrl\": \"<string>\",\n \"sku\": \"<string>\",\n \"slug\": \"<string>\",\n \"position\": 123,\n \"cartProduct\": true,\n \"hide\": true,\n \"stock\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"extraProductsCategory\": [\n {\n \"title\": \"<string>\",\n \"obligatory\": true,\n \"multipleOption\": true,\n \"maxOptions\": 123,\n \"minOptions\": 123,\n \"extraProducts\": [\n {\n \"title\": \"<string>\",\n \"price\": 1,\n \"available\": true,\n \"stock\": 123\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"product": {
"id": "prd_abc123",
"title": "<string>",
"description": "<string>",
"price": 123,
"salePrice": 123,
"category": "<string>",
"subcategory": "<string>",
"imageUrl": "<string>",
"thumbnailUrl": "<string>",
"sku": "<string>",
"slug": "<string>",
"position": 123,
"cartProduct": true,
"hide": true,
"stock": 123,
"tags": [
"<string>"
],
"extraProductsCategory": [
{
"title": "<string>",
"obligatory": true,
"multipleOption": true,
"maxOptions": 123,
"minOptions": 123,
"extraProducts": [
{
"title": "<string>",
"price": 1,
"available": true,
"stock": 123
}
]
}
],
"imageProcessingPending": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}Add product
Use this when the user wants to add a product to an existing storefront.
curl --request POST \
--url https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"price": 1,
"description": "<string>",
"salePrice": 1,
"category": "<string>",
"subcategory": "<string>",
"imageUrl": "<string>",
"thumbnailUrl": "<string>",
"sku": "<string>",
"slug": "<string>",
"position": 123,
"cartProduct": true,
"hide": true,
"stock": 123,
"tags": [
"<string>"
],
"extraProductsCategory": [
{
"title": "<string>",
"obligatory": true,
"multipleOption": true,
"maxOptions": 123,
"minOptions": 123,
"extraProducts": [
{
"title": "<string>",
"price": 1,
"available": true,
"stock": 123
}
]
}
]
}
'import requests
url = "https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products"
payload = {
"title": "<string>",
"price": 1,
"description": "<string>",
"salePrice": 1,
"category": "<string>",
"subcategory": "<string>",
"imageUrl": "<string>",
"thumbnailUrl": "<string>",
"sku": "<string>",
"slug": "<string>",
"position": 123,
"cartProduct": True,
"hide": True,
"stock": 123,
"tags": ["<string>"],
"extraProductsCategory": [
{
"title": "<string>",
"obligatory": True,
"multipleOption": True,
"maxOptions": 123,
"minOptions": 123,
"extraProducts": [
{
"title": "<string>",
"price": 1,
"available": True,
"stock": 123
}
]
}
]
}
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({
title: '<string>',
price: 1,
description: '<string>',
salePrice: 1,
category: '<string>',
subcategory: '<string>',
imageUrl: '<string>',
thumbnailUrl: '<string>',
sku: '<string>',
slug: '<string>',
position: 123,
cartProduct: true,
hide: true,
stock: 123,
tags: ['<string>'],
extraProductsCategory: [
{
title: '<string>',
obligatory: true,
multipleOption: true,
maxOptions: 123,
minOptions: 123,
extraProducts: [{title: '<string>', price: 1, available: true, stock: 123}]
}
]
})
};
fetch('https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products', 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.mareaalcalina.com/v1/storefronts/{storefrontId}/products",
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([
'title' => '<string>',
'price' => 1,
'description' => '<string>',
'salePrice' => 1,
'category' => '<string>',
'subcategory' => '<string>',
'imageUrl' => '<string>',
'thumbnailUrl' => '<string>',
'sku' => '<string>',
'slug' => '<string>',
'position' => 123,
'cartProduct' => true,
'hide' => true,
'stock' => 123,
'tags' => [
'<string>'
],
'extraProductsCategory' => [
[
'title' => '<string>',
'obligatory' => true,
'multipleOption' => true,
'maxOptions' => 123,
'minOptions' => 123,
'extraProducts' => [
[
'title' => '<string>',
'price' => 1,
'available' => true,
'stock' => 123
]
]
]
]
]),
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.mareaalcalina.com/v1/storefronts/{storefrontId}/products"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"price\": 1,\n \"description\": \"<string>\",\n \"salePrice\": 1,\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"thumbnailUrl\": \"<string>\",\n \"sku\": \"<string>\",\n \"slug\": \"<string>\",\n \"position\": 123,\n \"cartProduct\": true,\n \"hide\": true,\n \"stock\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"extraProductsCategory\": [\n {\n \"title\": \"<string>\",\n \"obligatory\": true,\n \"multipleOption\": true,\n \"maxOptions\": 123,\n \"minOptions\": 123,\n \"extraProducts\": [\n {\n \"title\": \"<string>\",\n \"price\": 1,\n \"available\": true,\n \"stock\": 123\n }\n ]\n }\n ]\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.mareaalcalina.com/v1/storefronts/{storefrontId}/products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"price\": 1,\n \"description\": \"<string>\",\n \"salePrice\": 1,\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"thumbnailUrl\": \"<string>\",\n \"sku\": \"<string>\",\n \"slug\": \"<string>\",\n \"position\": 123,\n \"cartProduct\": true,\n \"hide\": true,\n \"stock\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"extraProductsCategory\": [\n {\n \"title\": \"<string>\",\n \"obligatory\": true,\n \"multipleOption\": true,\n \"maxOptions\": 123,\n \"minOptions\": 123,\n \"extraProducts\": [\n {\n \"title\": \"<string>\",\n \"price\": 1,\n \"available\": true,\n \"stock\": 123\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mareaalcalina.com/v1/storefronts/{storefrontId}/products")
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 \"title\": \"<string>\",\n \"price\": 1,\n \"description\": \"<string>\",\n \"salePrice\": 1,\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"thumbnailUrl\": \"<string>\",\n \"sku\": \"<string>\",\n \"slug\": \"<string>\",\n \"position\": 123,\n \"cartProduct\": true,\n \"hide\": true,\n \"stock\": 123,\n \"tags\": [\n \"<string>\"\n ],\n \"extraProductsCategory\": [\n {\n \"title\": \"<string>\",\n \"obligatory\": true,\n \"multipleOption\": true,\n \"maxOptions\": 123,\n \"minOptions\": 123,\n \"extraProducts\": [\n {\n \"title\": \"<string>\",\n \"price\": 1,\n \"available\": true,\n \"stock\": 123\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"product": {
"id": "prd_abc123",
"title": "<string>",
"description": "<string>",
"price": 123,
"salePrice": 123,
"category": "<string>",
"subcategory": "<string>",
"imageUrl": "<string>",
"thumbnailUrl": "<string>",
"sku": "<string>",
"slug": "<string>",
"position": 123,
"cartProduct": true,
"hide": true,
"stock": 123,
"tags": [
"<string>"
],
"extraProductsCategory": [
{
"title": "<string>",
"obligatory": true,
"multipleOption": true,
"maxOptions": 123,
"minOptions": 123,
"extraProducts": [
{
"title": "<string>",
"price": 1,
"available": true,
"stock": 123
}
]
}
],
"imageProcessingPending": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}{
"error": {
"type": "auth",
"code": "missing_authorization",
"message": "<string>",
"doc": "<string>",
"param": "<string>",
"requestId": "req_30a9358b-70bd-44f3-aa5d-8983b558ad84",
"requestLogUrl": "<string>",
"recoverable": true,
"retryAfterMs": 123,
"nextActions": [
{
"label": "Validate the JSON before retrying.",
"method": null,
"url": null
}
],
"upgrade": {
"currentPlan": "free",
"requiredPlan": "pro",
"upgradeUrl": "https://mareaalcalina.com/upgrade?planSource=api",
"previewUrl": "<string>"
},
"requiredScopes": [
"<string>"
],
"heldScopes": [
"<string>"
]
}
}Authorizations
Marea API key. mk_dev_* keys are developer-scoped (bootstrap, list users, register webhook). mk_user_* keys are user-scoped (manage that one user's storefronts/products). Scopes: catalog:read, catalog:write, storefront:publish, me:verify, me:resendVerification, developer:bootstrap, developer:read, developer:issueUserKey, developer:webhooks.
Headers
Optional client-supplied key. Replays of the same key within 24h return the original response. Recommended for POSTs that mutate billing/inventory.
200"idem_b2a9f5b9-3e0c-4a5e-b3c2-7a4ce85a6b21"
BCP-47 locale tag for localized error messages (es, en, pt). Defaults to es.
"es-MX"
Path Parameters
Body
Request body.
Agent-facing product input shape. Mutability rule §6.18.1.1: every field PATCHable post-create.
1 - 200x >= 0x >= 0Show child attributes
Show child attributes
Response
Resource created.
Show child attributes
Show child attributes