url = "https://api-dot-solutionsone-211314.ew.r.appspot.com/v1/orders"
"date_created_gmt": "2020-01-01 20:20:01+01:00",
"line_item_product_id": 1002,
"line_item_price": 17.49,
"line_item_name": "Any name",
"line_item_sku": "sku 123",
"line_item_variation_id": 1234,
"line_item_subtotal": 17.49,
"line_item_total": 17.49,
"line_item_tax_class": "Class A",
"line_item_subtotal_tax": 0,
payload = json.dumps(order)
'Authorization': 'Bearer [ADD YOUR USER TOKEN HERE]',
'Content-Type': 'application/json'
response = requests.request("POST", url, headers=headers, data = payload)
print(response.text.encode('utf8'))