Pagination
Parameters
Section titled “Parameters”GET /orders/ accepts:
| Param | Format | Default | Description |
|---|---|---|---|
start | YYYY/MM/DD | today − 7 days | Start date (inclusive, UTC). |
end | YYYY/MM/DD | today | End date (inclusive, UTC). |
The page and items_per_page parameters exist in the code but currently have no effect on the public response (they are dashboard internals). Do not rely on them; control volume by range.
Example
Section titled “Example”curl -H "X-Device-Id: $B4BIT_API_KEY" \ "https://pos.b4bit.com/api/v1/orders/?start=2026/01/01&end=2026/01/31"Time zone
Section titled “Time zone”Dates are interpreted in UTC (confirmed in the backend, settings.py TIME_ZONE = 'UTC'). If your merchant operates in another time zone, convert before sending to avoid payments at the day boundary falling outside the range.
Ordering
Section titled “Ordering”Payments come sorted by created_at descending (most recent first).
Recommendations
Section titled “Recommendations”- Batch by short ranges (daily or weekly) if you have high volume. Avoids huge responses.
- Prefer webhooks for real-time updates; use
GET /orders/only for historical reconciliation. - When reconciling, save the last processed
edited_atand filter by range from that point on.
Recommended reconciliation
Section titled “Recommended reconciliation”- Persist every incoming webhook with
identifier+status+edited_at. - Once a day, call
GET /orders/?start=yesterday&end=todayand cross-check byidentifieragainst your database. - For any payment that does not match, fetch the detail with
GET /orders/info/{identifier}.