Admin APIOrders
Flag an order as test data
Test orders are hidden from the order list (unless include_test=true)
and from reports. Payments, refunds and stock are not touched.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidorder_id*string
Order id
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
is_test*boolean
true to archive the order as test data, false to restore it.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/test" \ -H "Content-Type: application/json" \ -d '{ "is_test": true }'Empty
{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}