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
type
string
required

The kind, from the seller requirement types endpoint.

Example:

"document"

name
string

What the seller sees. Required for kinds that can be added more than once, since the wording is the only thing telling them apart. Left blank on the others, the kind names itself.

Example:

"Business registration"

description
string

Instructions shown to the seller.

Example:

"A copy of your certificate of incorporation."

position
integer

Place in the checklist.

Example:

1

active
boolean
Example:

true

required
boolean

Whether this blocks approval. Off means recommended.

Example:

true

preferences
object

Configuration for this kind, per its type's schema.

Example:
metadata
object
custom_field_definition_ids
string[]

Custom field definitions this requirement asks the seller to fill in (required_custom_fields kind).

Response

seller requirement created

id
string
required
position
number
required
active
boolean
required
required
boolean
required
metadata
object | null
required
created_at
string
required
updated_at
string
required
kind
string
required

Requirement kind. Built-in: accept_terms, complete_profile, billing_address, returns_address, delivery_method, package_type, minimum_products, payout_account, required_custom_fields, policy, attestation, operator_review, document. Extensions may register more.

name
string
required
description
string | null
required
preferences
object
required

Settings of a seller requirement, shaped by its type (see x-spree-preferences-by-type). A type an extension registers is a plain object, described by the schema its /types entry carries.

custom_field_definition_ids
string[]
required
allow_multiple
boolean
required
accepts_submissions
boolean
required
reviewed_by_operator
boolean
required