VendorProducts
Create Product
Create Product — vendor REST API endpoint.
POST
/vendor/productsVendor bearer token requiredCreate Product
Create a new product in your vendor catalog.
What this means in plain English
Creates a product with at least name and SKU. Requires OWNER, ADMIN, or EDITOR role. Variants and inventory can be included in the request.
When to use this
- Adding new SKUs to your catalog via API integration.
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Product name. |
| sku | string | Yes | Unique SKU within your vendor. |
| description | string | No | Product description. |
| status | string | No | DRAFT or ACTIVE. |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| X-Vendor-Id | string (UUID) | Yes | UUID of the vendor context. Required for vendor-scoped endpoints when your account has multiple vendor memberships. Use the vendor.id from the login response. |
Request example
curl -X POST 'http://localhost:8080/api/v1/vendor/products' \
-H 'X-Vendor-Id: 550e8400-e29b-41d4-a716-446655440010' \
-H 'Content-Type: application/json' \
-d '{
"name": "Widget Pro",
"sku": "WIDGET-001",
"description": "High-quality widget",
"status": "DRAFT"
}'Response examples
201Created
{
"id": "550e8400-e29b-41d4-a716-446655440020",
"name": "Widget Pro",
"sku": "WIDGET-001",
"status": "ACTIVE",
"vendorId": "550e8400-e29b-41d4-a716-446655440010"
}Status codes
200
OK
Request succeeded.
401
Unauthorized
Missing or invalid bearer token.
403
Forbidden
Insufficient permissions for this action.
400
Bad Request
Validation failed or invalid parameters.
404
Not Found
Resource not found.
500
Internal Server Error
Unexpected server error.
403
Forbidden
Invalid X-Vendor-Id, no vendor membership, or insufficient vendor role (requires OWNER, ADMIN, or EDITOR for write operations).
Try it
Uses your saved session from login. Edit values and send a live request, or copy the cURL command.