order
order.add
Add a new order to the cart.
post/order.add.json
Request
- Base URL: https://api.api2cart.com/v1.1
- URL: https://api.api2cart.com/v1.1/order.add.json
- Auth: API key in header x-api-key and API key in header x-store-key
Request body
Example request
{
"store_id": "1",
"channel_id": "1",
"order_status": "Completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"customer_email": "jubari@hannsgroup.com",
"customer_first_name": "John",
"customer_last_name": "Smith",
"customer_phone": "88008547457",
"customer_country": "US",
"customer_birthday": "1990-12-03",
"customer_fax": "5656598",
"is_guest": true,
"order_payment_method": "PayPal",
"transaction_id": "d41d8cd98f00b204e9800998ecf8427e",
"currency": "USD",
"date": "2012-09-25 19:40:00",
"date_modified": "2014-05-05 05:05:00",
"date_finished": "2014-06-05 05:05:00",
"bill_first_name": "Adam",
"bill_last_name": "Smith",
"bill_address_1": "Green str. 35",
"bill_address_2": "Red str, 2",
"bill_city": "Chicago",
"bill_postcode": "12345",
"bill_state": "IL",
"bill_country": "US",
"bill_company": "Apple",
"bill_phone": "8 800 5659 6896",
"bill_fax": "545 45878",
"shipp_first_name": "John",
"shipp_last_name": "Smith",
"shipp_address_1": "Green str. 35",
"shipp_address_2": "Green str. 35",
"shipp_city": "Chicago",
"shipp_postcode": "24545",
"shipp_state": "IL",
"shipp_country": "US",
"shipp_company": "Apple",
"shipp_phone": "880086544564",
"shipp_fax": "556868",
"subtotal_price": 563.23,
"tax_price": 5.5,
"total_price": 23.56,
"total_paid": 23.56,
"total_weight": 23,
"prices_inc_tax": true,
"shipping_price": 5.5,
"shipping_tax": 5.5,
"discount": 5.5,
"coupon_discount": 5.5,
"gift_certificate_discount": 5.5,
"order_shipping_method": "UPS Ground",
"carrier_id": "USPS",
"warehouse_id": "1",
"tags": "tag1,tag2",
"comment": "This coole order",
"admin_comment": "Test admin comment",
"admin_private_comment": "Test admin private comment",
"send_notifications": true,
"send_admin_notifications": true,
"external_source": "POS",
"inventory_behaviour": "decrement_ignoring_policy",
"create_invoice": true,
"invoice_admin_comment": "Test admin comment",
"origin": "newsletter",
"fee_price": 5.5,
"shipp_national_address": "RHMA3184",
"shipp_building_number": "3184",
"shipp_additional_number": "8523",
"idempotency_key": "098f6bcd4621d373cade4e832627b4f6",
"order_item": [
{
"order_item_id": "125, where {x} - 1,2,3,... etc",
"order_item_name": "Product 1, where {x} - 1,2,3,... etc",
"order_item_model": "sku_1, where {x} - 1,2,3,... etc",
"order_item_tax": 5.5,
"order_item_tax_class": "standard",
"order_item_parent": 2,
"order_item_parent_option_name": "Internal Memory Storage",
"order_item_allow_refund_items_separately": true,
"order_item_allow_ship_items_separately": true,
"order_item_option": [
{
"order_item_option_name": "Color",
"order_item_option_value": "green",
"order_item_option_price": 2.3
}
],
"order_item_property": [
{
"order_item_property_name": "Engraving",
"order_item_property_value": "lorem ipsum"
}
]
}
]
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.