Orders
Create orders
Create new order and add order content. Status for new orders will always be set to unpaid
POST
/
v1
/
orders
Copy
Ask AI
curl --request POST \
--url https://api.quickbutik.com/v1/orders \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '[
{
"order_id": "create",
"customer": {
"type": "consumer",
"email": "customer@example.com",
"phone": "+46123456789",
"login_create": true,
"billing_details": {
"company_name": "Bolaget AB",
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "<string>",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"shipping_details": {
"company_name": "Bolaget AB",
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "<string>",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"newsletter_subscribe": true,
"note": "<string>"
},
"payment": {
"method": "MySaleChannel",
"transaction_id": "<string>",
"currency": "SEK",
"log": "<string>"
},
"shipping": {
"id": 1,
"name": "Postnord Parcel",
"price": 123
},
"products": [
{
"product_id": 123,
"variant_id": 123,
"sku": "<string>",
"qty": 1,
"price": 123
}
],
"products_add": [
{
"sku": "SHIRT-123",
"product_id": "<string>",
"variant_id": "NULL (no variant)"
}
],
"products_remove": [
{
"sku": "SHIRT-123",
"product_id": "<string>",
"variant_id": "NULL (no variant)"
}
],
"discount_add": {
"amount": 1
},
"discount_remove": true,
"metadata": {}
}
]'
Copy
Ask AI
{
"success": 1,
"variants": [
{}
],
"notices": [
"<string>"
]
}
Authorizations
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 · object[]
The body is of type object[]
.
Response
200
application/json
Order created successfully
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.quickbutik.com/v1/orders \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '[
{
"order_id": "create",
"customer": {
"type": "consumer",
"email": "customer@example.com",
"phone": "+46123456789",
"login_create": true,
"billing_details": {
"company_name": "Bolaget AB",
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "<string>",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"shipping_details": {
"company_name": "Bolaget AB",
"firstname": "Kalle",
"lastname": "Ankasson",
"address": "Gladagatan 10",
"address2": "<string>",
"city": "Ankeborg",
"zipcode": "12345",
"country": "SE"
},
"newsletter_subscribe": true,
"note": "<string>"
},
"payment": {
"method": "MySaleChannel",
"transaction_id": "<string>",
"currency": "SEK",
"log": "<string>"
},
"shipping": {
"id": 1,
"name": "Postnord Parcel",
"price": 123
},
"products": [
{
"product_id": 123,
"variant_id": 123,
"sku": "<string>",
"qty": 1,
"price": 123
}
],
"products_add": [
{
"sku": "SHIRT-123",
"product_id": "<string>",
"variant_id": "NULL (no variant)"
}
],
"products_remove": [
{
"sku": "SHIRT-123",
"product_id": "<string>",
"variant_id": "NULL (no variant)"
}
],
"discount_add": {
"amount": 1
},
"discount_remove": true,
"metadata": {}
}
]'
Copy
Ask AI
{
"success": 1,
"variants": [
{}
],
"notices": [
"<string>"
]
}
Assistant
Responses are generated using AI and may contain mistakes.