Checkout - Shipping
Get Available Shipping Methods
GET
/v1/checkout/cart/{cart_id}/shipping/available
X-Violet-Token
X-Violet-App-Secret
X-Violet-App-Id
curl --request GET \
--url https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/shipping/available
[
{
"bag_id": "integer",
"shipping_methods": [
{
"Carrier": "ups",
"bag_id": "integer",
"external_id": "string",
"id": "integer",
"label": "string",
"max_subtotal": "integer",
"max_weight": "number",
"merchant_id": "integer",
"min_subtotal": "integer",
"min_weight": "number",
"price": "integer",
"shipping_method_id": "string",
"tracking_number": "string",
"type": "variable"
}
]
}
]
Retrieve all available shipping methods for a cart given its cart_id
.
Since each merchant has different shipping methods, the response for this call provides shipping methods for each merchant that is a part of this cart.
Headers
X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer
Path Parameters
cart_idrequired
integer
Response
200 - application/json
bag_id
integer
shipping_methods
object[]
curl --request GET \
--url https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/shipping/available
[
{
"bag_id": "integer",
"shipping_methods": [
{
"Carrier": "ups",
"bag_id": "integer",
"external_id": "string",
"id": "integer",
"label": "string",
"max_subtotal": "integer",
"max_weight": "number",
"merchant_id": "integer",
"min_subtotal": "integer",
"min_weight": "number",
"price": "integer",
"shipping_method_id": "string",
"tracking_number": "string",
"type": "variable"
}
]
}
]