Set Shipping Methods

Apply shipping methods to a cart given its cart_id.

Since each merchant has different shipping methods, a shipping method that corresponds to each bag will be required to be applied. The bag_id and shipping_method in the body of the request must match a valid shipping method provided by the respective merchant.

This endpoint will always return a priced cart. That is to say the order totals will be calculated.

Set Shipping Methods

post
Path parameters
cart_idinteger · int64Required
Query parameters
price_cartbooleanOptionalDefault: true
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Bodyobject[]

Shipping Method applied to a Bag

bag_idinteger · int64Optional

The ID of the bag the Shipping Method belongs to

shipping_method_idstringOptional

ID of the Shipping Method

shipping_method_labelstringOptional

Label of the Shipping Method

shipping_method_priceinteger · int32Optional

Price of the Shipping Method

custombooleanOptional

Is the shipping method custom. True when the price has been overridden.

Responses
200

success

application/json
post
/checkout/cart/{cart_id}/shipping

Last updated

Was this helpful?