Project

General

Profile

Edit Copy Actions

Feature #10782

open

FedEx/UPS live rates, POS warehouse-based pricing, and automatic warehouse assignment during vendor stock receiving.

Added by Teja Sriram Sangani 10 days ago. Updated 9 days ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
09/08/2026
Due date:
% Done:

90%

Estimated time:
Spent time:

Add

Subtasks


Add

Related issues

Updated by Teja Sriram Sangani 10 days ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 60
  • Fixed guest OTP failure by adding the missing OTP expiry time in sendOtpWithToken.
  • Fixed login OTP failure by restoring the GetcompanyBySlug import in ecom.service.js.
  • Verified that login OTP sending is working successfully.
  • Investigated the FedEx rates issue on the checkout page.
  • Verified FedEx sandbox credentials and OAuth authentication.
  • Identified that checkout uses the /v1/comm/c-add API for shipping rates.
  • Improved the FedEx adapter with US/India state mapping, retry handling, amount parsing, and origin/destination validation.
  • Updated checkout to display the live FedEx rate or a clear fallback reason.
  • Tested India-to-US international FedEx shipping and confirmed that live rates are working.
  • Identified that the product stock was assigned to "main cold storage" with an invalid USA address instead of an India warehouse.
  • Verified valid India warehouses are available in Hyderabad and Vijayawada.
  • Removed the incorrect fallback logic that was replacing the India warehouse origin with the US company address.
  • Pending: Reassign the product stock to a valid India warehouse or update the "main cold storage" address and retest the checkout for live international FedEx rates.

Updated by Teja Sriram Sangani 9 days ago

  • % Done changed from 60 to 90
  • Implemented FedEx live shipping rates using warehouse → customer address.
  • Added FedEx-first shipping flow with Shipping Settings fallback when FedEx fails.
  • Implemented Standard / Express shipping options with ETA and loading skeletons.
  • Applied Ecommerce Shipping Settings margins to live and fallback shipping rates.
  • Fixed country and state mapping issues (United States → US, Florida → FL).
  • Cleaned domestic and international FedEx request payloads.
  • Added retry mechanism for FedEx Rate API with backoff.
  • Prevented unnecessary OAuth retries for false authentication errors.
  • Updated .env loading from project root with override for reliable FedEx credential loading.
  • Verified US → US live FedEx rates when the sandbox responds successfully.
  • Tested example rates of approximately $51.50 Standard and $143 Express for Florida → Buford.
  • Identified intermittent FedEx Sandbox authentication errors despite successful OAuth.
  • Confirmed US → US issues are not related to warehouse or customer address logic.
  • India → US live FedEx rates are still pending and require a FedEx account enabled for shipping from India.
  • Fallback rates remain available at $4.99 Standard / $14.99 Express when FedEx fails.
  • Next step: Restart backend and validate US warehouse → US customer checkout with fedexLive: true and actual FedEx rates.
Edit Copy Actions

Also available in: Atom PDF