Skip to main content
POST
Spree Seller SDK

Authorizations

Authorization
string
header
required

JWT token for an authenticated seller session (seller_api audience)

Headers

X-Spree-Seller-Id
string
required

Body

application/json
name
string
required

When the marketplace requires a named policy, use that exact name: the onboarding check matches on it.

Example:

"Shipping Policy"

slug
string
Example:

"shipping-policy"

body
string | null

HTML, sanitized before it is stored. body_html on the response is the rendering of what was stored.

Example:

"<p>Orders leave the workshop within two working days.</p>"

Response

201 - application/json

policy created

id
string
required
name
string
required
slug
string
required
body
string | null
required
body_html
string | null
required
updated_at
string
required
created_at
string
required