Shipping methods are not showing at checkout. estimate shipping methods giving 404

Shipping methods are not showing at checkout. estimate shipping methods giving 404

August 18, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Shipping methods are not showing at checkout. estimate shipping methods giving 404

Solving Shipping Method 404 Errors in Magento 2

When you encounter shipping method errors during checkout in your Magento 2 store, it can be frustrating for both customers and administrators alike. This post will guide you through troubleshooting the common “Shipping methods are not showing at checkout” issue when the API endpoint https://base-url/rest/V1/carts/mine/estimate-shipping-methods returns a 404 error.

Understanding the Shipping Method Estimation Process

Before diving into the solution, let’s understand how Magento estimates shipping methods. During the checkout process, Magento sends an HTTP request to this API endpoint with cart data to retrieve available shipping options and their respective rates.

The response from this endpoint is critical for displaying shipping methods on the checkout page. If it fails or returns a 404 error, you won’t see any shipping options, leading to an incomplete checkout experience.

Troubleshooting Step-by-Step

1. Verify API Endpoint Availability via Swagger UI

First, enable the Swagger UI in your Magento backend by following these steps:

  • Navigate to Stores > Configuration > Advanced.
  • Expand the System section and click on Swagger.
  • Set the Enable API Documentation field to “Yes”.
  • Save the configuration.

Accessing https://base-url/swagger will let you test the availability of the estimate-shipping-methods endpoint. Ensure it appears in the list of available APIs.

2. Create a Custom API Test

If Swagger UI confirms that the endpoint exists but still returns a 404 error when accessed, create a custom API to further diagnose the issue:

<?php
$cartId = 'Your_Cart_ID'; // Replace with your actual cart ID
$url = "https://base-url/rest/V1/carts/$cartId/estimate-shipping-methods";

$data = [
    'quote_id' => $cartId,
    'address'  => [
        'extension_attributes' => [
            'shipping_fee' => 0
        ]
    ],
];

$headers = [
    'Content-Type: application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

curl_close($ch);

if ($httpCode != 200) {
    // Handle error
}

Replace 'Your_Cart_ID' with the actual cart ID of the checkout session experiencing issues. This script simulates a request to the estimate-shipping-methods endpoint and checks the HTTP response code.

Common Causes of Shipping Method 404 Errors

1. Incorrect Cart Data Format

Ensure that the cart data you are passing in the API request matches Magento’s expected format. Double-check that your JSON payload contains the required fields for quote_id, address, and any other necessary parameters.

2. Permissions Issues

Verify that the user performing the checkout has adequate permissions to access the shipping methods for their chosen address.

Best Practices for Shipping Method Troubleshooting

  1. Always check your Magento log files, available at var/log/system.log or via Laravel Company’s comprehensive logging guide.

  2. Ensure that your extensions and modules are up-to-date and compatible with your current Magento version.

  3. Regularly update your Magento installation to benefit from security patches and performance improvements.

Conclusion

When facing shipping method errors during checkout in Magento 2, carefully follow the troubleshooting steps outlined above. By verifying API endpoint availability through Swagger UI and creating custom API tests, you can isolate the root cause of the issue.

Remember that incorrect cart data format or permissions issues are common culprits behind 404 errors when estimating shipping methods. Always cross-verify your configurations against Magento’s official documentation for accurate results.

At Laravel Company, we specialize in providing expert Magento development services and support to help you overcome technical challenges like these. Contact us today to discuss your Magento 2 needs!

Magento 2 Checkout API Admin

Our network