Orders

POST https://api.ecartapi.com/api/v2/orders

Request Body

{"order"=>{"totals"=>{"subtotal"=>"90", "total"=>"100", "tax"=>"10", "discount"=>"0", "weight"=>"300"}, "currency"=>"MXN", "taxesIncluded"=>"false", "status"=>{"status"=>"pending"}, "tags"=>["imported"], "billingAddress"=>{"firstName"=>"Alex", "lastName"=>"de la Cruz", "address1"=>"123 Fake Street", "country"=>{"code"=>"CA", "name"=>"Canada"}, "state"=>{"code"=>"ON", "name"=>"Ontario"}, "city"=>"Fakecity", "postalCode"=>"K2P 1L4", "phone"=>"555-555-5555", "company"=>"envia.com"}, "shippingAddress"=>{"firstName"=>"John", "lastName"=>"Silver", "address1"=>"123 Fake Street", "country"=>{"code"=>"CA", "name"=>"Canada"}, "state"=>{"code"=>"ON", "name"=>"Ontario"}, "city"=>"Fakecity", "postalCode"=>"K2P 1L4", "phone"=>"555-555-5555", "company"=>"envia.com"}, "items"=>[{"variantId"=>"28921600409674", "quantity"=>"1", "discount"=>"0", "taxable"=>"false"}, {"variantId"=>"28921600409674", "quantity"=>"2", "discount"=>"0", "taxable"=>"false"}]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring