Skip to main content
POST
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

Body

application/json
label
string
required
Example:

"Gift wrap"

amount
number
required
Example:

4

kind
enum<string>

Defaults to 'surcharge'

Available options:
surcharge,
handling,
gift_wrap,
cod,
payment,
duty
Example:

"gift_wrap"

line_item_id
string | null
fulfillment_id
string | null

Response

fee created