Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Adress without country disrupting orderForm changes
Adress without country disrupting orderForm changes
ID: 579814
No Fix
Published on 5/16/2022
Last update on 2/16/2024

Summary

If an incomplete address without the "country" information is inserted into an orderForm, items can't be added to it.

It happens because the shipping calculation depends on it, but while there are no items on the cart, this process isn't triggered, allowing invalid addresses to be registered.

It happens mostly through direct API usage. In internal logs, the exception may be found as "The Country field is required", under the 400 status code.

Simulation

  • to create an orderForm (without items yet)
  • to add an address through the SendAttachment API (shippingData), without the country property
  • to try adding an item; it'll generate a generic exception

Workaround

It's required to ensure that every address contains the "country" information since the frontend implementation.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback