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

Body

application/json
name
string
required
Example:

"Audio sellers"

kind
enum<string>
required

percentage charges a share of the sale; fixed charges a flat fee.

Available options:
percentage,
fixed
Example:

"percentage"

value
string<decimal>
required

A percentage (10 = 10%) or a flat amount, per kind.

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

"12.5"

code
string | null

Your own identifier for this rate; unique per store.

Example:

"audio"

enabled
boolean
position
integer

Place in the list. Rates resolve top-down and the first whose rules match wins, so 1 is tried first. New rates are created at the top; send this to move one. A rate with no rules matches every sale, so the marketplace default belongs at the bottom.

Example:

1

tax_inclusive
boolean

Charge on the price including the customer's VAT. Left off, commission is charged on the seller's net revenue, which is the usual basis where the fee is taxed as its own supply.

include_shipping
boolean

Also charge commission on the seller's delivery revenue. Percentage rates only.

commission_tax_rate
string<decimal> | null

VAT on the commission itself, as a fraction rather than a percentage. Null lets the store's tax engine answer for the seller's jurisdiction.

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

"0.21"

metadata
object
amounts
object

What a flat fee charges, keyed by currency, as decimal strings. A sale in a currency with no amount falls to the next matching rate. Replaces the whole set.

Example:
bounds
object

The floor and cap a percentage charges within, keyed by currency: { min_amount, max_amount } decimal strings. A sale in a currency with no bounds is charged unbounded. Replaces the whole set.

Example:
rules
object[]

The full targeting; what you send replaces what the rate holds.

Response

commission rate created

id
string
required
name
string
required
code
string | null
required
enabled
boolean
required
position
number
required
kind
enum<string>
required
Available options:
percentage,
fixed
tax_inclusive
boolean
required
include_shipping
boolean
required
metadata
object | null
required
deleted_at
string | null
required
created_at
string
required
updated_at
string
required
value
string
required
commission_tax_rate
string | null
required
amounts
object
required
bounds
object
required
global
boolean
required
rules
object[]
required