Track an order
To look up a shipment, read GET /v1/orders/{order_id} with an orders:read key and the B7R order ID. Read the tracking details from shipments. The array can be empty and a shipmentâs tracking_url or tracking_number can be null.
Find your orders
A key with orders:read sees every order of your account, whatever its channel: placed through the API, created by hand, bought on Salla, Zid or Shopify, or bought on your B7R store. Each one says where it came from (channel) and who paid (paid_by).
- List them:
GET /v1/orders, newest first. Page withcursoruntilnext_cursorisnull. - Keep one channel with
?channel=:salla,zid,shopify,b7r_store,manualorapi(the orders you placed through the API). - Open one with the
idfrom the list:GET /v1/orders/{order_id}. An order from a store also carriesstore_order_idandstore_order_number, the numbers your store shows. - To ship an order yourself you need its shopper: read it with
?include=customerand a key that holdscustomers:read(Shopper details).
curl "https://api.b7r.app/v1/orders?channel=salla" \
-H "Authorization: Bearer $B7R_API_KEY"const res = await fetch("https://api.b7r.app/v1/orders?channel=salla", {
headers: {
Authorization: `Bearer ${process.env.B7R_API_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.b7r.app/v1/orders?channel=salla",
headers={
"Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
},
timeout=30,
)
data = res.json(){
"data": [
{
"id": "B26112300009",
"external_id": null,
"channel": "salla",
"store_order_id": "1457983214",
"store_order_number": "218842",
"paid_by": "wallet",
"status": "created",
"payment_status": "paid",
"funding": null,
"seller": null,
"carrier_id": "9b1d3f5a-7c9e-4b1d-8f5a-6c8e0a2b4d6f",
"delivery_method": "home",
"money": {
"lines_total": {
"net": "120.00",
"vat": "0.00",
"gross": "120.00",
"currency": "SAR"
},
"shipping": {
"net": "25.00",
"vat": "0.00",
"gross": "25.00",
"currency": "SAR"
},
"total": {
"net": "145.00",
"vat": "0.00",
"gross": "145.00",
"currency": "SAR"
}
},
"sale": null,
"shipments": [],
"cancellation": null,
"allowed_actions": [
"cancel"
],
"invoice": null,
"created_at": "2026-11-23T09:41:15.620Z"
}
],
"next_cursor": null
}The steps
An order goes created, in_production, shipped, delivered, one step at a time, or ends cancelled. The invoice is made at in_production. B7R can move an order one step back with a reason: the update says direction: backward, so never show a shopper an order going backwards as news.
Hear each change
The best way is updates. They cover every order of your account, whatever its channel: order.created for an order you did not place through the API, then order.status_changed, order.tracking_updated, order.payment_changed and order.cancelled. Each carries the order's state at the change. If you cannot receive updates, read the catch-up list on a timer. Updates are recorded while your account has an active key; for a time without one, read GET /v1/orders: each row carries status and payment_status, so one read of the list shows what moved.
{
"id": "evt_9f2c4a7e1b3d5f6081a2c3e4d5f60718",
"type": "order.status_changed",
"created_at": "2026-11-25T07:44:02.330Z",
"sequence": 2,
"subject": {
"type": "order",
"id": "B26112200042"
},
"data": {
"id": "B26112200042",
"external_id": "ord-77120",
"channel": "api",
"store_order_id": null,
"store_order_number": null,
"paid_by": "wallet",
"status": "in_production",
"payment_status": "paid",
"delivery_method": "home",
"seller": {
"id": "seller-1042",
"name": "Najd Prints"
},
"carrier_id": "9b1d3f5a-7c9e-4b1d-8f5a-6c8e0a2b4d6f",
"tracking_number": null,
"tracking_url": null,
"cancellation": null,
"created_at": "2026-11-22T12:30:11.902Z",
"previous_status": "created",
"direction": "forward",
"reason": null
},
"sample": false
}Holds
When a design an order prints is taken down or sent back for changes, B7R holds the order. The order read has no hold field: for an order of any channel, holds reach you as order.held (its zones name the zones that block printing) and order.released (every printed zone with its current state). Keep the latest of the two per order apart from its status, because a later order.status_changed does not repeat it.
Tracking
Once shipped, shipments lists the carrier, tracking_number, tracking_url, and when it shipped and was delivered. For a pickup order there is no tracking: shipped_at is when it was ready for collection at B7R and delivered_at when it was collected. The shipping label carries your account's brand as the sender; the packing slip carries the seller name when the order has seller. B7R's name is on neither.
curl https://api.b7r.app/v1/orders/B26112200042 \
-H "Authorization: Bearer $B7R_API_KEY"const res = await fetch("https://api.b7r.app/v1/orders/B26112200042", {
headers: {
Authorization: `Bearer ${process.env.B7R_API_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.b7r.app/v1/orders/B26112200042",
headers={
"Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
},
timeout=30,
)
data = res.json(){
"id": "B26112200042",
"external_id": "ord-77120",
"channel": "api",
"store_order_id": null,
"store_order_number": null,
"paid_by": "wallet",
"status": "shipped",
"payment_status": "paid",
"funding": null,
"seller": {
"id": "seller-1042",
"name": "Najd Prints"
},
"carrier_id": "9b1d3f5a-7c9e-4b1d-8f5a-6c8e0a2b4d6f",
"delivery_method": "home",
"money": {
"lines_total": {
"net": "120.00",
"vat": "0.00",
"gross": "120.00",
"currency": "SAR"
},
"shipping": {
"net": "25.00",
"vat": "0.00",
"gross": "25.00",
"currency": "SAR"
},
"total": {
"net": "145.00",
"vat": "0.00",
"gross": "145.00",
"currency": "SAR"
}
},
"sale": null,
"shipments": [
{
"carrier_id": "9b1d3f5a-7c9e-4b1d-8f5a-6c8e0a2b4d6f",
"tracking_number": "TRK7731904415",
"tracking_url": "https://track.example.com/TRK7731904415",
"shipped_at": "2026-11-24T08:05:40.120Z",
"delivered_at": null
}
],
"cancellation": null,
"allowed_actions": [],
"invoice": {
"number": "INV-2026-004210",
"issued_at": "2026-11-23T07:44:02.330Z"
},
"created_at": "2026-11-22T12:30:11.902Z",
"line_items": [
{
"id": "5b8c0d3e-4f6a-4b7c-9d8e-0f1a2b3c4d5e",
"sku": "B7R-TS-0042-BLK-M",
"quantity": 2,
"unit_cost": {
"net": "60.00",
"vat": "0.00",
"gross": "60.00",
"currency": "SAR"
},
"selling_price": {
"amount": "99.00",
"currency": "SAR"
}
}
],
"customer": {
"name": "S***",
"phone": "*********567"
},
"shipping_address": null
}Cancel
You can cancel while the order is created, whatever its channel, with the same refund as in the app. allowed_actions on the order says how:
cancel: an order your wallet paid or a store holds (API, manual, Salla, Zid, Shopify).POST /v1/orders/{order_id}/cancelwith no body. A paid wallet order is refunded to the wallet (payment_statusbecomesrefunded), a store hold is released, and a store order is cancelled in the store too.cancel_with_reason: a B7R store order. Send{ "reason": "..." }, 3 to 500 characters. B7R refunds the shopper in full through the payment gateway, and your wallet never moves. Withoutreasonthe answer is400 invalid_requestwith the coderequiredat/body/reason.- No action: nothing to cancel through the API, because printing started or the order is already cancelled. A created B7R store order also shows no action while cancelling store orders is switched off. Cancelling an order you already cancelled answers
200with it. - A B7R store cancel can be refused with
409 order_not_cancellableanderrors[0].codeself_service_off,too_late,payment_disputedornot_allowed: see Errors.
- B7R can cancel an order at any status, with a reason (
cancellation.code, listed in Orders, and the message your account sees). A paid order is refunded. You also getorder.cancelled, whatever the channel. - Once printing starts, open a ticket from the Help Center in the B7R app.
curl -X POST https://api.b7r.app/v1/orders/B26112300017/cancel \
-H "Authorization: Bearer $B7R_API_KEY" \
-H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
-H "Content-Type: application/json" \
-d '{
"reason": "The shopper asked to cancel by message."
}'const res = await fetch("https://api.b7r.app/v1/orders/B26112300017/cancel", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.B7R_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"reason": "The shopper asked to cancel by message."
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.b7r.app/v1/orders/B26112300017/cancel",
headers={
"Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"reason": "The shopper asked to cancel by message."
},
timeout=30,
)
data = res.json(){
"id": "B26112300017",
"external_id": null,
"channel": "b7r_store",
"store_order_id": null,
"store_order_number": null,
"paid_by": "shopper",
"status": "cancelled",
"payment_status": "refund_pending",
"funding": null,
"seller": null,
"carrier_id": "9b1d3f5a-7c9e-4b1d-8f5a-6c8e0a2b4d6f",
"delivery_method": "home",
"money": {
"lines_total": {
"net": "120.00",
"vat": "0.00",
"gross": "120.00",
"currency": "SAR"
},
"shipping": {
"net": "25.00",
"vat": "0.00",
"gross": "25.00",
"currency": "SAR"
},
"total": {
"net": "145.00",
"vat": "0.00",
"gross": "145.00",
"currency": "SAR"
}
},
"sale": {
"paid": {
"lines": {
"net": "198.00",
"vat": "0.00",
"gross": "198.00",
"currency": "SAR"
},
"shipping": {
"net": "25.00",
"vat": "0.00",
"gross": "25.00",
"currency": "SAR"
},
"total": {
"net": "223.00",
"vat": "0.00",
"gross": "223.00",
"currency": "SAR"
}
},
"fee": {
"net": "6.50",
"vat": "0.00",
"gross": "6.50",
"currency": "SAR"
},
"profit": {
"net": "71.50",
"vat": "0.00",
"gross": "71.50",
"currency": "SAR"
}
},
"shipments": [],
"cancellation": {
"code": "creator_cancel",
"message": "The shopper asked to cancel by message."
},
"allowed_actions": [],
"invoice": null,
"created_at": "2026-11-23T14:02:37.118Z",
"line_items": [
{
"id": "6c9d1e4f-5a7b-4c8d-8e9f-1a2b3c4d5e6f",
"sku": "B7R-TS-0042-BLK-M",
"quantity": 2,
"unit_cost": {
"net": "60.00",
"vat": "0.00",
"gross": "60.00",
"currency": "SAR"
},
"selling_price": {
"amount": "99.00",
"currency": "SAR"
}
}
],
"customer": {
"name": "N***",
"phone": "*********321"
},
"shipping_address": null
}