I’m having trouble integrating my Mercado Livre orders. My ERP information is being sent correctly, and the order in VTEX is being invoiced. However, in Mercado Livre, the status doesn’t change and stays as ‘Waiting for invoice and XML’. I’m not sure if there’s a missing configuration or something incorrect in the current setup. Could anyone help me or has anyone run into this issue before?
I suggest you check in your integration whether the invoice key (invoiceKey) is being sent correctly between your ERP and VTEX. This “waiting for invoice and XML” error may be happening because Mercado Livre is not receiving that information, or only part of it. If that’s the case, your ERP is likely not transmitting that data to VTEX during the billing integration.
I also suggest checking whether the embeddedInvoice field is being sent blank or filled in, as that’s exactly the field that carries the XML data.
I’m flagging this because I’ve been through the same situation myself. In my case, the ERP integration was marking the order as invoiced, but wasn’t sending the invoice key. As a result, the order appeared as invoiced in VTEX, but the error kept showing up on Mercado Livre, asking for the invoice and XML.
Thank you so much for sharing your suggestion, I really appreciate your help!
I confirmed all the data and I believe it’s being sent correctly. Here’s the link with the information being sent:
I ended up opening a support ticket and they suggested making some changes:
We made the adjustments and it still didn’t work. The order shows as invoiced in VTEX but not in MELI.
If they’re reading the XML from that field without replacing the characters, it won’t work. They need to take the XML, replace " with " and then the XML will be fine. This was done to avoid errors when sending the XML, and it was VTEX themselves who said that’s how it should be done.
I forwarded this evidence to the team and I’m waiting to hear back.
If you have any suggestions for a solution or any other points to check, I’d be very grateful. Thanks in advance for the support!
There must be some small detail slipping through that’s causing the issue, it’s always like that
But since you’re already with the support team, you’re in great hands — I’m sure they’ll help you in the best way possible! When you find the solution, don’t forget to share it with us. You never know when we might need it, and you can never have too much knowledge!
Big hug!