Create a product
Method : POST
https://os.vucustom.com/api/:api_version/productsRequest Body Schema (Product)
name
string
Yes
Product display name
product_category
string
Yes
Category identifier
b2b
boolean
Yes
B2B availability flag
customize_only
boolean
Yes
Customization-only flag
product_variants_attributes
array
Yes
Array of product variant objects. refer below for schema
Product Variations Schema
price
string
Yes
Variant price
sku
string
Yes
Stock keeping unit
name
string
Yes
Variant name
upc
string
No
Universal product code
200 Successful response example
{
"product": {
"id": 25,
"product_categories": [
"Outdoor Products1"
],
"name": "2s3test",
"b2b": true,
"active": true,
"customize_only": true,
"code": null,
"product_variants": [
{
"id": 17,
"sku": "SKU1131215",
"name": "test",
"upc": "UPC123",
"code": null
}
]
}
}401 Unauthorized
The client doesn’t have correct authentication credentials.
403 Forbidden
The server is refusing to respond. This is typically caused by incorrect access.
404 Not Found
The requested resource was not found but could be available again in the future.
422 Unprocessable Entity
5xx Errors
An internal error occurred in VU Admin.
Last updated