Create an order
This API enable you to send order to Apliiq.
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 *
202 - Accepted - order received but not process due to reason in response message
401 - Unauthorized
{
"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": "1692 Avenue du Mont-Royal Est",
"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": "1692 Avenue du Mont-Royal Est",
"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_lines": : [{
"code": "upgraded"
}]
}
Fields