errorPTubl-2.1

PT-R-002:AT document codes required

Portuguese invoices need AT (Autoridade Tributaria) document codes.

We can help you fix this

NEEDS INPUT

Answer a few questions and we will fix it for you.

Simple form - we handle the XML for you
Upload and Answer Questions

Why This Error Matters

AT requires specific document classification codes.

How to Fix It

1

Map document type

FT=Fatura, NC=Nota de Credito, etc.

2

Add AT code

In DocumentTypeCode or extension

Technical Details

XPath: //cbc:InvoiceTypeCode and extensions

Common Causes

  • Using international codes only
  • Missing AT code

Frequently Asked Questions

Portuguese invoices need AT (Autoridade Tributaria) document codes.
Use AT-specific document type codes. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.
Yes, PT-R-002 is a critical error that will cause invoice rejection. It must be fixed before submission.

See Also

Related Errors

Last updated: 19 January 2026

Share this guide: