curl --request PATCH \
--url https://api.mareaalcalina.com/v1/storefronts/{storefrontId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"currency": "<string>",
"businessType": "<string>",
"branding": {
"logoUrl": "<string>",
"backgroundUrl": "<string>",
"theme": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>"
},
"font": "<string>"
},
"schedule": {
"monday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"tuesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"wednesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"thursday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"friday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"saturday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"sunday": {
"open": "<string>",
"close": "<string>",
"closed": true
}
},
"delivery": {
"enabled": true,
"fixedPrice": 1,
"ranges": [
{
"fromKm": 1,
"toKm": 1,
"price": 1
}
]
},
"pickup": true,
"dineIn": true,
"whatsapp": "<string>",
"biography": {
"title": "<string>",
"description": "<string>"
},
"blocks": "auto",
"categories": [
{
"name": "<string>",
"position": 123
}
],
"products": [
{
"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}"
payload = {
"name": "<string>",
"currency": "<string>",
"businessType": "<string>",
"branding": {
"logoUrl": "<string>",
"backgroundUrl": "<string>",
"theme": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>"
},
"font": "<string>"
},
"schedule": {
"monday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"tuesday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"wednesday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"thursday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"friday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"saturday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"sunday": {
"open": "<string>",
"close": "<string>",
"closed": True
}
},
"delivery": {
"enabled": True,
"fixedPrice": 1,
"ranges": [
{
"fromKm": 1,
"toKm": 1,
"price": 1
}
]
},
"pickup": True,
"dineIn": True,
"whatsapp": "<string>",
"biography": {
"title": "<string>",
"description": "<string>"
},
"blocks": "auto",
"categories": [
{
"name": "<string>",
"position": 123
}
],
"products": [
{
"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.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
currency: '<string>',
businessType: '<string>',
branding: {
logoUrl: '<string>',
backgroundUrl: '<string>',
theme: {primary: '<string>', secondary: '<string>', tertiary: '<string>'},
font: '<string>'
},
schedule: {
monday: {open: '<string>', close: '<string>', closed: true},
tuesday: {open: '<string>', close: '<string>', closed: true},
wednesday: {open: '<string>', close: '<string>', closed: true},
thursday: {open: '<string>', close: '<string>', closed: true},
friday: {open: '<string>', close: '<string>', closed: true},
saturday: {open: '<string>', close: '<string>', closed: true},
sunday: {open: '<string>', close: '<string>', closed: true}
},
delivery: {enabled: true, fixedPrice: 1, ranges: [{fromKm: 1, toKm: 1, price: 1}]},
pickup: true,
dineIn: true,
whatsapp: '<string>',
biography: {title: '<string>', description: '<string>'},
blocks: 'auto',
categories: [{name: '<string>', position: 123}],
products: [
{
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}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'currency' => '<string>',
'businessType' => '<string>',
'branding' => [
'logoUrl' => '<string>',
'backgroundUrl' => '<string>',
'theme' => [
'primary' => '<string>',
'secondary' => '<string>',
'tertiary' => '<string>'
],
'font' => '<string>'
],
'schedule' => [
'monday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'tuesday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'wednesday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'thursday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'friday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'saturday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'sunday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
]
],
'delivery' => [
'enabled' => true,
'fixedPrice' => 1,
'ranges' => [
[
'fromKm' => 1,
'toKm' => 1,
'price' => 1
]
]
],
'pickup' => true,
'dineIn' => true,
'whatsapp' => '<string>',
'biography' => [
'title' => '<string>',
'description' => '<string>'
],
'blocks' => 'auto',
'categories' => [
[
'name' => '<string>',
'position' => 123
]
],
'products' => [
[
'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}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"businessType\": \"<string>\",\n \"branding\": {\n \"logoUrl\": \"<string>\",\n \"backgroundUrl\": \"<string>\",\n \"theme\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"tertiary\": \"<string>\"\n },\n \"font\": \"<string>\"\n },\n \"schedule\": {\n \"monday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"tuesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"wednesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"thursday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"friday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"saturday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"sunday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n }\n },\n \"delivery\": {\n \"enabled\": true,\n \"fixedPrice\": 1,\n \"ranges\": [\n {\n \"fromKm\": 1,\n \"toKm\": 1,\n \"price\": 1\n }\n ]\n },\n \"pickup\": true,\n \"dineIn\": true,\n \"whatsapp\": \"<string>\",\n \"biography\": {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"blocks\": \"auto\",\n \"categories\": [\n {\n \"name\": \"<string>\",\n \"position\": 123\n }\n ],\n \"products\": [\n {\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 }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.mareaalcalina.com/v1/storefronts/{storefrontId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"businessType\": \"<string>\",\n \"branding\": {\n \"logoUrl\": \"<string>\",\n \"backgroundUrl\": \"<string>\",\n \"theme\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"tertiary\": \"<string>\"\n },\n \"font\": \"<string>\"\n },\n \"schedule\": {\n \"monday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"tuesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"wednesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"thursday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"friday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"saturday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"sunday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n }\n },\n \"delivery\": {\n \"enabled\": true,\n \"fixedPrice\": 1,\n \"ranges\": [\n {\n \"fromKm\": 1,\n \"toKm\": 1,\n \"price\": 1\n }\n ]\n },\n \"pickup\": true,\n \"dineIn\": true,\n \"whatsapp\": \"<string>\",\n \"biography\": {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"blocks\": \"auto\",\n \"categories\": [\n {\n \"name\": \"<string>\",\n \"position\": 123\n }\n ],\n \"products\": [\n {\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 }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mareaalcalina.com/v1/storefronts/{storefrontId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"businessType\": \"<string>\",\n \"branding\": {\n \"logoUrl\": \"<string>\",\n \"backgroundUrl\": \"<string>\",\n \"theme\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"tertiary\": \"<string>\"\n },\n \"font\": \"<string>\"\n },\n \"schedule\": {\n \"monday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"tuesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"wednesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"thursday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"friday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"saturday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"sunday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n }\n },\n \"delivery\": {\n \"enabled\": true,\n \"fixedPrice\": 1,\n \"ranges\": [\n {\n \"fromKm\": 1,\n \"toKm\": 1,\n \"price\": 1\n }\n ]\n },\n \"pickup\": true,\n \"dineIn\": true,\n \"whatsapp\": \"<string>\",\n \"biography\": {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"blocks\": \"auto\",\n \"categories\": [\n {\n \"name\": \"<string>\",\n \"position\": 123\n }\n ],\n \"products\": [\n {\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 }\n ]\n}"
response = http.request(request)
puts response.read_body{
"storefront": {
"id": "stf_abc123",
"name": "<string>",
"currency": "<string>",
"businessType": "<string>",
"branding": {
"logoUrl": "<string>",
"backgroundUrl": "<string>",
"theme": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>"
},
"font": "<string>"
},
"schedule": {
"monday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"tuesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"wednesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"thursday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"friday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"saturday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"sunday": {
"open": "<string>",
"close": "<string>",
"closed": true
}
},
"delivery": {
"enabled": true,
"fixedPrice": 123,
"ranges": [
{
"fromKm": 123,
"toKm": 123,
"price": 123
}
]
},
"pickup": true,
"dineIn": true,
"whatsapp": "<string>",
"biography": {
"title": "<string>",
"description": "<string>"
},
"categories": [
{
"name": "<string>",
"position": 123
}
],
"slug": "<string>",
"published": true,
"_links": {
"previewUrl": "<string>",
"editUrl": "<string>",
"publicUrl": "<string>"
},
"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>"
]
}
}Update storefront
Use this when the user wants to change ANY field of an existing storefront.
Partial PATCH (mutability rule §6.18.1.1). Deep-merge for nested objects, full-replace for arrays.
curl --request PATCH \
--url https://api.mareaalcalina.com/v1/storefronts/{storefrontId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"currency": "<string>",
"businessType": "<string>",
"branding": {
"logoUrl": "<string>",
"backgroundUrl": "<string>",
"theme": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>"
},
"font": "<string>"
},
"schedule": {
"monday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"tuesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"wednesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"thursday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"friday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"saturday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"sunday": {
"open": "<string>",
"close": "<string>",
"closed": true
}
},
"delivery": {
"enabled": true,
"fixedPrice": 1,
"ranges": [
{
"fromKm": 1,
"toKm": 1,
"price": 1
}
]
},
"pickup": true,
"dineIn": true,
"whatsapp": "<string>",
"biography": {
"title": "<string>",
"description": "<string>"
},
"blocks": "auto",
"categories": [
{
"name": "<string>",
"position": 123
}
],
"products": [
{
"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}"
payload = {
"name": "<string>",
"currency": "<string>",
"businessType": "<string>",
"branding": {
"logoUrl": "<string>",
"backgroundUrl": "<string>",
"theme": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>"
},
"font": "<string>"
},
"schedule": {
"monday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"tuesday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"wednesday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"thursday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"friday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"saturday": {
"open": "<string>",
"close": "<string>",
"closed": True
},
"sunday": {
"open": "<string>",
"close": "<string>",
"closed": True
}
},
"delivery": {
"enabled": True,
"fixedPrice": 1,
"ranges": [
{
"fromKm": 1,
"toKm": 1,
"price": 1
}
]
},
"pickup": True,
"dineIn": True,
"whatsapp": "<string>",
"biography": {
"title": "<string>",
"description": "<string>"
},
"blocks": "auto",
"categories": [
{
"name": "<string>",
"position": 123
}
],
"products": [
{
"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.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
currency: '<string>',
businessType: '<string>',
branding: {
logoUrl: '<string>',
backgroundUrl: '<string>',
theme: {primary: '<string>', secondary: '<string>', tertiary: '<string>'},
font: '<string>'
},
schedule: {
monday: {open: '<string>', close: '<string>', closed: true},
tuesday: {open: '<string>', close: '<string>', closed: true},
wednesday: {open: '<string>', close: '<string>', closed: true},
thursday: {open: '<string>', close: '<string>', closed: true},
friday: {open: '<string>', close: '<string>', closed: true},
saturday: {open: '<string>', close: '<string>', closed: true},
sunday: {open: '<string>', close: '<string>', closed: true}
},
delivery: {enabled: true, fixedPrice: 1, ranges: [{fromKm: 1, toKm: 1, price: 1}]},
pickup: true,
dineIn: true,
whatsapp: '<string>',
biography: {title: '<string>', description: '<string>'},
blocks: 'auto',
categories: [{name: '<string>', position: 123}],
products: [
{
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}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'currency' => '<string>',
'businessType' => '<string>',
'branding' => [
'logoUrl' => '<string>',
'backgroundUrl' => '<string>',
'theme' => [
'primary' => '<string>',
'secondary' => '<string>',
'tertiary' => '<string>'
],
'font' => '<string>'
],
'schedule' => [
'monday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'tuesday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'wednesday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'thursday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'friday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'saturday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
],
'sunday' => [
'open' => '<string>',
'close' => '<string>',
'closed' => true
]
],
'delivery' => [
'enabled' => true,
'fixedPrice' => 1,
'ranges' => [
[
'fromKm' => 1,
'toKm' => 1,
'price' => 1
]
]
],
'pickup' => true,
'dineIn' => true,
'whatsapp' => '<string>',
'biography' => [
'title' => '<string>',
'description' => '<string>'
],
'blocks' => 'auto',
'categories' => [
[
'name' => '<string>',
'position' => 123
]
],
'products' => [
[
'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}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"businessType\": \"<string>\",\n \"branding\": {\n \"logoUrl\": \"<string>\",\n \"backgroundUrl\": \"<string>\",\n \"theme\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"tertiary\": \"<string>\"\n },\n \"font\": \"<string>\"\n },\n \"schedule\": {\n \"monday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"tuesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"wednesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"thursday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"friday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"saturday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"sunday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n }\n },\n \"delivery\": {\n \"enabled\": true,\n \"fixedPrice\": 1,\n \"ranges\": [\n {\n \"fromKm\": 1,\n \"toKm\": 1,\n \"price\": 1\n }\n ]\n },\n \"pickup\": true,\n \"dineIn\": true,\n \"whatsapp\": \"<string>\",\n \"biography\": {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"blocks\": \"auto\",\n \"categories\": [\n {\n \"name\": \"<string>\",\n \"position\": 123\n }\n ],\n \"products\": [\n {\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 }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.mareaalcalina.com/v1/storefronts/{storefrontId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"businessType\": \"<string>\",\n \"branding\": {\n \"logoUrl\": \"<string>\",\n \"backgroundUrl\": \"<string>\",\n \"theme\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"tertiary\": \"<string>\"\n },\n \"font\": \"<string>\"\n },\n \"schedule\": {\n \"monday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"tuesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"wednesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"thursday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"friday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"saturday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"sunday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n }\n },\n \"delivery\": {\n \"enabled\": true,\n \"fixedPrice\": 1,\n \"ranges\": [\n {\n \"fromKm\": 1,\n \"toKm\": 1,\n \"price\": 1\n }\n ]\n },\n \"pickup\": true,\n \"dineIn\": true,\n \"whatsapp\": \"<string>\",\n \"biography\": {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"blocks\": \"auto\",\n \"categories\": [\n {\n \"name\": \"<string>\",\n \"position\": 123\n }\n ],\n \"products\": [\n {\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 }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mareaalcalina.com/v1/storefronts/{storefrontId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"businessType\": \"<string>\",\n \"branding\": {\n \"logoUrl\": \"<string>\",\n \"backgroundUrl\": \"<string>\",\n \"theme\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"tertiary\": \"<string>\"\n },\n \"font\": \"<string>\"\n },\n \"schedule\": {\n \"monday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"tuesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"wednesday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"thursday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"friday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"saturday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n },\n \"sunday\": {\n \"open\": \"<string>\",\n \"close\": \"<string>\",\n \"closed\": true\n }\n },\n \"delivery\": {\n \"enabled\": true,\n \"fixedPrice\": 1,\n \"ranges\": [\n {\n \"fromKm\": 1,\n \"toKm\": 1,\n \"price\": 1\n }\n ]\n },\n \"pickup\": true,\n \"dineIn\": true,\n \"whatsapp\": \"<string>\",\n \"biography\": {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"blocks\": \"auto\",\n \"categories\": [\n {\n \"name\": \"<string>\",\n \"position\": 123\n }\n ],\n \"products\": [\n {\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 }\n ]\n}"
response = http.request(request)
puts response.read_body{
"storefront": {
"id": "stf_abc123",
"name": "<string>",
"currency": "<string>",
"businessType": "<string>",
"branding": {
"logoUrl": "<string>",
"backgroundUrl": "<string>",
"theme": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>"
},
"font": "<string>"
},
"schedule": {
"monday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"tuesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"wednesday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"thursday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"friday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"saturday": {
"open": "<string>",
"close": "<string>",
"closed": true
},
"sunday": {
"open": "<string>",
"close": "<string>",
"closed": true
}
},
"delivery": {
"enabled": true,
"fixedPrice": 123,
"ranges": [
{
"fromKm": 123,
"toKm": 123,
"price": 123
}
]
},
"pickup": true,
"dineIn": true,
"whatsapp": "<string>",
"biography": {
"title": "<string>",
"description": "<string>"
},
"categories": [
{
"name": "<string>",
"position": 123
}
],
"slug": "<string>",
"published": true,
"_links": {
"previewUrl": "<string>",
"editUrl": "<string>",
"publicUrl": "<string>"
},
"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.
1 - 100es, en, pt ^[A-Z]{3}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
auto Show child attributes
Show child attributes
100Show child attributes
Show child attributes
Response
Success.
Show child attributes
Show child attributes