Skip to main content
PATCH
Spree Admin SDK

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Bearer token for admin authentication

Path Parameters

id
string
required

Order ID

Body

application/json
cancel_reason_id
string

Why the order was canceled — the id of one of the store's cancellation reasons.

cancel_note
string

Staff-facing note about the cancellation.

refund_payments
boolean
default:false

Whether this order's share of a payment shared across a split checkout is handed back.

refund_amount
string

How much of that share to return. Defaults to all of it; refused on an order whose payment is not shared.

notify_customer
boolean
default:false

Send the order cancellation email after canceling.

Response

200 - application/json

order canceled