curl --request POST \
--url 'https://api.stateset.com/api/v1/products' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"brand": "AudioTech",
"cost_price": "75.00",
"created_at": "2024-12-09T10:30:00Z",
"currency": "USD",
"description": "Premium over-ear wireless headphones with active noise cancellation.",
"dimensions_cm": "20x18x8",
"id": "550e8400-e29b-41d4-a716-446655440000",
"image_url": "https://cdn.example.com/products/wbh-blk-001.jpg",
"is_active": true,
"is_digital": false,
"manufacturer": "AudioTech Inc.",
"meta_description": "Shop premium wireless Bluetooth headphones.",
"meta_title": "Wireless Bluetooth Headphones | AudioTech",
"msrp": "199.99",
"name": "Wireless Bluetooth Headphones",
"price": "149.99",
"reorder_point": 25,
"sku": "WBH-BLK-001",
"tags": "electronics,audio,headphones,wireless",
"tax_rate": "0.08",
"updated_at": "2024-12-09T14:45:00Z",
"weight_kg": "0.35"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Create a new product
Create a new product
POST
/
api
/
v1
/
products
curl --request POST \
--url 'https://api.stateset.com/api/v1/products' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"brand": "AudioTech",
"cost_price": "75.00",
"created_at": "2024-12-09T10:30:00Z",
"currency": "USD",
"description": "Premium over-ear wireless headphones with active noise cancellation.",
"dimensions_cm": "20x18x8",
"id": "550e8400-e29b-41d4-a716-446655440000",
"image_url": "https://cdn.example.com/products/wbh-blk-001.jpg",
"is_active": true,
"is_digital": false,
"manufacturer": "AudioTech Inc.",
"meta_description": "Shop premium wireless Bluetooth headphones.",
"meta_title": "Wireless Bluetooth Headphones | AudioTech",
"msrp": "199.99",
"name": "Wireless Bluetooth Headphones",
"price": "149.99",
"reorder_point": 25,
"sku": "WBH-BLK-001",
"tags": "electronics,audio,headphones,wireless",
"tax_rate": "0.08",
"updated_at": "2024-12-09T14:45:00Z",
"weight_kg": "0.35"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Request body
JSON body of typeCreateProductRequest.
Responses
ApiResponse_ProductResponse
Product created
ErrorResponse
Invalid payload
ErrorResponse
Unauthorized
ErrorResponse
Forbidden
curl --request POST \
--url 'https://api.stateset.com/api/v1/products' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"brand": "AudioTech",
"cost_price": "75.00",
"created_at": "2024-12-09T10:30:00Z",
"currency": "USD",
"description": "Premium over-ear wireless headphones with active noise cancellation.",
"dimensions_cm": "20x18x8",
"id": "550e8400-e29b-41d4-a716-446655440000",
"image_url": "https://cdn.example.com/products/wbh-blk-001.jpg",
"is_active": true,
"is_digital": false,
"manufacturer": "AudioTech Inc.",
"meta_description": "Shop premium wireless Bluetooth headphones.",
"meta_title": "Wireless Bluetooth Headphones | AudioTech",
"msrp": "199.99",
"name": "Wireless Bluetooth Headphones",
"price": "149.99",
"reorder_point": 25,
"sku": "WBH-BLK-001",
"tags": "electronics,audio,headphones,wireless",
"tax_rate": "0.08",
"updated_at": "2024-12-09T14:45:00Z",
"weight_kg": "0.35"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
โI