less than a minute read • Updated 8 minutes ago

Add a Custom Shipping Endpoint

Step by step: point your store's shipping requests to your own endpoint.


Overview

This article walks through adding a custom shipping endpoint from the Foxy admin. For how the endpoint works, the request payload, and the response format, see Custom Shipping Endpoint.


Before you start

  • Your endpoint must be reachable at an HTTPS URL and return rates in the JSON format Foxy expects. See the Custom Shipping Endpoint page for the request and response formats.

  • The categories that should use the endpoint must have their delivery type set to "Shipped using live shipping rates" with a default weight configured.


Steps

  1. 1

    In the Foxy admin, go to Settings and open the Shipping page.

  2. 2

    In the Shipping methods list, click Custom Shipping Endpoint (With Native Rates). It shows as "Inactive" until configured.

  3. 3

    A New shipping method panel opens with an Endpoint URL field.

  4. 4

    Enter your endpoint's HTTPS URL (for example, https://example.com/rates).

  5. 5

    Click Create.

  6. 6

    Click Save (top right) to save the Shipping page.


Test it

Add a product from an eligible category to your cart and proceed to checkout with a shipping address. Foxy will POST the cart to your endpoint and display the rates it returns. If rates don't appear:

  • Confirm the category delivery type is "Shipped using live shipping rates" with a default weight.

  • Confirm your endpoint returns valid JSON with at least one rate (or an error). Any non JSON output will cause rates to fail.

  • Check that service_id values are 10000 or higher and unique.

See the common errors section in the Custom Shipping Endpoint Overview for more troubleshooting.


Need Help?

Did this article answer your questions? Need help with anything? Please click below to contact us.