إنتقل إلى المحتوى الرئيسي

Store

The "store" is the top-level container of products, orders, customers, etc. Every key is bound to exactly one store. There is no way to query other merchants' stores.

GET /v1/store

Returns the profile of the store the calling key belongs to.

Auth: platform key with scope store:read.

Request

curl https://api.dzbuild.app/v1/store \
-H "Authorization: Bearer $DZ_KEY"

Response 200

{
"data": {
"id": 13,
"name": "DZBuild",
"slug": "dzbuild",
"language": "ar",
"description": "DZBuild Offers Preview",
"logo": "/uploads/logos/13/8e19a05f0e4205bbcd861469ec0f9257.webp",
"favicon": null,
"banner": null,
"theme": {
"primary_color": "#f59e0b",
"secondary_color": "#fbbf24",
"background_color": "#ffffff",
"font_family": "Cairo"
},
"subdomain": "dzbuild.minacef.app",
"custom_domain": null,
"custom_domain_verified": false,
"public_url": "https://dzbuild.minacef.app",
"hide_branding": false,
"created_at": "2026-01-13 14:58:23"
},
"meta": { "request_id": "...", "api_version": "v1" }
}

Field reference

FieldTypeNotes
idintStable internal id. Same as store_id everywhere else.
namestringDisplay name. Shown in storefront navbar + emails.
slugstringURL-safe identifier. Used in <slug>.dzbuild.app etc.
languageenumar or fr. Drives storefront RTL/LTR.
descriptionstring|nullShort tagline.
logostring|nullPath on cdn.dzbuild.app if set. Prepend the CDN base if you display it.
faviconstring|nullSame.
bannerstring|nullSame.
theme.primary_colorhex stringThe dominant button + accent color.
theme.secondary_colorhex stringHover / secondary accents.
theme.background_colorhex stringPage background.
theme.font_familystringTypography (default Cairo).
subdomainstring|nullThe DZBuild-issued subdomain (always present).
custom_domainstring|nullThe merchant's own domain. Only set if added via dashboard.
custom_domain_verifiedboolTrue only when DNS + SSL provisioning completed.
public_urlstringWhere customers actually land. Prefers custom_domain if verified.
hide_brandingbool"Powered by DZBuild" hidden in storefront footer. Pro+.
created_attimestampStore creation time, server-local.

Errors

HTTPCodeCause
401unauthorizedBad or missing key
403forbiddenKey lacks store:read
404not_foundStore row was deleted while you were holding the key (very rare)

PATCH /v1/store (coming v1.1)

Update store profile fields (name, slug, theme colors, custom domain).

This endpoint is reserved — the surface is locked but the implementation is part of the v1.1 milestone. Until then, edits go through the dashboard.