Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
Specify the product parameters.
Request schema for POST v1/products
.
A unique identifier that represents the product and is assigned by Voucherify.
"prod_5h0wc453_1"
Unique product source ID.
"productSourceID16"
Unique user-defined product name.
"T-shirt"
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
.
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.
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.
The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
"https://images.com/original.jpg"
Response
Returns a product object if the operation succeeded.
Response body schema for POST v1/products
.
This is an object representing a product.
This entity should be used to map product items from your inventory management system. The aim of products is to build which reflect product-specific campaigns.
Unique product ID assigned by Voucherify.
"prod_0b1da8105693710357"
Unique product source ID.
"productSourceID16"
Unique user-defined product name.
"T-shirt"
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
.
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.
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. It can be used to create product collections.
The type of the object represented by JSON. This object stores information about the product.
product
Contains information about child SKUs.
The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
"https://images.com/original.jpg"
Timestamp representing the date and time when the product was created. The value is shown in the ISO 8601 format.
"2022-05-23T06:52:55.008Z"
Timestamp representing the date and time when the product was updated. The value is shown in the ISO 8601 format.
"2022-05-23T09:24:07.405Z"