---
updatedAt: 2026-04-05T22:15:29.000Z
agentTools:
  projectIndex: https://developer.alanube.co/llms.txt
---

# Documentos

### Códigos de error relacionados con validación de documentos

| Código   | Clave                                      | Mensaje (EN)                                                                                                             | httpStatusCode |
| -------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -------------- |
| `AP3006` | `BUYER_RNC_OR_FOREIGN_IDENTIFIER_REQUIRED` | Buyer RNC or foreign identifier is required in invoice with more than DOP$250.000                                        | 400            |
| `AP3015` | `CN_TEXT_MODFY_CODE_TYPE_TO_BE_ZERO`       | Credit notes with modification code equal to 2 must have a total amount of 0                                             | 400            |
| `AP3014` | `CREDIT_NOTE_CANCEL_DIFFERENT_AMOUNT`      | The total value of a cancellation note must be the same as the total sum of all transactions of the referenced document. | 400            |
| `AP3010` | `DOCUMENT_IN_PROCESS`                      | Document is in process                                                                                                   | 400            |
| `AP3012` | `DOCUMENT_REFERENCED_DOCUMENT_REJECTED`    | Document referenced is rejected or failed                                                                                | 400            |
| `AP3013` | `DOCUMENT_REFERENCED_INSUFFICIENT_AMOUNT`  | The remainder of the sum of all transactions in the referenced document is less than the value of the credit note        | 400            |
| `AP3011` | `ENCF_IN_PROCESS`                          | ENCF document is in process                                                                                              | 400            |
| `AP3001` | `ENCF_USED`                                | ENCF document was used                                                                                                   | 400            |
| `AP3007` | `EXTRA_INFO_NOT_FOUND`                     | Extra info referencedDocumentNumber or referencedDocumentDate not found                                                  | 400            |
| `AP3016` | `INVOICE_BUYER_REQUIRED`                   | Invoice buyer is required                                                                                                | 400            |
| `AP3005` | `PRIMARY_USED`                             | Primary id was used                                                                                                      | 400            |
| `AP3008` | `SCHEMA_IS_NOT_VALID`                      | XML Schema is not valid                                                                                                  | 400            |
| `AP3004` | `SENDER_RNC_NOT_FOUND`                     | Sender RNC not found                                                                                                     | 400            |
| `AP3003` | `SIGNATURE_NOT_FOUND`                      | Signature not found                                                                                                      | 400            |
| `AP3009` | `TRACK_ID_NOT_FOUND`                       | Track id not found                                                                                                       | 404            |
| `AP3002` | `XML_NOT_FOUND`                            | XML not found                                                                                                            | 400            |