Hey! These docs are for version 1.1, which is no longer officially supported. Click here for the latest version, 1.2!

Sometimes an e-commerce system will mark an order as shipped outside of the ShippingEasy system. Therefore an API call is required to remove this order from ShippingEasy so that it is not double-shipped.

Here's an example using your store's API key and the e-commerce order identifier used to cancel the order in ShippingEasy:

ShippingEasy::Resources::Cancellation.create(store_api_key: "d8821dde1d32f408def40b77273d5c11", external_order_identifier: "ABC123")

If successful the call will return a hash with the ShippingEasy order ID, as well as the external order identifier originally supplied in your call.

{ "order" => { "id" => "27654", "external_order_identifier" => "ABC123" } }