Wocart
Wocart API

Store Settings

Server

Get store configuration

GET
https://api.wocart.store
/api/stores/me
X-API-Key (header)

Returns the current store's configuration including branding, theme, localization, SEO, and storefront settings.

Get store configuration › Responses

200

Store configuration

success
​boolean · required
​Store · required

Single-tenant store configuration: branding, theme, localization, SEO, and feature flags


Update store configuration

PATCH
https://api.wocart.store
/api/stores/me
X-API-Key (header)

Partially updates the store configuration. All fields are optional — only include the fields you want to change. Set nullable fields to null to clear them.

Update store configuration › Request Body

name
​string · minLength: 1 · maxLength: 100
logoKey
​string | null · minLength: 1 · maxLength: 512

A Media Key: the image's identity in the store's media. Never a URL.

domain
​string | null · maxLength: 200 · pattern: ^[a-z0-9][a-z0-9.-]*…
lang
​string · enum
Enum values:
ar
fr
en
​object[] · minItems: 1 · maxItems: 3
currencySymbol
​string · minLength: 1 · maxLength: 10
metaTitle
​string | null · maxLength: 200
metaDescription
​string | null · maxLength: 500
ogImageKey
​string | null · minLength: 1 · maxLength: 512

A Media Key: the image's identity in the store's media. Never a URL.

cartEnabled
​boolean
freeShippingThreshold
​integer | null · min: 1 · max: 10000000
cartShippingMode
​string · enum
Enum values:
highest
default_profile

Update store configuration › Responses

200

Updated store configuration

success
​boolean · required
​Store · required

Single-tenant store configuration: branding, theme, localization, SEO, and feature flags


Get a store's translations

GET
https://api.wocart.store
/api/stores/me/translations
X-API-Key (header)

The translatable fields in the store's primary language and every stored translation, each flagged outdated when its source text changed after it was written.

Get a store's translations › Responses

200

Source and translations

success
​boolean · required
​object · required

Translate a store into one language

PATCH
https://api.wocart.store
/api/stores/me/translations
X-API-Key (header)

A JSON Merge Patch (RFC 7396) of one language: a string sets a field, null removes its translation, other fields are untouched. The language must be one the store has added, and not its primary — the resource's own fields hold that.

Translate a store into one language › Request Body

locale
​string · enum · required
Enum values:
ar
fr
en
​object · required

Translate a store into one language › Responses

200

Source and translations after the patch

success
​boolean · required
​object · required