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: nulldocumentType: cnpjisCorporate: true
It’s also important to check whether the fields below are correct. To do this, you can use the Get Document API
corporateDocumentwith the CNPJ valuecorporateNameandtradeNamewith the company’s legal namecorportatePhonewith the business phone number
If you still have any questions about this topic, feel free to ask here! ![]()
Karina Mota
Partner Field Software Engineer | VTEX