Update storefront settings
Changes the storefront document, its switch, or both. Groups you send are merged into the saved document. Custom CSS and JavaScript, and the switch, need a trusted token of the account owner. One change is saved at a time: if another is being saved, you get 409 and can try again. Settings are kept per mode: a test token works on the test settings, a live token on the live ones. Secret and trusted tokens may call it when their permissions include settings_storefront. Limited tokens may not.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
show?stringComma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
hide?stringComma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
formatted?booleanWhen true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.
falseapplication/json- body
Change the storefront document, the switch, or both. Send only what you want to change.
1 <= propertiessettings?|The groups to change. A group you send is merged field by field (a list replaces the list). A group sent as null goes back to the defaults. A group you leave out is kept. Send settings: null to discard the whole document; you must switch the shop off first. Changing custom needs the account owner (403 otherwise), and flags cannot be changed.
enabled?booleanTurn the switch on or off. Only the account owner may do this (403 otherwise). Turning it on needs a saved document (422), and none of your own apps on an address the storefront uses (409).
The storefront settings, after the change.
application/json- response
The hosted storefront's settings in the current mode: one document used by the shop, cart, checkout, payment page and customer account, and the switch that says whether the shop's own addresses show the storefront.
object?"settings_storefront"The object type. Always settings_storefront.
"settings_storefront"url?stringThe URL of this object.
uriaccount_id?stringThe ID of the account the settings belong to.
test?booleanTrue for the test mode settings, false for live.
date_created?stringWhen the settings were first saved.
date-timedate_modified?stringWhen the document or the switch last changed.
date-timemodified_by?|The ID of the user who last changed the document or the switch.
enabled?booleanThe shop's switch. True when its own addresses show the storefront.
live?booleanTrue when the shop's addresses show the storefront: its own switch is on, or Comecero shows the storefront for every shop.
managed?booleanTrue when Comecero shows the storefront for every shop. The shop's own switch then decides nothing.
date_enabled?|When the switch was turned on. null while it is off.
date-timecan_switch?booleanWhether the caller may turn the switch on or off.
can_edit_code?booleanWhether the caller may change the custom CSS and JavaScript.
has_settings?booleanWhether a settings document has been saved.
settings?|The settings document. null until it is first saved.
storefront_url?|Where the shop's storefront answers now. null when the shop has no host.
uripreview_url?|The storefront's own address for the shop, where the document can be seen before the switch is on.
urihosts?array<string>The shop's host names, from the technical settings (app_hosts).
platform_apps?array<>The Comecero apps the account has installed that the storefront replaces.
own_apps?array<>Apps of your own that are installed. They are served as before.
alias_conflicts?array<string>Aliases of your own apps that would hide a storefront page. Give each a different alias before you turn the switch on.
formatted?Display text for the dates. Returned only when formatted=true.
curl -X POST 'https://api.comecero.com/api/v1/settings/storefront' \ -H 'Content-Type: application/json' \ -d '{ "settings": { "brand": { "name": "Example Store" }, "theme": { "primary": "#1F6FEB" } }}'{ "object": "settings_storefront", "url": "https://api.comecero.com/api/v1/settings/storefront", "account_id": "AB1234", "test": true, "date_created": "2026-09-28T10:02:44Z", "date_modified": "2026-10-02T14:21:07Z", "modified_by": "1000", "enabled": true, "live": true, "managed": false, "date_enabled": "2026-10-02T14:21:07Z", "can_switch": true, "can_edit_code": true, "has_settings": true, "settings": { "version": 1, "brand": { "name": "Example Store", "logo": "https://cdn.example.com/logo.png" }, "theme": { "mode": "standard", "primary": "#1F6FEB" }, "source": { "kind": "storefront" } }, "storefront_url": "https://example.apps.comecero.com", "preview_url": "https://example.shop.comecero.com", "hosts": [ "example.apps.comecero.com" ], "platform_apps": [ { "app_id": "comecero-shopping-cart", "alias": "cart", "name": "Shopping Cart", "version": "3.1.60", "key": "cart" } ], "own_apps": [], "alias_conflicts": []}Get storefront settings GET
Returns the hosted storefront's settings document, its switch, the shop's addresses and what the caller may change. Settings are kept per mode: a test token works on the test settings, a live token on the live ones. Secret and trusted tokens may call it when their permissions include `settings_storefront`. Limited tokens may not.
Get subscription settings GET
Returns how subscriptions renew: reminders, payment retries, what customers may change themselves, and renewal emails. Settings are kept per mode: a test token works on the test settings, a live token on the live ones. Secret and trusted tokens may call it when their permissions include `settings_subscription`. Limited tokens may not.