Batch update orders
Updates one or more order attributes across multiple orders at once. Currently supports
updating status. The operation is not transactional — orders that fail validation are
reported in invalid_items while successfully updated ones appear in valid_items.
Requires admin scope.
POST
/shops/{shop_id}/orders/updatersAuthorization
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
Request body
requiredapplication/jsonidsinteger[]requiredArray of order IDs to update
additionsobjectrequiredAttributes to apply to all orders
Show propertiesHide properties
statusstringNew status to set
Allowed:
pendingclosedshippedinvalidResponses
200Batch update result
idsinteger[]additionsobjectremovalsobject_embeddedobjectShow propertiesHide properties
valid_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_linksobjectinvalid_itemsobject[]Request
curl -X POST "https://api.onbolder.com/v1/shops/string/orders/updaters" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
577048,
12001
],
"additions": {
"status": "pending"
}
}'const response = await fetch("https://api.onbolder.com/v1/shops/string/orders/updaters", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"ids": [
577048,
12001
],
"additions": {
"status": "pending"
}
})
});import requests
response = requests.post(
"https://api.onbolder.com/v1/shops/string/orders/updaters",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"ids": [
577048,
12001
],
"additions": {
"status": "pending"
}
},
)Response
{
"ids": [
0
],
"additions": {},
"removals": {},
"_embedded": {
"valid_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": {}
}
],
"invalid_items": [
{}
]
}
}