Orders (deprecated)

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

Create an Order.

Order Status

ValueDescription
openThe order is open
closedThe order is closed
cancelledThe order is cancelled

Payment Status

ValueDescription
pendingThe payment confirmation is pending
authorizedThe payment was authorized but not captured yet
paidThe payment was successfully confirmed and captured
voidedThe payment confirmation is voided
refundedThe payment was refunded to the customer
abandonedThe 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"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring