Spree Admin SDK
Create fee
Creates a fee (surcharge, handling, gift wrap, COD, payment fee). Order-level when no target is given. Works on completed orders.
Required scope: write_orders (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Order prefixed ID
Body
application/json
Example:
"Gift wrap"
Pattern:
^-?\d+(\.\d+)?$Example:
"4.00"
Defaults to surcharge. The values listed are the built-in ones; extensions may add more.
Available options:
surcharge, handling, gift_wrap, cod, payment, duty, exchange Example:
"gift_wrap"
The line item or fulfillment the fee belongs to. Omitted, the fee is order-level.
The line item or fulfillment the fee belongs to. Omitted, the fee is order-level.
Response
fee created

