Inventory

Link a vendor to an item

POST
/api/v1/vendors/{vendor_id}/supplies

Record that this vendor can supply this item, and on what terms.

Both sides are re-checked against the merchant, so a vendor id from one tenant can never be attached to another tenant's stock.

Authorization

HTTPBearer
AuthorizationBearer <token>

JWT access token

In: header

Path Parameters

vendor_id*string
Formatuuid

Query Parameters

merchant_id?|

Optional merchant to act on. Must be one you are a member of.

Formatuuid

Header Parameters

X-Merchant-ID?string|null

Request Body

application/json

automatic_ordering_enabled?boolean
Defaulttrue
inventory_item_id*string
Formatuuid
is_preferred?boolean
Defaultfalse
minimum_order_quantity?number
Range0 <= value
Default0
unit_price?number
Range0 <= value
Default0
vendor_sku?string
Lengthlength <= 64
Default""

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/vendors/497f6eca-6276-4993-bfeb-53cbbbba6f08/supplies" \  -H "Content-Type: application/json" \  -d '{    "inventory_item_id": "18dd3e9a-1adb-4867-99a3-0bde9f26475c"  }'
{  "data": {},  "meta": {},  "success": true}