Create orders
Create new order and add order content. Status for new orders will always be set to unpaid
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
Must be the value create to create a new order.
"create"
Customer details for the new order.
Payment information for the new order.
Products to add to the order. Required when creating an order.
Shipping method for the new order.
Optional. Set only if you would like to add a discount for this order
Custom metadata for the order
Response
Order created successfully
Results object containing response for each order creation attempt. Keys are dynamically generated as create_1, create_2, etc.