Custom Shipping Code
How to add, modify, or remove shipping rates with JavaScript in the Foxy admin.
Custom Shipping Code Overview
How custom shipping code works: JavaScript that runs server-side to add, modify, or remove shipping rates, with access to the rates and cart objects and built-in Node modules.
Add Custom Shipping Code
How to add custom shipping code to your store from the admin, set up rate tampering protection, and test that your custom rates are working.
Custom Shipping Code API Reference
Complete reference for the rates JavaScript API available in Custom Shipping Code feature of the Foxy Admin.
Custom Shipping Code Examples
Ready-to-use JavaScript snippets for custom shipping code — free shipping thresholds, tiered and weight-based rates, coupon logic, category surcharges, distance-based delivery, and more.
Get Live Shipping Rates with EasyPost
Connect your EasyPost account to your Foxy store with the Custom Shipping Code feature to fetch live multi-carrier rates at checkout.
Get Live Shipping Rates with Postmen
Connect your Postmen account to your Foxy store with the Custom Shipping Code feature to fetch live rates from Postmen's supported carriers at checkout.
Get Live Shipping Rates with Shippo
Connect your Shippo account to your Foxy store with the Custom Shipping Code feature to fetch live rates from Shippo's supported carriers at checkout.
Passing Custom Fields to Shipping
Three ways to send extra data to a custom shipping endpoint or custom shipping code — session attributes, checkout fields, and JavaScript events — for things like delivery preferences or pickup locations.