Skip to Content
Author's profile photo Renan Correa

Rejection 388 in the test environment

Hello Guys,

The SEFAZ already implemented in the test system the rules of  NT 002 2015 so the new rejections are being issued. Several NF-e’s are being rejected with the error 388 – IPI Tax situation Code not compatible with the IPI Legal Classification code.

When you validate the XML with this rejection in SEFAZ validation tool the following message is displayed ( in portuguese only ):


It happens because SEFAZ is no longer accepting the default value “999” in the tag cENQ for all IPI CST’s.

The rule established in the NT 2015 002 is the following:


It means:

Check compatibility between the IPI CST and the IPI Legal classification code ( cEnq ) according to the rules below:

– CST exemption and incompatible classification Code

( CST = 02 , 52 and cEnq out of range [ 301, 399 ] )

– CST immunity and incompatible classification Code

( CST = 04 , 54 and cEnq out of range [ 001, 099 ] )

– CST suspension and incompatible classification Code

( CST = 05 , 55 and cEnq out of range [ 101, 199 ] )

Due to this rule it’s necessary to configure in the IPI tax law the correct IPI legal classification code. To solve the problem it’s necessary to implement the solution showed in the blog post (only portuguese version for now) NT 002 / 2015 – Alterações no ERP publicadas.


Renan Correa

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.