Skip to main content

Build apps for DZBuild stores

Build a tool that any merchant can install on their DZBuild store, or a private one that automates your own. Start with a working example, a ready prompt for your AI assistant, or the API directly.

You host the app. The merchant chooses which store data it can access.

Give your coding agent one line

Read https://dzbuild.dev/llms.txt and https://dzbuild.dev/skills/dzbuild-apps/SKILL.md. Then help me build a DZBuild app.

From an API request to a catalog export.

cloudflare-catalogExample app

A store catalog, ready to export

The catalog starter lists a store’s products and lets the merchant download them as a CSV file.

  1. The merchant connects their storeOAuth
  2. Your app reads the productsproducts:read
  3. The merchant downloads the catalogCSV

Two ways to build on DZBuild

For developers

Build an app every seller can install

  • OAuth install, one token per store, signed webhooks
  • Orders, products, delivery, customers and WhatsApp in one REST API
  • Listed in the dashboard after DZBuild reviews it

For sellers

Automate your own store with AI

  • Any plan: an AI assistant builds a private app that only your stores can install
  • Daily sales on Telegram, orders in Google Sheets, low-stock alerts, bulk price changes
  • Enterprise: run the store by chatting with Claude or ChatGPT

How an app works

  1. Register the app

    Create it in the developer console. You get a client_id, a client secret shown once, and a signing secret for webhooks and launch links.

    Get started
  2. A merchant installs it

    Send the merchant to the authorize URL with a PKCE challenge. They approve on a DZBuild consent screen, and your server exchanges the code for one install token per store.

    The OAuth flow
  3. Call the API

    Send the token to api.dzbuild.app/v1. Poll GET /v1/orders?since= for new orders, or receive signed order events on a webhook URL on a domain you own (DZBuild refuses workers.dev addresses). Test on your own store, then submit the app for review.

    Webhooks
See an example of merchant approval and the token response

DZBuild is the e-commerce platform for Algerian merchants. A DZBuild app is a web service you host, on your own Cloudflare account or your own server. A merchant installs it on their store, and your app reads and changes that store's orders, products, delivery, customers and WhatsApp messages through the REST API.

The merchant approves on DZBuild

Install orders-bot on your store

orders-bot asks for access to your store. Once you approve, it can only do the following.

What this app will be able to do

View orders (read only; it cannot create or change orders) orders:read

DenyApprove and install

You can remove the app at any time from the Extensions page.

Your server exchanges the code for the install token

POST https://dzbuild.com/oauth/apps/token

200 OK
{
  "access_token": "dzpk_live_0a1b2c3d4e5f67.9f8e...",
  "token_type": "Bearer",
  "scope": "orders:read",
  "store_id": 141,
  "install_id": 7,
  "stores": [
    {
      "store_id": 141,
      "store_name": "My test store",
      "install_id": 7,
      "access_token": "dzpk_live_0a1b2c3d4e5f67.9f8e..."
    }
  ]
}
The OAuth flow

Prompt library

Paste a prompt, get a working tool

Each app prompt sends the assistant to these docs first, so Claude, ChatGPT, Codex or Cursor builds against the real API. All 18 prompts

Post every new order to a Telegram group

One Telegram message per order, never twice, from an app that polls the orders list once a minute.

orders:read

Read https://dzbuild.dev/llms.txt and https://dzbuild.dev/skills/dzbuild-apps/SKILL.md. Build a DZBuild app that posts every new order to a Telegram group. Start from the cloudflare-orders preset of https://github.com/DZBuild-com/dzbuild-app-starter. New orders come from polling GET /v1/orders?since= once a minute, because the app runs on workers.dev and cannot receive webhooks yet. One Telegram message per order, never twice; the bot token is a Worker secret.

Get my sales report on Telegram every evening

At 21:00 Algiers time: orders received, confirmed, shipped, delivered, cancelled and returned today.

orders:readanalytics:read

Read https://dzbuild.dev/llms.txt and https://dzbuild.dev/skills/dzbuild-apps/SKILL.md. I sell on DZBuild and I am not a developer. Build me a private DZBuild app for my own store: it stays a draft in the developer console and installs only on stores I own. Every evening at 21:00 Algiers time (20:00 UTC, a Cron Trigger), send me one Telegram message with today's orders counted by status (pending, confirmed, processing, shipped, delivered, cancelled, returned) and the figures from GET /v1/analytics?range=today. Read the orders with GET /v1/orders?since=<today 00:00 Algiers time> and follow data.next_cursor while data.has_more is true. The Telegram bot token is a Worker secret. Start from the cloudflare-orders preset of https://github.com/DZBuild-com/dzbuild-app-starter and host it on my Cloudflare account. Ask only for the scopes orders:read and analytics:read. Tell me exactly what to paste into the developer console and which secrets go into `wrangler secret put`, one step at a time.

See today's pending orders by wilaya

Your pending orders grouped by wilaya, with the phone numbers that ordered more than once.

Show me today's orders that are still pending in my DZBuild store, grouped by wilaya, with the customer name, phone and total. Then tell me which phone numbers ordered more than once.

What your app can reach

One scope per kind of store data. The merchant sees one line per resource on the consent screen and grants only what you ask for. All scopes

  • Orders

    Read orders and their items. Create orders, change their status, cancel them.

    orders:readorders:write
  • Delivery

    Hand an order to the store's courier.

    delivery:send
  • Products

    Catalogue and categories, with images, variants, offers, quantity rules and stock.

    products:readproducts:write
  • Customers

    Customers and each customer's orders.

    customers:read
  • Landing pages

    Landing pages and their sections, and the check that runs before publishing.

    landing_pages:readlanding_pages:write
  • Shipping

    Rates and settings, linked couriers, coverage, the wilaya and commune lists.

    shipping:readshipping:write
  • Store

    Profile, design, home page sections and themes.

    store:readstore:write
  • Promo codes and pixels

    Discount codes and tracking pixels.

    promos:readpromos:writepixels:readpixels:write
  • Analytics

    Store analytics and KPIs.

    analytics:read
  • WhatsApp

    Approved order templates, the store's wallet balance, the message log, and sending.

    whatsapp:readwhatsapp:send

Rules to build on

One token per store
Install tokens start with dzpk_live_, have no expiry date, and are revoked the moment the merchant uninstalls your app.
120 requests per minute
Per install, checked before the store's shared budget. A 429 answer carries Retry-After.
Idempotency-Key on writes
POST, PATCH and DELETE need one. The response is stored for 24 hours and replayed when you retry.
HMAC-SHA256 webhooks
X-DZ-Signature covers the timestamp and the raw body. Reject anything older than 5 minutes. Up to 5 delivery attempts.
Webhooks need your own domain
DZBuild refuses webhook URLs on workers.dev. Until the app runs on a domain you own, poll GET /v1/orders?since= once a minute.
Any store plan
Every plan can install an app. Set a minimum plan in the console when your app needs one.
Review before listing
A draft app runs only on stores you own. DZBuild reviews it before other merchants can install it.

Free and open source

Tools you can use with or without a store

A shipping API, a till for shops and a browser library, free to use. See every tool

DZShip

Free shipping API for 99 Algerian couriers. No signup, no API key: your courier credentials, used per call and never stored.

Read more

DZBuild POS

Free till for Windows shops: barcode scanner, receipts, kridi, backups. Works offline and syncs with a DZBuild store.

Read more
VisitoJS

Partner project

Open-source device identification for the browser. MIT, about 7.5 KB gzipped, no network requests.

Read more

Register your first app

The developer console lives in your DZBuild dashboard. Any account that owns a store can open it, and a draft app installs on your own store right away.

Bunny mascot jumping

DZBuild partner

Bunny CDN for the files around your app

Images, video, storage and DNS from Bunny, with a 14-day free trial and no credit card required.

DZBuild is a Bunny partner.