Update SKU
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/products/{productId}/skus/{skuId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"price": 210000,
"currency": "PLN"
}
'{
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"product_id": "prod_0bae2dc5a090fd0184",
"sku": "Samsung phone 256GB",
"price": 210000,
"currency": "PLN",
"attributes": {
"color": "vintage-black",
"memory": "256",
"processor": "Intel"
},
"image_url": "{{internalVoucherifyURL}}",
"metadata": {
"imported": true
},
"created_at": "2022-09-12T13:56:51.828Z",
"updated_at": "2022-09-12T14:09:40.859Z",
"object": "sku"
}Update SKU
Updates the specified SKU by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged.
Fields other than the ones listed in the request body schema won’t be modified. Even if provided, they will be silently skipped.
PUT
/
v1
/
products
/
{productId}
/
skus
/
{skuId}
Update SKU
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/products/{productId}/skus/{skuId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"price": 210000,
"currency": "PLN"
}
'{
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1",
"product_id": "prod_0bae2dc5a090fd0184",
"sku": "Samsung phone 256GB",
"price": 210000,
"currency": "PLN",
"attributes": {
"color": "vintage-black",
"memory": "256",
"processor": "Intel"
},
"image_url": "{{internalVoucherifyURL}}",
"metadata": {
"imported": true
},
"created_at": "2022-09-12T13:56:51.828Z",
"updated_at": "2022-09-12T14:09:40.859Z",
"object": "sku"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
A unique Voucherify product ID or product source ID.
Example:
"prod_3ttSkdxGuAfcv3"
A Voucherify SKU ID or SKU source ID.
Example:
"sku_0b661e41eccd35a8e9"
Body
application/json
Specify the parameters to be updated.
Request body schema for PUT v1/products/{productId}/skus/{skuId}.
Response
200 - application/json
Returns the SKU object with the updated parameters.
Response body schema for PUT v1/products/{productId}/skus/{skuId}.

