younifyd
Menu

Create Product

Create Product

POST/v1/products

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Create Product action (under Products).
  3. Fill in the fields below, then reference the result from later steps as {{createProduct.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

idstring

A unique identifier that represents the product and is assigned by Voucherify.

source_idstring

Unique product source ID.

namestring

Unique user-defined product name.

priceinteger

Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as `$100.00` being expressed as `10000`.

attributesarray<string>

A list of product attributes whose values you can customize for given SKUs: `["color","size","ranking"]`. Each child SKU can have a unique value for a given attribute.

metadataobject

The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.

image_urlstring

The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.

json
{
  "id": "prod_5h0wc453_1",
  "source_id": "productSourceID16",
  "name": "T-shirt",
  "price": 0,
  "attributes": [
    "string"
  ],
  "metadata": {},
  "image_url": "https://images.com/original.jpg"
}

Response

Returns 200 with an object. Read it in later steps with {{createProduct.response.data.<field>}}.

Need more? See the Voucherify guide for connection setup and behaviour shared by every action.

Create Product — Voucherify — Documentation