Skip to main content
PUT
/
v1
/
products
Update products
curl --request PUT \
  --url https://api.quickbutik.com/v1/products \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product_id": 123,
  "variant_id": 123,
  "sku": "<string>",
  "title": "<string>",
  "price": 299,
  "before_price": 399,
  "purchase_price": 69,
  "tax_rate": 25,
  "stock": 1,
  "qty_location": "<string>",
  "disable_minusqty": "1",
  "visible": 1,
  "description": "<string>",
  "gtin": "<string>",
  "supplier_name": "<string>",
  "supplier_sku": "<string>",
  "datafield_1": "<string>",
  "datafield_2": "<string>",
  "datafield_3": "<string>",
  "seo_description": "<string>",
  "seo_title": "<string>",
  "weight": 400,
  "images": [
    {
      "url": "https://quickbutik.com/logo.png",
      "alttext": "Our logo"
    }
  ],
  "metadata": {},
  "variants": {
    "sync": [
      {
        "variant_option1_name": "Color",
        "variant_option1_value": "Red",
        "variant_option2_name": "Size",
        "variant_option2_value": "Large",
        "variant_option3_name": "<string>",
        "variant_option3_value": "<string>",
        "variant_option4_name": "<string>",
        "variant_option4_value": "<string>",
        "variant_option5_name": "<string>",
        "variant_option5_value": "<string>",
        "sku": "<string>",
        "price": 123,
        "purchase_price": 123,
        "qty": 123,
        "qty_location": "<string>",
        "before_price": 123,
        "gtin": "<string>",
        "supplier_sku": "<string>",
        "weight": 123,
        "visible": 0,
        "images": [
          [
            {
              "url": "<any>",
              "alttext": "<any>"
            }
          ]
        ]
      }
    ],
    "add": [
      {
        "variant_option1_name": "Color",
        "variant_option1_value": "Red",
        "variant_option2_name": "Size",
        "variant_option2_value": "Large",
        "variant_option3_name": "<string>",
        "variant_option3_value": "<string>",
        "variant_option4_name": "<string>",
        "variant_option4_value": "<string>",
        "variant_option5_name": "<string>",
        "variant_option5_value": "<string>",
        "sku": "<string>",
        "price": 123,
        "purchase_price": 123,
        "qty": 123,
        "qty_location": "<string>",
        "before_price": 123,
        "gtin": "<string>",
        "supplier_sku": "<string>",
        "weight": 123,
        "visible": 0,
        "images": [
          [
            {
              "url": "<any>",
              "alttext": "<any>"
            }
          ]
        ]
      }
    ],
    "update": [
      {
        "variant_option1_name": "Color",
        "variant_option1_value": "Red",
        "variant_option2_name": "Size",
        "variant_option2_value": "Large",
        "variant_option3_name": "<string>",
        "variant_option3_value": "<string>",
        "variant_option4_name": "<string>",
        "variant_option4_value": "<string>",
        "variant_option5_name": "<string>",
        "variant_option5_value": "<string>",
        "sku": "<string>",
        "price": 123,
        "purchase_price": 123,
        "qty": 123,
        "qty_location": "<string>",
        "before_price": 123,
        "gtin": "<string>",
        "supplier_sku": "<string>",
        "weight": 123,
        "visible": 0,
        "images": [
          [
            {
              "url": "<any>",
              "alttext": "<any>"
            }
          ]
        ],
        "variant_id": 123
      }
    ]
  }
}'
{
  "success": 1,
  "errors": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

API key authentication using Basic Auth. Use your API key as both username and password. See the Authentication guide for complete setup instructions.

Body

application/json
product_id
integer

Product id - which you would like to update

variant_id
integer

Product variant id (if specific variant)

sku
string

(OR) Article Number - on product/variant which you would like to update

title
string

Product title

price
integer

Price

Example:

299

before_price
integer

Compare price

Example:

399

purchase_price
integer

Purchase price (excl. vat)

Example:

69

tax_rate
integer

VAT percentage (%)

Example:

25

stock
integer

Stock quantity

Example:

1

qty_location
string

Stock location

disable_minusqty
string

Disable minus stock (dont allow the stock to go negative)

Example:

"1"

visible
integer
Example:

1

description
string

Product description

gtin
string

EAN number (GTIN)

supplier_name
string

Supplier name

supplier_sku
string

Supplier SKU/article number

datafield_1
string

Data field #1

datafield_2
string

Data field #2

datafield_3
string

Data field #3

seo_description
string

SEO description (if specific)

seo_title
string

SEO title (if specific)

weight
number

Weight (in grams)

Example:

400

images
object[]

An array containing one or more sub-arrays with a required url and an optional alttext

metadata
object

Custom metadata for the product

variants
object

Product variants configuration

Response

Product updated

success
integer
Example:

1

errors
string[]