Order

PUT https://api.ecartapi.com/api/v2/orders/{{id}}

Updates an Order.

The body should only contain the fields that need to be updated.

The fields that are omitted will not be changed.

To remove a product from an order, set that product’s quantity to 0.

Important information:

  • The order's Identifier must exist.

Request payload options.

KeyValues
Statuspending,
in process,
paid,
cancelled,
refunded

Order Status Descriptions

THE STATUSES LISTED IN THE TABLE DO NOT REPRESENT ECARTAPI STATUSES THIS IS A DETAILED LIST OF BIGCOMMERCE STATUSES FOR REFERENCE.

STATUS IDNAMEDESCRIPTION
0IncompleteAn incomplete order happens when a shopper reached the payment page, but did not complete the transaction.
1PendingCustomer started the checkout process, but did not complete it.
2ShippedOrder has been shipped, but receipt has not been confirmed; seller has used the Ship Items action.
3Partially ShippedOnly some items in the order have been shipped, due to some products being pre-order only or other reasons.
4RefundedSeller has used the Refund action.
5CancelledSeller has cancelled an order, due to a stock inconsistency or other reasons.
6DeclinedSeller has marked the order as declined for lack of manual payment, or other reasons.
7Awaiting PaymentCustomer has completed checkout process, but payment has yet to be confirmed.
8Awaiting PickupOrder has been pulled, and is awaiting customer pickup from a seller-specified location.
9Awaiting ShipmentOrder has been pulled and packaged, and is awaiting collection from a shipping provider.
10CompletedClient has paid for their digital product and their file(s) are available for download.
11Awaiting FulfillmentCustomer has completed the checkout process and payment has been confirmed.
12Manual Verification RequiredOrder is on hold while some aspect needs to be manually confirmed.
13DisputedCustomer has initiated a dispute resolution process for the PayPal transaction that paid for the order.
14Partially RefundedSeller has partially refunded the order.

More information about the ecommerce's resource.

Request Body

{"order"=>{"status"=>{"id"=>"11", "status"=>"paid"}, "note"=>"This is a test note", "customer"=>{"id"=>"2"}, "billingAddress"=>{"firstName"=>"Jane", "lastName"=>"Doe", "address1"=>"123 Main Street", "address2"=>"Testing Av", "city"=>"Austin", "state"=>{"name"=>"Texas"}, "postalCode"=>"78751", "country"=>{"name"=>"United States", "code"=>"US"}, "email"=>"janedoe@email.com"}, "shippingAddress"=>{"firstName"=>"Trish", "lastName"=>"Test", "company"=>"Acme Pty Ltd", "address1"=>"666 Sussex St", "address2"=>"Testing av", "city"=>"Austin", "state"=>{"name"=>"Texas"}, "postalCode"=>"78751", "country"=>{"name"=>"United States", "code"=>"US"}, "email"=>"elsie@example.com"}, "items"=>[{"name"=>"[Sample] Fog Linen Chambray Towel - Beige Stripe", "quantity"=>"1", "price"=>"50.5", "tax"=>"0.50"}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"success":true,"order":{"id":"103","number":"103","marketPlaceId":null,"groupId":null,"name":null,"email":"janedoe@email.com","fulfillmentStatus":{"id":null,"status":null,"ecartapi":"unfulfilled","ecartapiId":"3","partiallAvailable":"true"},"currency":"MXN","totals":{"subtotal":"275.50","total":"275.50","tax":"0.50","discount":"0.00","weight":null,"shipping":null},"taxesIncluded":"true","taxLines":[],"units":{"weight":null},"status":{"id":null,"status":"Incomplete","financial":null,"ecartapi":"pending","ecartapiId":"2"},"locationId":null,"reference":null,"tags":[],"payment":{"method":"Manual","status":"pending"},"customer":{"id":"2"},"billingAddress":{"id":null,"firstName":"Jane","lastName":"Doe","dni":null,"address1":"123 Main Street","address2":"Testing Av","address3":null,"country":{"code":"US","name":"United States","codeIso2":"US","codeIso3":"USA"},"state":{"code":"TX","name":"Texas","codeIso2":null,"codeIso3":null},"city":"Austin","postalCode":"78751","phone":"4921347491","company":null,"references":null},"shippingMethod":null,"shippingLabel":null,"shippingAddress":{},"items":[],"packages":[],"meta":null,"dates":{"canceledAt":null,"closedAt":null,"createdAt":"2021-12-10T22:56:02.000Z","updatedAt":"2021-12-10T22:57:06.000Z","paidAt":null},"cancelReason":null,"note":null,"locations":[],"checkoutId":null,"partialFulfillment":null}}