Say that a supplier sells a variant, at a unit cost
post/shop/supplied
Before you call
- Credential
Authorization: Bearer $KEY- Scope
shop:write- Mcp
rivier_shop_supplier_link- Sdk
shop.supplied.create- Cli
shop supplied create
Request bodyapplication/json, required
- supplierIdstringrequiredAt most 80 characters.
- variantIdstring (uuid)required
- skustringAt most 100 characters.
- unitCostobjectrequired
- amountMinorintegerrequiredAt least 0.
- currencystringrequiredAt most 3 characters.
- amountMinorintegerrequired
- leadTimeDaysintegerAt least 0. At most 365.
- packSizeintegerDefault: 1. At least 1.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring