Skip to main content
POST
Create restock plan (start a reorder / replenishment order)

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Body

application/json
brandId
string
required

Identifier of the brand for the restock plan

Minimum string length: 1
collectionId
string
required

Identifier of the collection for the restock plan

Minimum string length: 1
description
string

Optional free-text description of the plan

name
string

Optional display name for the plan. When omitted the server auto-generates one from the brand and collection names.

supplierId
string

Optional identifier of the supplier

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true