Skip to content
Mehrdad Pajuhaan edited this page Oct 23, 2026 · 1 revision

Demos

The repository ships three small HTML pages that call the real Selldone API from your browser. Use them to test a token, inspect real responses and see the request each ERP step needs before you write integration code.

Live pages

The repository is published with GitHub Pages at selldone.github.io/erp.

Demo What it does Request
Fetch Orders Lists the 10 latest paid physical orders with receiver info, items (image, title, SKU, MPN, count) and a delivery progress bar. A Raw Data tab shows the JSON. GET /shops/{shop_id}/process-center/baskets-PHYSICAL?offset=0&limit=10&sortDesc=true&statuses[]=Payed&with[]=items&with[]=buyer&with[]=products
Update Order Sets the delivery state of an order. The state selector offers CheckQueue, OrderConfirm, PreparingOrder, SentOrder and ToCustomer. POST /shops/{shop_id}/process-center/baskets/{order_id}/state with { "state": "<state>" }
Set Order Tracking Sets the tracking code and/or tracking URL of an order. Empty fields are not sent. PUT /shops/{shop_id}/process-center/baskets/{order_id}/tracking

All requests go to https://api.selldone.com with Authorization: Bearer <token> and Accept: application/json. Each page shows the full API URL it called and the response (or the error body).

How to use them

  1. Create a token with at least backoffice:order:read (and backoffice:order:write for the update and tracking pages).
  2. Open Fetch Orders, enter the Shop ID and Bearer Token and click Fetch Orders.
  3. On any order card, click Update State or Set Tracking. The page opens with the shop ID and order ID already filled in; paste the token again and submit.

You can also prefill the update and tracking pages yourself:

https://selldone.github.io/erp/order-update-state.html?shopId=12345&orderId=67890
https://selldone.github.io/erp/order-set-tracking.html?shopId=12345&orderId=67890

The pages read only shopId and orderId from the URL. The token is typed into the page and sent directly from your browser to api.selldone.com; the pages have no backend.

Run them locally

The demos are plain HTML with Bootstrap 5 loaded from a CDN and a small helper.js for product image URLs. No build step is required:

git clone https://github.com/selldone/erp.git
cd erp
# open orders-list.html in your browser, or serve the folder with any static server, for example:
python3 -m http.server 8000
File Purpose
orders-list.html Fetch Orders demo.
order-update-state.html Update Order demo.
order-set-tracking.html Set Order Tracking demo.
helper.js GET_SHOP_IMAGE_PATH() to build product image URLs on cdn.selldone.com.

Videos

Next steps

Clone this wiki locally