Create Product
curl --request POST \
--url https://production-api.puppetvendors.com/products \
--header 'x-access-token: <api-key>'import requests
url = "https://production-api.puppetvendors.com/products"
headers = {"x-access-token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-access-token': '<api-key>'}};
fetch('https://production-api.puppetvendors.com/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production-api.puppetvendors.com/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://production-api.puppetvendors.com/products"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production-api.puppetvendors.com/products")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production-api.puppetvendors.com/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyProducts
Create Product
Create a new product as a vendor with Shopify sync
POST
/
products
Create Product
curl --request POST \
--url https://production-api.puppetvendors.com/products \
--header 'x-access-token: <api-key>'import requests
url = "https://production-api.puppetvendors.com/products"
headers = {"x-access-token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-access-token': '<api-key>'}};
fetch('https://production-api.puppetvendors.com/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production-api.puppetvendors.com/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://production-api.puppetvendors.com/products"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production-api.puppetvendors.com/products")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production-api.puppetvendors.com/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyV2 Alpha: this endpoint is part of the V2 API preview. Breaking changes may occur.
Overview
POST /products
POST /products/create is deprecated. It still works and takes the same body, but every response carries Deprecation: true and Link: </products>; rel="successor-version". Move to POST /products.productSet mutation on behalf of the authenticated vendor, with variants, options, metafields and images in one synchronous call. Max 100 variants. Your vendor id comes from the token; don’t send vendorId.
Vendor token required. Use a token minted from a vendor key (
vk_live_…) or a portal login.Request body
titlestring required. Max 255 characters.
descriptionHtml string. HTML description.
productType string. Max 255.
status string, default DRAFT. ACTIVE or DRAFT. Controls storefront visibility; there is no published field.
handle string. Max 255; generated from the title if omitted.
tags string[]. Max 250. collections string[]. Max 250.
options object[]. Max 3; each { name, values[] }.
variants object[] required. 1 to 100 variants. Each needs price (decimal string, e.g. "1.00"). Each may also include optionValues ([{ name, value }]), sku, barcode, inventoryQuantity, weight ({ value, unit }).
metafields object[]. { namespace, key, value, type? }.
images object[]. Max 250; { src, altText? }.
medias object[]. Max 250; downloadable files for digital products.
isDigital boolean. seo object (title ≤255, description ≤320). category, templateSuffix string.
The body is strict: unknown fields return 400 VALIDATION_ERROR with a hint (published → status, media → images/medias, description → descriptionHtml).
Responses
| Status | Code | Meaning | Fix |
|---|---|---|---|
| 201 | Created. | ||
| 400 | VALIDATION_ERROR | A field is missing, invalid or unsupported. | Read error.details and fix the field. |
| 400 | PRICE_REQUIRED | A variant has no price. | Add price to every variant. |
| 401 | UNAUTHORIZED | No or invalid token. | Authenticate again. |
status: "pending" and no Shopify ids. They appear after a merchant approves it.
201 Created
{
"success": true,
"data": {
"_id": "<id_1>",
"shopId": "<id_2>",
"vendorStoreProductId": null,
"title": "Blue Widget",
"vendor": "Vendor-78",
"vendorId": "<id_3>",
"assignedVendors": [],
"tags": [
"vendor_Vendor-78"
],
"collections": [],
"variants": [
{
"price": "1.00",
"barcode": "<redacted>"
}
],
"options": [
{
"name": "Title",
"values": [
"Default Title"
]
}
],
"images": [],
"medias": [],
"shopifyMedias": [],
"status": "pending",
"brandName": "Vendor-78",
"metafields": [],
"giftCard": false,
"request": "productCreate",
"updatedByPV": true,
"changes": [],
"createdAt": "2026-10-21T10:36:55.043Z",
"updatedAt": "2026-10-21T10:36:55.043Z",
"totalInventory": 0,
"__v": 0
}
}
400 Missing
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"errorId": "err_1792578578483_abc1234",
"details": [
{ "code": "invalid_type", "expected": "string", "received": "undefined", "path": ["title"], "message": "Required" }
]
}
}
400 Unsupported field
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"errorId": "err_1792578578483_abc1234",
"details": [
{ "code": "unrecognized_keys", "keys": ["published"], "path": [],
"message": "Unsupported field(s): published (use status (ACTIVE or DRAFT))" }
]
}
}
Deprecated path response headers
HTTP/1.1 400 Bad Request
Deprecation: true
Link: </products>; rel="successor-version"
Example
curl -X POST https://production-api.puppetvendors.com/products \
-H "Content-Type: application/json" \
-H "x-access-token: $PV_VENDOR_TOKEN" \
-d '{
"title": "Widget Pro",
"descriptionHtml": "<p>Premium widget</p>",
"status": "DRAFT",
"options": [{ "name": "Size", "values": ["Small", "Large"] }],
"variants": [
{ "optionValues": [{ "name": "Size", "value": "Small" }], "price": "19.99", "sku": "WP-SM" },
{ "optionValues": [{ "name": "Size", "value": "Large" }], "price": "29.99", "sku": "WP-LG" }
],
"images": [{ "src": "https://cdn.example.com/widget.jpg", "altText": "Widget Pro" }],
"tags": ["widget"]
}'
Digital product
curl -X POST https://production-api.puppetvendors.com/products \
-H "Content-Type: application/json" \
-H "x-access-token: $PV_VENDOR_TOKEN" \
-d '{ "title": "Photography Preset Pack", "isDigital": true, "status": "DRAFT",
"variants": [{ "price": "19.99", "sku": "PRESET-STD" }] }'
Was this page helpful?