VU CUSTOM
Developer Docs
Developer Docs
  • VU OS Admin API Overview
  • Account Management
    • Overview
    • Create a sold_to_account
    • Create a ship_to_account
    • Batch update sold_to_account
    • Batch update ship_to_account
    • Get a list of sold_to_accounts
    • Get a list of ship_to_accounts
    • Delete a sold_to_account
    • Delete a ship_to_account
  • Orders
    • Overview
    • Create an order
    • Get an order
    • Get a list of orders
    • Update an order
    • Delete an order
    • Add tags to an order
    • Add tags to many orders
    • Delete tags from an order
    • Delete tags from many orders
  • Products
    • Overview
    • Create a product
    • Get a list of products
    • Get a specific product
    • Delete a product
  • Recipes
    • Overview
    • Retrieving Recipes
  • Fulfillments
    • Overview
    • Create a fulfillment
    • Retrieve a fulfillment
    • Retrieve a list of fulfillments
  • Order Lines
    • Overview
    • Add tags to an order line
    • Retrieve a list of orderlines
    • Retrieve a specific order line
    • Delete tags from an order line
    • Update a specific order line
  • Integration
    • Integrate the Customizer with Your Frontend
    • Understanding Recipe IDs in VU Custom
    • Styling the Customizer
    • Test the Customizer
    • Webhooks
Powered by GitBook
On this page
  1. Products

Create a product

Method : POST

https://admin.vucustom.com/api/:api_version/products
Example Request
curl --location 'https://admin.vucustom.com/api/v1/products' \
--data '{
  "product": {
    "name": "2s3test",
    "product_category": "Outdoor Products1",
    "b2b": true,
    "customize_only": true
    "product_variants_attributes": [
      {
	"price": 15,
        "sku": "SKU1131215",
        "upc": "UPC123",
	"name": "test"
      }
    ],
  }
}'

Request Body Schema (Product)

Field Name
Type
Required
Description

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

Field Name
Type
Required
Description

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.

{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}

422 Unprocessable Entity

5xx Errors

An internal error occurred in VU Admin.

PreviousOverviewNextGet a list of products

Last updated 6 months ago