GET
/
checkout
/
cart
/
{cart_id}
/
shipping
/
available
Header
Path
curl --request GET \
  --url https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/shipping/available
[
  {
    "bag_id": 123,
    "shipping_methods": [
      {
        "type": "variable",
        "Carrier": "ups",
        "label": "<string>",
        "price": 123,
        "min_subtotal": 123,
        "max_subtotal": 123,
        "min_weight": 123,
        "max_weight": 123,
        "external_id": "<string>",
        "id": 123,
        "shipping_method_id": "<string>",
        "bag_id": 123,
        "merchant_id": 123,
        "tracking_number": "<string>"
      }
    ]
  }
]

Note: For more information on this endpoint go to the API Reference

Once the Shipping and Billing Address are set, then you can get the shipping methods available for a cart (and bags within the cart).

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

cart_id
integer
required

Response

200 - application/json
bag_id
integer
shipping_methods
object[]