GET
/
checkout
/
cart
/
{cart_id}
/
shipping
/
available
curl --request GET \
  --url https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/shipping/available
[
  {
    "bag_id": 123,
    "shipping_methods": [
      {
        "type": "CALCULATED",
        "Carrier": "OTHER",
        "label": "<string>",
        "price": 123,
        "custom": true,
        "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

default - application/json
bag_id
integer
shipping_methods
object[]