Creates order

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

Request Body

{"order"=>{"id"=>"123", "orderNumber"=>"123", "customerOrderNumber"=>"1234", "externalCreatedAt"=>"2022-05-17T23:05:38.856Z", "externalUpdatedAt"=>"2022-05-17T23:05:38.856Z", "soldAt"=>"2022-05-17T23:05:38.856Z", "currencyCode"=>"MXN", "comment"=>"Its a test order with EcartApi", "total"=>"10000", "externalContent"=>"{}", "client"=>{"id"=>"8649040d-923b-44d4-9d18-3325212d8ef3", "taxId"=>"999999999", "name"=>"Enrique", "lastName"=>"Carreon", "contactName"=>"Enrique Carreon", "activity"=>"Desarrollador", "birthday"=>"1990-04-12T19:20:30.45+01:00", "email"=>"enrique.carreon@ecart.com", "phoneNumber"=>"8181818181", "type"=>"person", "externalContent"=>"{}"}, "checkoutItems"=>[{"sku"=>"1818061798922", "quantity"=>"1", "unitPrice"=>"10000"}], "deliveryOrders"=>[{"id"=>"123", "externalContent"=>"{}", "createdAt"=>"2022-05-17T23:05:38.856Z", "updatedAt"=>"2022-05-17T23:05:38.856Z", "cost"=>"0", "estimatedDeliveryDateFrom"=>"2022-08-17T23:05:38.856Z", "estimatedDeliveryDateTo"=>"2022-12-17T23:05:38.856Z", "effectiveDeliveryClosingDate"=>"2022-13-17T23:05:38.856Z", "promisedDeliveryDate"=>"2022-12-17T23:05:38.856Z", "handlingDateLimit"=>"2022-08-17T23:05:38.856Z", "deliveryOrderStatus"=>"pending", "shippingAddress"=>{"address_1"=>"Belisario Dominguez 2470", "address_2"=>"Monterrey N.L. 64000", "neighborhood"=>"Obispado", "street"=>"Belisario Dominguez", "country"=>"Mexico", "state"=>"Nuevo Leon", "city"=>"Escobedo", "zipCode"=>"64000", "shippingAddressReceiver"=>{"name"=>"Enrique", "lastName"=>"Carreon", "contactName"=>"Enrique"}}, "deliveryOrderItems"=>{"sku"=>"1818061798922", "quantity"=>"1", "unitPrice"=>"10000"}}], "pickUpOrders"=>[{"id"=>"123", "externalContent"=>"{}", "createdAt"=>"2022-05-17T23:05:38.856Z", "updatedAt"=>"2022-05-17T23:05:38.856Z", "cost"=>"0", "estimatedPickUpDateFrom"=>"2022-08-17T23:05:38.856Z", "estimatedPickUpDateTo"=>"2022-12-17T23:05:38.856Z", "effectivePickUpClosingDate"=>"2022-13-17T23:05:38.856Z", "pickUpOrderStatus"=>"pending", "warehouseId"=>"a9be4c9a-f9b1-4f93-a971-f40d080d677e", "pickUpOrderPicker"=>{"name"=>"Enrique", "lastName"=>"Carreon", "contactName"=>"Enrique"}, "pickUpOrderItems"=>{"sku"=>"1818061798922", "quantity"=>"1", "unitPrice"=>"10000"}}], "checkoutPayments"=>[{"id"=>"12345", "transactionId"=>"6789", "code"=>"98765", "paymentStatus"=>"pending", "verificationStatus"=>"pending", "paymentMethodCode"=>"_payment_methods_cash"}]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring