curl --request GET \
--url https://{cluster}.voucherify.io/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "products",
"products": [
{
"id": "prod_f1r5Tpr0DuC7",
"source_id": "test_prod_id_1",
"name": "Apple iPhone 8",
"price": null,
"attributes": [
"color",
"memory"
],
"metadata": {
"test": true,
"vendor": "Cortland"
},
"image_url": null,
"created_at": "2021-12-03T06:33:46.101Z",
"updated_at": null,
"object": "product",
"skus": {
"data": [
{
"id": "sku_0a417bd1d9952f9d6f",
"source_id": "test_iphone_8_silver_256gb",
"product_id": "prod_f1r5Tpr0DuC7",
"sku": "iPhone 8 Silver 256GB",
"price": null,
"currency": null,
"attributes": {
"color": "silver",
"memory": "256"
},
"image_url": null,
"metadata": {},
"created_at": "2021-12-03T06:33:46.599097+00:00",
"updated_at": null,
"object": "sku"
},
{
"id": "sku_0a417bd1d9952f9d6e",
"source_id": "test_iphone_8_silver_64gb",
"product_id": "prod_f1r5Tpr0DuC7",
"sku": "iPhone 8 Silver 64GB",
"price": null,
"currency": null,
"attributes": {
"color": "silver",
"memory": "64"
},
"image_url": null,
"metadata": {},
"created_at": "2021-12-03T06:33:46.598595+00:00",
"updated_at": null,
"object": "sku"
}
],
"total": 2
}
},
{
"id": "prod_0ac67e1bb8072eec48",
"source_id": "test_volleyball",
"name": "VolleyBall",
"price": 1100,
"attributes": [],
"metadata": {
"color": [
"white"
],
"label": true,
"origin": "PL"
},
"image_url": null,
"created_at": "2022-03-16T14:01:45.459Z",
"updated_at": "2022-04-26T12:51:35.500Z",
"object": "product",
"skus": {
"data": [
{
"id": "sku_0ac768973f5c4ea0d0",
"source_id": "test_volleyball_pl",
"product_id": "prod_0ac67e1bb8072eec48",
"sku": "PL",
"price": 500,
"currency": "USD",
"attributes": {},
"image_url": null,
"metadata": {
"color": [
"red"
]
},
"created_at": "2022-03-17T07:06:13.629918+00:00",
"updated_at": null,
"object": "sku"
},
{
"id": "sku_0ac7689713072e1df6",
"source_id": "test_volleyball_us",
"product_id": "prod_0ac67e1bb8072eec48",
"sku": "US",
"price": 1500,
"currency": "USD",
"attributes": {},
"image_url": null,
"metadata": {
"color": [
"yellow"
]
},
"created_at": "2022-03-17T07:06:13.452532+00:00",
"updated_at": null,
"object": "sku"
}
],
"total": 2
}
}
],
"total": 2
}Retrieve a list of products.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "products",
"products": [
{
"id": "prod_f1r5Tpr0DuC7",
"source_id": "test_prod_id_1",
"name": "Apple iPhone 8",
"price": null,
"attributes": [
"color",
"memory"
],
"metadata": {
"test": true,
"vendor": "Cortland"
},
"image_url": null,
"created_at": "2021-12-03T06:33:46.101Z",
"updated_at": null,
"object": "product",
"skus": {
"data": [
{
"id": "sku_0a417bd1d9952f9d6f",
"source_id": "test_iphone_8_silver_256gb",
"product_id": "prod_f1r5Tpr0DuC7",
"sku": "iPhone 8 Silver 256GB",
"price": null,
"currency": null,
"attributes": {
"color": "silver",
"memory": "256"
},
"image_url": null,
"metadata": {},
"created_at": "2021-12-03T06:33:46.599097+00:00",
"updated_at": null,
"object": "sku"
},
{
"id": "sku_0a417bd1d9952f9d6e",
"source_id": "test_iphone_8_silver_64gb",
"product_id": "prod_f1r5Tpr0DuC7",
"sku": "iPhone 8 Silver 64GB",
"price": null,
"currency": null,
"attributes": {
"color": "silver",
"memory": "64"
},
"image_url": null,
"metadata": {},
"created_at": "2021-12-03T06:33:46.598595+00:00",
"updated_at": null,
"object": "sku"
}
],
"total": 2
}
},
{
"id": "prod_0ac67e1bb8072eec48",
"source_id": "test_volleyball",
"name": "VolleyBall",
"price": 1100,
"attributes": [],
"metadata": {
"color": [
"white"
],
"label": true,
"origin": "PL"
},
"image_url": null,
"created_at": "2022-03-16T14:01:45.459Z",
"updated_at": "2022-04-26T12:51:35.500Z",
"object": "product",
"skus": {
"data": [
{
"id": "sku_0ac768973f5c4ea0d0",
"source_id": "test_volleyball_pl",
"product_id": "prod_0ac67e1bb8072eec48",
"sku": "PL",
"price": 500,
"currency": "USD",
"attributes": {},
"image_url": null,
"metadata": {
"color": [
"red"
]
},
"created_at": "2022-03-17T07:06:13.629918+00:00",
"updated_at": null,
"object": "sku"
},
{
"id": "sku_0ac7689713072e1df6",
"source_id": "test_volleyball_us",
"product_id": "prod_0ac67e1bb8072eec48",
"sku": "US",
"price": 1500,
"currency": "USD",
"attributes": {},
"image_url": null,
"metadata": {
"color": [
"yellow"
]
},
"created_at": "2022-03-17T07:06:13.452532+00:00",
"updated_at": null,
"object": "sku"
}
],
"total": 2
}
}
],
"total": 2
}The access token received from the authorization server in the OAuth 2.0 flow.
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
1 <= x <= 100Which page of results to return. The lowest value is 1.
1 <= x <= 100Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
created_at, -created_at, updated_at, -updated_at, type, -type, code, -code, campaign, -campaign, category, -category Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
"2023-12-22T10:13:06.487Z"
Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.
"2023-12-22T10:13:06.487Z"
Returns a dictionary with product objects. The products are returned sorted by creation date by default, with the most recent products appearing last, unless you specify another sequence using the order query parameter.
Response body schema for GET v1/products.
The type of the object represented by JSON. This object stores information about products in a dictionary.
Identifies the name of the attribute that contains the array of product objects.
Contains array of product objects.
Show child attributes
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 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"
Contains information about child SKUs.
Show child attributes
The type of the object represented by JSON. This object stores information about SKUs.
Identifies the name of the JSON property that contains the array of SKUs.
A dictionary that contains an array of SKUs.
Show child attributes
A unique identifier that represents the SKU and is assigned by Voucherify.
"sku_0b1621b319d248b79f"
A unique SKU identifier from your inventory system.
"sku_source_id_4"
The parent product's unique ID.
"prod_0b15f6b9f650c16990"
Unique user-defined SKU name.
"Large Pink 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.
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.
The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.
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. It can be used to create product collections.
Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.
"2022-05-17T10:36:30.187Z"
Timestamp representing the date and time when the SKU was updated. The value is shown in the ISO 8601 format.
"2022-05-17T10:55:09.137Z"
The type of the object represented by JSON. This object stores information about the SKU.
sku SKU price currency.
"USD"
Total number of SKUs in the product.
Total number of product objects.
Was this page helpful?