Popular

↑↓ move ↵ open All results →

Storefront API · Shipping

List shipping options

GEThttps://{store}/api/v1/cart/shipping-options

Shipping methods available for the cart’s shipping address, with their price for this cart.

paid_by tells who pays: store — the store pays and price is always 0; customer — the buyer pays price, or the carrier’s rates on delivery when price is 0.

Cart token from POST /carts: X-Cart-Token: {token}.

Responses

200The options.
{
    "data": [
        {
            "identifier": "NOVA_POSHTA",
            "name": "Нова пошта",
            "description": "Відділення або поштомат",
            "price": 0,
            "currency": "UAH",
            "paid_by": "customer"
        },
        {
            "identifier": "PICKUP",
            "name": "Самовивіз",
            "description": "Київ, вул. Січових Стрільців, 21",
            "price": 0,
            "currency": "UAH",
            "paid_by": "store"
        }
    ]
}
401No X-Cart-Token, an expired token, or a cart that is already ordered.
{
    "message": "A valid X-Cart-Token header is required.",
    "errors": {
        "cart_token": [
            "Кошик не знайдено, строк доступу минув або його вже оформлено."
        ]
    }
}
429Too many requests (cart creation 20/min per IP, cart calls 120/min, checkout 10/min).
{
    "message": "Too Many Attempts."
}