Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/products \
--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 '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
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
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
Total number of product objects.
Was this page helpful?