Create Supplier Product
POST/api/supplier-products
Creates a new supplier product relationship (a product sold by a specific supplier). Authentication: Requires Bearer token.
suppliers:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Fields:
- supplier_id (required): Supplier ID (must exist in suppliers table)
- product_id (required): Product ID (must be unique per supplier; must exist in products table)
- supplier_sku (nullable, max:255): Supplier's own SKU — must be unique per supplier
- leadtime (nullable, integer): Lead time in days
- minimum_order_quantity (nullable, numeric): Minimum order quantity (max 999,999)
- target_stock_days (nullable, integer): Target stock days (1-365)
- is_default (boolean): Whether this is the default supplier for this product
- default_tax_rate_id (nullable): Tax rate ID for this supplier product
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.