It seems that the maximum size is 50 characters.
A simple way could be to send the ID instead of the code.
We can imagine other solutions but we have to think about it carefully.
When we want to export the order we have 2 types of errors :
Bad Request: A product with the provided variant ID does not exist in the account for this list.
Uri: /ecommerce/stores/mystore/orders
Resource Not Found: The requested resource could not be found.
Uri: /ecommerce/stores/mystore/products
We have an issue with order synchronization because of long products and variants code.
Test with :
product-test-maxime-with-long-code-it-s-long-code-yes-long
product-test-maxime-with-long-code-it-s-long-code-yes-long-variant-1
Result :
It seems that the maximum size is 50 characters. A simple way could be to send the ID instead of the code. We can imagine other solutions but we have to think about it carefully.
When we want to export the order we have 2 types of errors :