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

Path Parameters

order_id
string
required

Order prefixed ID

id
string
required

Discount prefixed ID

Body

application/json
label
string
Example:

"Customer appeasement"

amount
string<decimal>

The new amount of the row, in the order currency.

Pattern: ^-?\d+(\.\d+)?$

Response

200 - application/json

discount updated