curl --request PUT \
--url https://api.quickbutik.com/v1/orders \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
[
[
{
"order_id": "948102",
"status": "done",
"shipping_info": {
"trackingnumber": "230491712300",
"company": "DHL"
},
"email_confirmation": "true",
"paymethod_activate": "true",
"skip_email_confirmation": "false",
"skip_webhook": "false",
"language": "en",
"products_add": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 1
}
],
"products_remove": [
{
"sku": "OLD-SHIRT-001",
"qty": 1
}
],
"products": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 2
}
],
"discount_add": {
"amount": 50
},
"discount_remove": false,
"customer": {
"type": "consumer",
"email": "customer@example.com",
"phone": "+46701234567",
"billing_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"shipping_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE",
"company_name": ""
},
"note": "Leave at the front door"
},
"payment": {
"method": "MySaleChannel",
"transaction_id": "TX-2024-0001",
"currency": "SEK"
},
"shipping": {
"id": 1,
"name": "Postnord Parcel",
"price": "49.00"
},
"metadata": {
"external_ref": "ERP-55213"
}
}
]
]
'import requests
url = "https://api.quickbutik.com/v1/orders"
payload = [[
{
"order_id": "948102",
"status": "done",
"shipping_info": {
"trackingnumber": "230491712300",
"company": "DHL"
},
"email_confirmation": "true",
"paymethod_activate": "true",
"skip_email_confirmation": "false",
"skip_webhook": "false",
"language": "en",
"products_add": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 1
}
],
"products_remove": [
{
"sku": "OLD-SHIRT-001",
"qty": 1
}
],
"products": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 2
}
],
"discount_add": { "amount": 50 },
"discount_remove": False,
"customer": {
"type": "consumer",
"email": "customer@example.com",
"phone": "+46701234567",
"billing_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"shipping_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE",
"company_name": ""
},
"note": "Leave at the front door"
},
"payment": {
"method": "MySaleChannel",
"transaction_id": "TX-2024-0001",
"currency": "SEK"
},
"shipping": {
"id": 1,
"name": "Postnord Parcel",
"price": "49.00"
},
"metadata": { "external_ref": "ERP-55213" }
}
]]
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify([
[
{
order_id: '948102',
status: 'done',
shipping_info: {trackingnumber: '230491712300', company: 'DHL'},
email_confirmation: 'true',
paymethod_activate: 'true',
skip_email_confirmation: 'false',
skip_webhook: 'false',
language: 'en',
products_add: [{sku: 'SHIRT-123', product_id: '12345', variant_id: '67890', qty: 1}],
products_remove: [{sku: 'OLD-SHIRT-001', qty: 1}],
products: [{sku: 'SHIRT-123', product_id: '12345', variant_id: '67890', qty: 2}],
discount_add: {amount: 50},
discount_remove: false,
customer: {
type: 'consumer',
email: 'customer@example.com',
phone: '+46701234567',
billing_details: {
firstname: 'Kalle',
lastname: 'Ankasson',
address: 'Gladagatan 10',
address2: '',
city: 'Ankeborg',
zipcode: '12345',
country: 'SE'
},
shipping_details: {
firstname: 'Kalle',
lastname: 'Ankasson',
address: 'Gladagatan 10',
address2: '',
city: 'Ankeborg',
zipcode: '12345',
country: 'SE',
company_name: ''
},
note: 'Leave at the front door'
},
payment: {method: 'MySaleChannel', transaction_id: 'TX-2024-0001', currency: 'SEK'},
shipping: {id: 1, name: 'Postnord Parcel', price: '49.00'},
metadata: {external_ref: 'ERP-55213'}
}
]
])
};
fetch('https://api.quickbutik.com/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.quickbutik.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
[
'order_id' => '948102',
'status' => 'done',
'shipping_info' => [
'trackingnumber' => '230491712300',
'company' => 'DHL'
],
'email_confirmation' => 'true',
'paymethod_activate' => 'true',
'skip_email_confirmation' => 'false',
'skip_webhook' => 'false',
'language' => 'en',
'products_add' => [
[
'sku' => 'SHIRT-123',
'product_id' => '12345',
'variant_id' => '67890',
'qty' => 1
]
],
'products_remove' => [
[
'sku' => 'OLD-SHIRT-001',
'qty' => 1
]
],
'products' => [
[
'sku' => 'SHIRT-123',
'product_id' => '12345',
'variant_id' => '67890',
'qty' => 2
]
],
'discount_add' => [
'amount' => 50
],
'discount_remove' => false,
'customer' => [
'type' => 'consumer',
'email' => 'customer@example.com',
'phone' => '+46701234567',
'billing_details' => [
'firstname' => 'Kalle',
'lastname' => 'Ankasson',
'address' => 'Gladagatan 10',
'address2' => '',
'city' => 'Ankeborg',
'zipcode' => '12345',
'country' => 'SE'
],
'shipping_details' => [
'firstname' => 'Kalle',
'lastname' => 'Ankasson',
'address' => 'Gladagatan 10',
'address2' => '',
'city' => 'Ankeborg',
'zipcode' => '12345',
'country' => 'SE',
'company_name' => ''
],
'note' => 'Leave at the front door'
],
'payment' => [
'method' => 'MySaleChannel',
'transaction_id' => 'TX-2024-0001',
'currency' => 'SEK'
],
'shipping' => [
'id' => 1,
'name' => 'Postnord Parcel',
'price' => '49.00'
],
'metadata' => [
'external_ref' => 'ERP-55213'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.quickbutik.com/v1/orders"
payload := strings.NewReader("[\n [\n {\n \"order_id\": \"948102\",\n \"status\": \"done\",\n \"shipping_info\": {\n \"trackingnumber\": \"230491712300\",\n \"company\": \"DHL\"\n },\n \"email_confirmation\": \"true\",\n \"paymethod_activate\": \"true\",\n \"skip_email_confirmation\": \"false\",\n \"skip_webhook\": \"false\",\n \"language\": \"en\",\n \"products_add\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 1\n }\n ],\n \"products_remove\": [\n {\n \"sku\": \"OLD-SHIRT-001\",\n \"qty\": 1\n }\n ],\n \"products\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 2\n }\n ],\n \"discount_add\": {\n \"amount\": 50\n },\n \"discount_remove\": false,\n \"customer\": {\n \"type\": \"consumer\",\n \"email\": \"customer@example.com\",\n \"phone\": \"+46701234567\",\n \"billing_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\"\n },\n \"shipping_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\",\n \"company_name\": \"\"\n },\n \"note\": \"Leave at the front door\"\n },\n \"payment\": {\n \"method\": \"MySaleChannel\",\n \"transaction_id\": \"TX-2024-0001\",\n \"currency\": \"SEK\"\n },\n \"shipping\": {\n \"id\": 1,\n \"name\": \"Postnord Parcel\",\n \"price\": \"49.00\"\n },\n \"metadata\": {\n \"external_ref\": \"ERP-55213\"\n }\n }\n ]\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.quickbutik.com/v1/orders")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("[\n [\n {\n \"order_id\": \"948102\",\n \"status\": \"done\",\n \"shipping_info\": {\n \"trackingnumber\": \"230491712300\",\n \"company\": \"DHL\"\n },\n \"email_confirmation\": \"true\",\n \"paymethod_activate\": \"true\",\n \"skip_email_confirmation\": \"false\",\n \"skip_webhook\": \"false\",\n \"language\": \"en\",\n \"products_add\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 1\n }\n ],\n \"products_remove\": [\n {\n \"sku\": \"OLD-SHIRT-001\",\n \"qty\": 1\n }\n ],\n \"products\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 2\n }\n ],\n \"discount_add\": {\n \"amount\": 50\n },\n \"discount_remove\": false,\n \"customer\": {\n \"type\": \"consumer\",\n \"email\": \"customer@example.com\",\n \"phone\": \"+46701234567\",\n \"billing_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\"\n },\n \"shipping_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\",\n \"company_name\": \"\"\n },\n \"note\": \"Leave at the front door\"\n },\n \"payment\": {\n \"method\": \"MySaleChannel\",\n \"transaction_id\": \"TX-2024-0001\",\n \"currency\": \"SEK\"\n },\n \"shipping\": {\n \"id\": 1,\n \"name\": \"Postnord Parcel\",\n \"price\": \"49.00\"\n },\n \"metadata\": {\n \"external_ref\": \"ERP-55213\"\n }\n }\n ]\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quickbutik.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "[\n [\n {\n \"order_id\": \"948102\",\n \"status\": \"done\",\n \"shipping_info\": {\n \"trackingnumber\": \"230491712300\",\n \"company\": \"DHL\"\n },\n \"email_confirmation\": \"true\",\n \"paymethod_activate\": \"true\",\n \"skip_email_confirmation\": \"false\",\n \"skip_webhook\": \"false\",\n \"language\": \"en\",\n \"products_add\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 1\n }\n ],\n \"products_remove\": [\n {\n \"sku\": \"OLD-SHIRT-001\",\n \"qty\": 1\n }\n ],\n \"products\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 2\n }\n ],\n \"discount_add\": {\n \"amount\": 50\n },\n \"discount_remove\": false,\n \"customer\": {\n \"type\": \"consumer\",\n \"email\": \"customer@example.com\",\n \"phone\": \"+46701234567\",\n \"billing_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\"\n },\n \"shipping_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\",\n \"company_name\": \"\"\n },\n \"note\": \"Leave at the front door\"\n },\n \"payment\": {\n \"method\": \"MySaleChannel\",\n \"transaction_id\": \"TX-2024-0001\",\n \"currency\": \"SEK\"\n },\n \"shipping\": {\n \"id\": 1,\n \"name\": \"Postnord Parcel\",\n \"price\": \"49.00\"\n },\n \"metadata\": {\n \"external_ref\": \"ERP-55213\"\n }\n }\n ]\n]"
response = http.request(request)
puts response.read_body{
"results": {}
}{
"code": 404,
"error": "Resource not found"
}{
"code": 404,
"error": "Resource not found"
}Update orders
Update one or more existing orders. Each request object must include the order_id of the order to update, plus any fields you want to change
curl --request PUT \
--url https://api.quickbutik.com/v1/orders \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
[
[
{
"order_id": "948102",
"status": "done",
"shipping_info": {
"trackingnumber": "230491712300",
"company": "DHL"
},
"email_confirmation": "true",
"paymethod_activate": "true",
"skip_email_confirmation": "false",
"skip_webhook": "false",
"language": "en",
"products_add": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 1
}
],
"products_remove": [
{
"sku": "OLD-SHIRT-001",
"qty": 1
}
],
"products": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 2
}
],
"discount_add": {
"amount": 50
},
"discount_remove": false,
"customer": {
"type": "consumer",
"email": "customer@example.com",
"phone": "+46701234567",
"billing_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"shipping_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE",
"company_name": ""
},
"note": "Leave at the front door"
},
"payment": {
"method": "MySaleChannel",
"transaction_id": "TX-2024-0001",
"currency": "SEK"
},
"shipping": {
"id": 1,
"name": "Postnord Parcel",
"price": "49.00"
},
"metadata": {
"external_ref": "ERP-55213"
}
}
]
]
'import requests
url = "https://api.quickbutik.com/v1/orders"
payload = [[
{
"order_id": "948102",
"status": "done",
"shipping_info": {
"trackingnumber": "230491712300",
"company": "DHL"
},
"email_confirmation": "true",
"paymethod_activate": "true",
"skip_email_confirmation": "false",
"skip_webhook": "false",
"language": "en",
"products_add": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 1
}
],
"products_remove": [
{
"sku": "OLD-SHIRT-001",
"qty": 1
}
],
"products": [
{
"sku": "SHIRT-123",
"product_id": "12345",
"variant_id": "67890",
"qty": 2
}
],
"discount_add": { "amount": 50 },
"discount_remove": False,
"customer": {
"type": "consumer",
"email": "customer@example.com",
"phone": "+46701234567",
"billing_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"shipping_details": {
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE",
"company_name": ""
},
"note": "Leave at the front door"
},
"payment": {
"method": "MySaleChannel",
"transaction_id": "TX-2024-0001",
"currency": "SEK"
},
"shipping": {
"id": 1,
"name": "Postnord Parcel",
"price": "49.00"
},
"metadata": { "external_ref": "ERP-55213" }
}
]]
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify([
[
{
order_id: '948102',
status: 'done',
shipping_info: {trackingnumber: '230491712300', company: 'DHL'},
email_confirmation: 'true',
paymethod_activate: 'true',
skip_email_confirmation: 'false',
skip_webhook: 'false',
language: 'en',
products_add: [{sku: 'SHIRT-123', product_id: '12345', variant_id: '67890', qty: 1}],
products_remove: [{sku: 'OLD-SHIRT-001', qty: 1}],
products: [{sku: 'SHIRT-123', product_id: '12345', variant_id: '67890', qty: 2}],
discount_add: {amount: 50},
discount_remove: false,
customer: {
type: 'consumer',
email: 'customer@example.com',
phone: '+46701234567',
billing_details: {
firstname: 'Kalle',
lastname: 'Ankasson',
address: 'Gladagatan 10',
address2: '',
city: 'Ankeborg',
zipcode: '12345',
country: 'SE'
},
shipping_details: {
firstname: 'Kalle',
lastname: 'Ankasson',
address: 'Gladagatan 10',
address2: '',
city: 'Ankeborg',
zipcode: '12345',
country: 'SE',
company_name: ''
},
note: 'Leave at the front door'
},
payment: {method: 'MySaleChannel', transaction_id: 'TX-2024-0001', currency: 'SEK'},
shipping: {id: 1, name: 'Postnord Parcel', price: '49.00'},
metadata: {external_ref: 'ERP-55213'}
}
]
])
};
fetch('https://api.quickbutik.com/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.quickbutik.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
[
'order_id' => '948102',
'status' => 'done',
'shipping_info' => [
'trackingnumber' => '230491712300',
'company' => 'DHL'
],
'email_confirmation' => 'true',
'paymethod_activate' => 'true',
'skip_email_confirmation' => 'false',
'skip_webhook' => 'false',
'language' => 'en',
'products_add' => [
[
'sku' => 'SHIRT-123',
'product_id' => '12345',
'variant_id' => '67890',
'qty' => 1
]
],
'products_remove' => [
[
'sku' => 'OLD-SHIRT-001',
'qty' => 1
]
],
'products' => [
[
'sku' => 'SHIRT-123',
'product_id' => '12345',
'variant_id' => '67890',
'qty' => 2
]
],
'discount_add' => [
'amount' => 50
],
'discount_remove' => false,
'customer' => [
'type' => 'consumer',
'email' => 'customer@example.com',
'phone' => '+46701234567',
'billing_details' => [
'firstname' => 'Kalle',
'lastname' => 'Ankasson',
'address' => 'Gladagatan 10',
'address2' => '',
'city' => 'Ankeborg',
'zipcode' => '12345',
'country' => 'SE'
],
'shipping_details' => [
'firstname' => 'Kalle',
'lastname' => 'Ankasson',
'address' => 'Gladagatan 10',
'address2' => '',
'city' => 'Ankeborg',
'zipcode' => '12345',
'country' => 'SE',
'company_name' => ''
],
'note' => 'Leave at the front door'
],
'payment' => [
'method' => 'MySaleChannel',
'transaction_id' => 'TX-2024-0001',
'currency' => 'SEK'
],
'shipping' => [
'id' => 1,
'name' => 'Postnord Parcel',
'price' => '49.00'
],
'metadata' => [
'external_ref' => 'ERP-55213'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.quickbutik.com/v1/orders"
payload := strings.NewReader("[\n [\n {\n \"order_id\": \"948102\",\n \"status\": \"done\",\n \"shipping_info\": {\n \"trackingnumber\": \"230491712300\",\n \"company\": \"DHL\"\n },\n \"email_confirmation\": \"true\",\n \"paymethod_activate\": \"true\",\n \"skip_email_confirmation\": \"false\",\n \"skip_webhook\": \"false\",\n \"language\": \"en\",\n \"products_add\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 1\n }\n ],\n \"products_remove\": [\n {\n \"sku\": \"OLD-SHIRT-001\",\n \"qty\": 1\n }\n ],\n \"products\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 2\n }\n ],\n \"discount_add\": {\n \"amount\": 50\n },\n \"discount_remove\": false,\n \"customer\": {\n \"type\": \"consumer\",\n \"email\": \"customer@example.com\",\n \"phone\": \"+46701234567\",\n \"billing_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\"\n },\n \"shipping_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\",\n \"company_name\": \"\"\n },\n \"note\": \"Leave at the front door\"\n },\n \"payment\": {\n \"method\": \"MySaleChannel\",\n \"transaction_id\": \"TX-2024-0001\",\n \"currency\": \"SEK\"\n },\n \"shipping\": {\n \"id\": 1,\n \"name\": \"Postnord Parcel\",\n \"price\": \"49.00\"\n },\n \"metadata\": {\n \"external_ref\": \"ERP-55213\"\n }\n }\n ]\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.quickbutik.com/v1/orders")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("[\n [\n {\n \"order_id\": \"948102\",\n \"status\": \"done\",\n \"shipping_info\": {\n \"trackingnumber\": \"230491712300\",\n \"company\": \"DHL\"\n },\n \"email_confirmation\": \"true\",\n \"paymethod_activate\": \"true\",\n \"skip_email_confirmation\": \"false\",\n \"skip_webhook\": \"false\",\n \"language\": \"en\",\n \"products_add\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 1\n }\n ],\n \"products_remove\": [\n {\n \"sku\": \"OLD-SHIRT-001\",\n \"qty\": 1\n }\n ],\n \"products\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 2\n }\n ],\n \"discount_add\": {\n \"amount\": 50\n },\n \"discount_remove\": false,\n \"customer\": {\n \"type\": \"consumer\",\n \"email\": \"customer@example.com\",\n \"phone\": \"+46701234567\",\n \"billing_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\"\n },\n \"shipping_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\",\n \"company_name\": \"\"\n },\n \"note\": \"Leave at the front door\"\n },\n \"payment\": {\n \"method\": \"MySaleChannel\",\n \"transaction_id\": \"TX-2024-0001\",\n \"currency\": \"SEK\"\n },\n \"shipping\": {\n \"id\": 1,\n \"name\": \"Postnord Parcel\",\n \"price\": \"49.00\"\n },\n \"metadata\": {\n \"external_ref\": \"ERP-55213\"\n }\n }\n ]\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quickbutik.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "[\n [\n {\n \"order_id\": \"948102\",\n \"status\": \"done\",\n \"shipping_info\": {\n \"trackingnumber\": \"230491712300\",\n \"company\": \"DHL\"\n },\n \"email_confirmation\": \"true\",\n \"paymethod_activate\": \"true\",\n \"skip_email_confirmation\": \"false\",\n \"skip_webhook\": \"false\",\n \"language\": \"en\",\n \"products_add\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 1\n }\n ],\n \"products_remove\": [\n {\n \"sku\": \"OLD-SHIRT-001\",\n \"qty\": 1\n }\n ],\n \"products\": [\n {\n \"sku\": \"SHIRT-123\",\n \"product_id\": \"12345\",\n \"variant_id\": \"67890\",\n \"qty\": 2\n }\n ],\n \"discount_add\": {\n \"amount\": 50\n },\n \"discount_remove\": false,\n \"customer\": {\n \"type\": \"consumer\",\n \"email\": \"customer@example.com\",\n \"phone\": \"+46701234567\",\n \"billing_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\"\n },\n \"shipping_details\": {\n \"firstname\": \"Kalle\",\n \"lastname\": \"Ankasson\",\n \"address\": \"Gladagatan 10\",\n \"address2\": \"\",\n \"city\": \"Ankeborg\",\n \"zipcode\": \"12345\",\n \"country\": \"SE\",\n \"company_name\": \"\"\n },\n \"note\": \"Leave at the front door\"\n },\n \"payment\": {\n \"method\": \"MySaleChannel\",\n \"transaction_id\": \"TX-2024-0001\",\n \"currency\": \"SEK\"\n },\n \"shipping\": {\n \"id\": 1,\n \"name\": \"Postnord Parcel\",\n \"price\": \"49.00\"\n },\n \"metadata\": {\n \"external_ref\": \"ERP-55213\"\n }\n }\n ]\n]"
response = http.request(request)
puts response.read_body{
"results": {}
}{
"code": 404,
"error": "Resource not found"
}{
"code": 404,
"error": "Resource not found"
}Authorizations
Basic Authentication with API Keys
The Quickbutik API uses Basic Authentication where you use your API key as both the username and password.
How it works:
- Format your credentials as
api_key:api_key(using the SAME API key for both username and password) - Base64 encode the formatted string
- Include in the Authorization header as:
Authorization: Basic ENCODED_STRING
Example:
- API Key:
sk_live_abc123 - Formatted:
sk_live_abc123:sk_live_abc123 - Base64 Encoded:
c2tfbGl2ZV9hYmMxMjM6c2tfbGl2ZV9hYmMxMjM= - Header:
Authorization: Basic c2tfbGl2ZV9hYmMxMjM6c2tfbGl2ZV9hYmMxMjM=
cURL Example:
curl https://api.quickbutik.com/v1/orders -u your_api_key:your_api_key
All API requests must be made over HTTPS. Requests made over HTTP will be rejected.
API keys can be generated in the Quickbutik Control Panel under Settings → API.
Body
ID of the order to update. Required.
"948102"
Change the order state.
paid, done, cancelled, unpaid "paid"
Optional. Used together with status done to attach tracking information to the shipment.
Show child attributes
Show child attributes
Optional. Used together with status done — send shipping confirmation email to customer.
"true"
Optional. Used together with status paid — skip the order confirmation email.
"true"
Optional. Used together with status done. Default is true.
"false"
Optional. Used together with status paid — skip webhook notifications for this status change.
"true"
Optional. Used together with status paid. Two-letter language code (ISO 639-1) used for customer-facing emails.
"en"
Specify products in this order. When used, all other existing products in the order will be removed and be replaced with the ones specified here
Show child attributes
Show child attributes
Optional. If you would like to add products from the order. You can pass multiple objects/products into this parameter, to add multiple at once
Show child attributes
Show child attributes
Optional. If you would like to remove products from the order. You can pass multiple objects/products into this parameter, to remove multiple at once
Show child attributes
Show child attributes
Optional. Set only if you would like to add a discount for this order
Show child attributes
Show child attributes
Optional. Set only if you would like to add a discount for this order
Optional. Update customer details on the order.
Show child attributes
Show child attributes
Optional. Update payment details on the order.
Show child attributes
Show child attributes
Optional. Update the shipping method on the order.
Show child attributes
Show child attributes
Optional. Custom metadata to set on the order. Existing keys are overwritten, others are left in place.
Show child attributes
Show child attributes
Response
Orders updated successfully
Show child attributes
Show child attributes