Skip to main content

Business Tools Examples

Runnable examples live in qefro-js-backend-sdk/examples and qefro-rust-backend-sdk/examples.

SDK examples

ExampleDemonstrates
order-statusPublic order lookup + OTP my_orders_list + lookup.required
rest-order-apiPlain REST mock + identity forwarding demo page
bankingAccount balance with auth
healthcareAppointments
ecommerceOrder track
crmLeads list
erpInventory
internal-portalEmployee KPI snapshot
helpdeskKB search handler
whatsappTemplate preview

REST patterns (from examples)

PatternExample endpointAuth
Order by IDGET /rest/orders/{orderId}API_KEY
Service account listGET /rest/my-orders?customer_id=BEARER_TOKEN
Identity whoamiGET /rest/identity/meEND_USER_IDENTITY
Identity ordersGET /rest/identity/my-ordersEND_USER_IDENTITY

Hosted demo (deploy your own): widget-identity-demo.html in rest-order-api example.

Mixed workflow example

E-commerce support workspace:

  1. order_status_check (SDK, public) — ORD-1001 by ID
  2. my_orders_list (SDK, OTP) — authenticated list
  3. shipping_track (REST, API key) — carrier API
  4. identity_my_orders (REST forward) — widget logged-in users

See Mixed integrations.

Quick start commands

git clone https://github.com/qefro-ai/qefro-js-backend-sdk.git
cd qefro-js-backend-sdk/examples/order-status
cp .env.example .env && npm install && npm start
# Webhook: http://localhost:8090/qefro
./scripts/smoke.sh
cd examples/rest-order-api && npm install && npm start
# REST: http://localhost:8091/rest/identity/me