curl --request PATCH \
--url https://api.mareaalcalina.com/v1/storefronts/{storefrontId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "es",
"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,
"type": "fixed",
"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
}
]
}
]
}
]
}
'{
"storefront": {
"id": "stf_abc123",
"name": "<string>",
"language": "es",
"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,
"type": "fixed",
"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>"
}
}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>",
"language": "es",
"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,
"type": "fixed",
"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
}
]
}
]
}
]
}
'{
"storefront": {
"id": "stf_abc123",
"name": "<string>",
"language": "es",
"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,
"type": "fixed",
"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>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.mareaalcalina.com/llms.txt
Use this file to discover all available pages before exploring further.
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).
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"
Request body.
1 - 100es, en, pt ^[A-Z]{3}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
auto Show child attributes
100Show child attributes
Success.
Show child attributes