Skip to main content
PUT
/
v1
/
products
/
{productId}
/
skus
/
{skuId}
Update SKU
curl --request PUT \
  --url https://{cluster}.voucherify.io/v1/products/{productId}/skus/{skuId} \
  --header 'Authorization: Bearer <token>' \
  --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
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

productId
string
required
Example:
skuId
string
required
Example:

Body

application/json
sku
string
Example:
price
integer
currency
string
attributes
object
image_url
string
metadata
object

Response

200 - application/json
id
string
required
Example:
source_id
string | null
required
Example:
product_id
string
required
Example:
sku
string | null
required
Example:
price
integer | null
required
attributes
object
required
image_url
string | null
required
metadata
object
required
created_at
string<date-time>
required
Example:
updated_at
string<date-time> | null
required
Example:
object
enum<string>
default:sku
required
Available options:
sku
currency
string | null
Example: