List orders
Returns a paginated list of orders for a shop. Requires admin scope.
Supports filtering by status, date ranges, amounts, and geo-location.
GET
/shops/{shop_id}/ordersAuthorization
AuthorizationBearer token (JWT) · headerrequiredOAuth 2.0 Bearer token. Obtain via `POST https://auth.onbolder.com/oauth/token`.
Scopes:
adminPath parameters
shop_idstringrequiredShop ID or subdomain
Query parameters
pageintegerPage number
default: 1
per_pageintegerItems per page
default: 50
qstringFull-text search
statusstringComma-separated order statuses. Use `successful` as a shorthand for `closed,shipped`.
Values: `all`, `checkout`, `pending`, `closed`, `shipped`, `invalid`, `successful`
codestringOrder code, e.g. `R1C3964`
product_idintegerFilter by product ID
payment_methodstringPayment method slug, e.g. `webpay`
created_on_gtestring<date>Created on or after
created_on_ltestring<date>Created on or before
updated_on_gtestring<date>updated_on_ltestring<date>pending_on_gtestring<date>pending_on_ltestring<date>closed_on_gtestring<date>closed_on_ltestring<date>shipped_on_gtestring<date>shipped_on_ltestring<date>net_total_gteintegerNet total in cents, minimum
net_total_lteintegerNet total in cents, maximum
total_gteintegertotal_lteintegershipping_total_gteintegershipping_total_lteintegerdiscount_total_gteintegerdiscount_total_lteintegerlat_longstringLatitude,longitude pair for geo-filtering, e.g. `0.54322222,1.4444422`
distancestringRadius from `lat_long`, e.g. `10km`
default: "5km"
sortstringdefault: "created_on.desc"
Allowed:
created_on.asccreated_on.descupdated_on.ascupdated_on.descpending_on.ascpending_on.descclosed_on.ascclosed_on.descshipped_on.ascshipped_on.descResponses
200Paginated orders list
total_itemsintegerpageintegerper_pageinteger_linksobjectShow propertiesHide properties
selfHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleannextHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleanlastHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedboolean_embeddedobjectShow propertiesHide properties
itemsOrderSummary[]Show propertiesHide properties
Array of
OrderSummaryidintegershop_idintegercodestringstatusstringAllowed:
checkoutpendingclosedshippedinvalidnet_totalintegerOrder subtotal in cents (before shipping/discounts)
totalintegerFinal total in cents
shipping_totalintegershipping_descriptionstringdiscount_totalintegertracking_codestring | nullcourier_namestring | nulltotal_weight_in_gramsintegercreated_onstring<date-time>updated_onstring<date-time>pending_onstring<date-time> | nullclosed_onstring<date-time> | nullshipped_onstring<date-time> | nullfulfillmentobjectShow propertiesHide properties
fulfillment_methodstringAllowed:
shippingpickuppayment_infoobjectShow propertiesHide properties
typestringnamestringauth_codestringtransaction_idstring_linksobjectRequest
curl -X GET "https://api.onbolder.com/v1/shops/string/orders" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.onbolder.com/v1/shops/string/orders", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.onbolder.com/v1/shops/string/orders",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"total_items": 0,
"page": 0,
"per_page": 0,
"_links": {
"self": {
"href": "string",
"method": "string",
"title": "string",
"type": "string",
"templated": true
},
"next": {
"href": "string",
"method": "string",
"title": "string",
"type": "string",
"templated": true
},
"last": {
"href": "string",
"method": "string",
"title": "string",
"type": "string",
"templated": true
}
},
"_embedded": {
"items": [
{
"id": 0,
"shop_id": 0,
"code": "string",
"status": "checkout",
"net_total": 0,
"total": 0,
"shipping_total": 0,
"shipping_description": "string",
"discount_total": 0,
"tracking_code": "string",
"courier_name": "string",
"total_weight_in_grams": 0,
"created_on": "2019-08-24T14:15:22Z",
"updated_on": "2019-08-24T14:15:22Z",
"pending_on": "2019-08-24T14:15:22Z",
"closed_on": "2019-08-24T14:15:22Z",
"shipped_on": "2019-08-24T14:15:22Z",
"fulfillment": {
"fulfillment_method": "shipping"
},
"payment_info": {
"type": "string",
"name": "string",
"auth_code": "string",
"transaction_id": "string"
},
"_links": {}
}
]
}
}