{"section":"known-issues","requestedLocale":"en","requestedSlug":"storefront-permissions-app-sets-documenttype-as-cpf","locale":"en","slug":"storefront-permissions-app-sets-documenttype-as-cpf","path":"docs/en/known-issues/B2B/storefront-permissions-app-sets-documenttype-as-cpf.md","branch":"main","content":"## Summary\n\n\nThe storefront permissions app always sets the field \"clientProfileData.documentType\" as \"cpf\" in the orderForm. This may cause the transaction to be denied by the provider.\n\n\n##\n\n## Simulation\n\n\n\n- Install the B2B Suite;\n- Configure an organization;\n- Access the website and place an order.\n\n\n##\n\n## Workaround\n\n\nUse the snippet below to replace the \"documentType\" from your country in the orderForm\n\n    vtexjs.checkout .getOrderForm() .then(function(orderForm) \\{ var clientProfileData = orderForm.clientProfileData clientProfileData.documentType = 'add here the key for' return vtexjs.checkout.sendAttachment( \"clientProfileData\", clientProfileData ) \\}) .done(function(orderForm)\\{\\})"}