younifyd
Menu

Create Sku

Create SKU

POST/v1/products/{productId}/skus

Use it in a workflow

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

Request

Path parameters

productIdstringrequired

A Voucherify [product](/api-reference/products/get-product) ID or product source ID.

Request body

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

idstring

Unique SKU ID.

source_idstring

A unique SKU identifier from your inventory system.

skustring

Unique user-defined SKU name.

priceinteger

SKU unit price. The value is multiplied by 100 to represent 2 decimal places. For example `10000 cents` for `$100.00`.

currencystring

SKU price currency.

attributesobject

The attributes object stores values for all custom attributes inherited by the SKU from the parent product. A set of key/value pairs that are attached to a SKU object and are unique to each SKU within a product family.

image_urlstring

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

metadataobject

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

json
{
  "id": "sku_0c0c0012a9029bccef",
  "source_id": "sku_source_id_4",
  "sku": "Large Pink Shirt",
  "price": 0,
  "currency": "USD",
  "attributes": {},
  "image_url": "string",
  "metadata": {}
}

Response

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

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

Was this page helpful?