API Shipping Estimate returns wrong info when SC is null
ID: 554948
No Fix
Published on 4/1/2022
•
Last update on 7/1/2024
Summary
The API is returning wrong indexed info when executed with SC as null.
Simulation
=> Execute the API on account, with SC null on API, (this account has all docs with Sales Policy and the correct return is 200 ok empty.) "https://.vtexcommercestable.com.br/api/logistics/pvt/shipping/estimate"
=> When you remove the Sales Policy from any Dock and execute the same API you will see returns from shipping estimate for that condition because there is now Dock whitout SC.
=> But when you reinsert the Sales Policy on Dock and execute again the API, still shows the result. Does not return to original behavior.
Workaround
The workaround is send the API wiith SC defined.