Retrieve and Apply Shipping Methods
Shipping methods are required for merchants to determine how to deliver the order to the shopper. Shipping methods are chosen by the shopper.
Retrieve a list of all possible shipping methods for a cart. API Reference:
cart_id - the ID of the cart the shipping methods are being retrieved for
This action should only be performed after the items have been added to the cart and a shipping address has been applied as this information may impact the pricing of the shipping methods.
Once the desired shipping method(s) have been selected they can be applied to the cart. API Reference:
cart_id - the ID of the cart the shipping method is being applied to
Each bag in a cart will require its own shipping method. For this reason data is passed in as a collection of shipping methods, one for each bag. If you only have one bag in your cart you will pass in a collection consisting of one shipping method.
Required Body Parameters (for each bag):
bag_id - the ID of the bag this shipping method applies to. shipping_method_id - the ID of the selected shipping method.