FAQ: Corporate orders being processed as individual orders — how to check?

This topic aims to foster knowledge in our community, mainly regarding obtaining order information in OMS and analyzing customer information in MasterData, which can help understand why orders were classified as B2C instead of B2B.

In these cases, the first thing to check is how the user who placed the order is registered in MasterData. This is because what often happens is that, even though the user in question has a registered CNPJ, their profile doesn’t have all the fields required for it to be recognized as a company.

Therefore, for checkout to correctly pull any user’s information as a Legal Entity, the MasterData registration must be set up as follows:

  • document: null
  • documentType: cnpj
  • isCorporate: true

It’s also important to check whether the fields below are correct. To do this, you can use the Get Document API

  • corporateDocument with the CNPJ value
  • corporateName and tradeName with the company’s legal name
  • corportatePhone with the business phone number

If you still have any questions about this topic, feel free to ask here! :smiling_face:

Karina Mota
Partner Field Software Engineer | VTEX

1 Like