Add an item to a plan
Adds one item to a plan. The request body must include planType matching the URL {type}. Business-rule hooks run for REBALANCE, MARKDOWN, SUPPLIER_RETURN, SUPPLIER_EXCHANGE (blocking failures return HTTP 422; non-blocking warnings appear in _businessRuleWarnings). RESTOCK items may be queued for approval when the plan total breaches a policy. PRE_SEASON is not yet supported and returns HTTP 422.
Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Path Parameters
Plan type. One of: RESTOCK, REBALANCE, MARKDOWN, SUPPLIER_RETURN, SUPPLIER_EXCHANGE, PRE_SEASON
RESTOCK, REBALANCE, MARKDOWN, SUPPLIER_RETURN, SUPPLIER_EXCHANGE, PRE_SEASON Unique identifier of the plan (UUID)
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Query Parameters
Page number (1-based)
x <= 9007199254740991Items per page
x <= 9007199254740991Free-text search across variant/product/size labels
Filter by exchange side (RETURN or RECEIVE); only applicable for SUPPLIER_EXCHANGE
RETURN, RECEIVE Body
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Must be RESTOCK to match the plan type in the URL
RESTOCK Quantity to restock (must be a positive integer)
x <= 9007199254740991Shop (store) ID where the restock will be fulfilled
1Databricks size ID for the item to add
1Databricks variant ID for the item to add
1Negotiated discount rate on the supplier price in percent (0–100); omit to use gross unit cost
0 <= x <= 100Human-readable reason for this change; written to the audit log
500
