Skip to main content
POST
/
v1
/
products
Create Product
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data '{
  "source_id": "first_product",
  "name": "Samsung Phone",
  "price": 200000,
  "attributes": [
    "color",
    "memory",
    "processor"
  ],
  "metadata": {
    "test": true,
    "vendor": "Online Store"
  },
  "image_url": "{{internalVoucherifyURL}}"
}'
{
  "id": "prod_0bae2dc5a090fd0184",
  "source_id": "first_product",
  "name": "Samsung Phone",
  "price": 200000,
  "attributes": [
    "color",
    "memory",
    "processor"
  ],
  "metadata": {
    "test": true,
    "vendor": "Online Store"
  },
  "image_url": "https://www.website.com/image.png",
  "created_at": "2022-09-12T12:58:22.232Z",
  "updated_at": "2022-09-12T12:59:55.890Z",
  "object": "product"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Body

application/json
id
string
Example:
source_id
string
Example:
name
string
Example:
price
integer
attributes
string[]
metadata
object
image_url
string
Example:

Response

200 - application/json
id
string
required
Example:
source_id
string | null
required
Example:
name
string | null
required
Example:
price
integer | null
required
attributes
string[]
required
metadata
object
required
object
enum<string>
default:product
required
Available options:
product
skus
object
image_url
string | null
Example:
created_at
string<date-time>
Example:
updated_at
string<date-time> | null
Example: