Orders (deprecated)
POST https://api.ecartapi.com/api/v2/orders
Create an Order.
Order Status
Value | Description |
---|
open | The order is open |
closed | The order is closed |
cancelled | The order is cancelled |
Payment Status
Value | Description |
---|
pending | The payment confirmation is pending |
authorized | The payment was authorized but not captured yet |
paid | The payment was successfully confirmed and captured |
voided | The payment confirmation is voided |
refunded | The payment was refunded to the customer |
abandoned | The payment confirmation is abandoned |
More information
Request Body
{"order"=>{"currency"=>"ARS", "status"=>{"status"=>"open", "financial"=>"pending"}, "fulfillmentStatus"=>"unpacked", "items"=>[{"variantId"=>"182882341", "quantity"=>"1"}, {"variantId"=>"179941006", "quantity"=>"2"}], "customer"=>{"email"=>"john.doe@example.com", "firstName"=>"John", "lastName"=>"Doe", "phone"=>"+55 11 99999-9999"}, "note"=>"nota", "billingAddress"=>{"firstName"=>"John", "lastName"=>"Doe", "address1"=>"Evergreen Terrace", "number"=>"742", "city"=>"Springfield", "state"=>{"name"=>"Oregon"}, "postalCode"=>"97475", "country"=>{"code"=>"US"}, "phone"=>"5551230413"}, "shippingAddress"=>{"firstName"=>"John", "lastName"=>"Doe", "address1"=>"Evergreen Terrace", "number"=>"742", "city"=>"Springfield", "state"=>{"name"=>"Oregon"}, "postalCode"=>"97475", "country"=>{"code"=>"US"}, "phone"=>"5551230413"}}}
Key | Datatype | Required | Description |
---|
Content-Type | string | | |
Authorization | string | | |