Create Order

Create Order

Introduction

Create an order

Overview

This API enable you to send order to Apliiq.

Authentication

using API Key and Shared_SECRET provided to create hmac signature authentication header 

authorization schema x-apliiq-auth 

header authorization value RTS:SIG:APPID:STATE

RTS - Request time stamp is calculated using UNIX time (number of seconds since Jan. 1st 1970)

SIG - Signature is calculated with following algorithm :

               base64_encode(HMACSHA265([APPId][RTS][STATE][Base64_ReqContentIFanyOREmptyString], Shared_SECRET))

APPID - app key

STATE - Random unique string (nonce)

* DO NOT INCLUDE YOUR SHARED SECRET IN ANY REQUESTS *

Error Codes

200 - OK - order processed

202 - Accepted - order received but not process due to reason in response message

401 - Unauthorized

Rate limit

TBD

Authorization: x-apliiq-auth  RTS:SIG:APPID:STATE   

Accept application/json


id

required

Unique store system order id

number

required

Unique store alternative order id

name

required

Unique order friendly name

order_number

required

Unique order friendly name

line_items

required

Array of line items

>>> id

required

Store system line item id

>>> title

optional/required*

line item name is required if title is not provided

>>> name

optional/required*

line item title is required if name is not provided

>>> quantity

required

Quantity of given product

>>> price

required

Sold price

>>> sku

required

Apliiq product SKU:   APQ-########S#A#

>>> gram

optional

Can be set to zero

billing_address

Optional 


>>> first_name

Optional 


>>> last_Name

Optional 


>>> address1

Optional 


>>> address2

Optional 


>>> phone

Optional 


>>> city

Optional 


>>> zip

Optional 


>>> province

Optional 


>>> province_code

Optional 


>>> country

Optional 


>>> country_code

Optional 


shipping_address

required

Customer’s shipping address

>>> company

optional


>>> first_name

required

Customer first name

>>> last_Name

required

Customer last name

>>> address1

required

Customer address line 1

>>> address2

Optional 


>>> phone

Optional 


>>> city

required

Customer address city

>>> zip

required

Customer address zip

>>> province

required

Customer address state

>>> province_code

required*

* requires if country is US - 2 letters state code if country is US

>>> country

required

Country name

>>> country_code

required

2 letters country code


Payload example
  1. {
        "id": 1569438492,
        "number": 1006,
        "name": "#1006",
        "order_number": 1006,
        "line_items": [
            {
                "id": "1511138222",
                "title": "cotton heritage polly pocket",
                "quantity": 1,
                "price": "45.50",
                "grams": 0,
                "sku": "APQ-1998244S7A1",
                "name": "cotton heritage polly pocket - M / denim"
            }
        ],
        "billing_address": {
            "first_name": "john",
            "address1": "1158 am 9.25.19",
            "phone": "2135558976",
            "city": "los angeles",
            "zip": "90013",
            "province": "California",
            "country": "United States",
            "last_name": "smith",
            "address2": "unit 142",
            "name": "john smith",
            "country_code": "US",
            "province_code": "CA"
        },
        "shipping_address": {
            "first_name": "john",
            "address1": "1158 am 9.25.19",
            "phone": "2135558976",
            "city": "los angeles",
            "zip": "90013",
            "province": "California",
            "country": "United States",
            "last_name": "smith",
            "address2": "unit 142",
            "name": "john smith",
            "country_code": "US",
            "province_code": "CA"
        }
    }
Response example
  1. {"id":96348}

    • Related Articles

    • A Completely New Way To Create Custom Beanies

      Published on Feb 27, 2017 What makes the patch beanie better than just any other embroidered beanie? We are glad you asked. Patch beanies are super "user friendly" from a design standpont. Almost any artwork works and turns out great. Custom patch ...
    • How Can I Cancel A Dropshipping Order?

      You are able to cancel a dropshipping order once it has been placed, if we haven’t started working on it yet. To cancel an order simply email cs@apliiq.com once you cancel your order we will refund your credit card. In cases that we have already ...
    • How To Manually Enter A Dropshipping Order

      Here are a few reasons why you may need to enter a dropshipping order As you are building your clothing line, you may find that from time to time you need to enter a dropshipping transaction manually. For example, maybe your friend saw you wearing a ...
    • How Do You Handle A Back Order In Dropshipping?

      A backordered item is a blank garment or accessory that is not currently available from a manufacturer or distributor. When we choose items to stock we take into consideration their ongoing availability to reduce the likelihood of backorders. ...
    • Can I Order One Sample? (no minimums)

      Of course! We know how important ordering a sample is so you can see & feel your products. There are no minimums on any products that you design on Apliiq.com. Ordering a sample is fast and easy. You can order a sample directly from the website. ...