GET GetDocumentWithPci
Obtener archivo PDF, XML o Response DIAN para un documento especifico.
Request Information
URI Parameters
None.
Body Parameters
Tipo, prefijo, y número de documento.
DocumentRequestWithPciName | Description | Type | Additional information |
---|---|---|---|
pci |
PCI del documento |
string |
Required |
documentPrefixAndNumber |
Prefijo y número del documento. Ej: SETP123 Se ignorarán los campos documentPrefix y documentNumber |
string |
Required |
documentType |
Tipo de documento. 1. Factura, 2. Nota Crédito, 3. Nota Débito, 4 Documento soporte, 5 Nota de ajuste. |
integer |
Required Range: inclusive between 1 and 5 |
documentPrefix |
Prefijo del documento. Ej: SETP |
string |
String length: inclusive between 0 and 15 |
fileTypeDocument |
Tipo de archivo a obtener. PDF, XML, AppResponse |
string |
Required String length: inclusive between 0 and 20 |
documentNumber |
Número de documento. Ej 9900000048 |
string |
String length: inclusive between 0 and 30 |
Request Formats
application/json, text/json
{ "pci": "sample string 1", "documentPrefixAndNumber": "sample string 2", "documentType": 3, "documentPrefix": "sample string 4", "fileTypeDocument": "sample string 5", "documentNumber": "sample string 6" }
application/xml, text/xml
<DocumentRequestWithPci xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.File"> <documentNumber xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">sample string 6</documentNumber> <documentPrefix xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">sample string 4</documentPrefix> <documentPrefixAndNumber xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">sample string 2</documentPrefixAndNumber> <documentType xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">3</documentType> <fileTypeDocument xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">sample string 5</fileTypeDocument> <pci>sample string 1</pci> </DocumentRequestWithPci>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Documento en base64
stringResponse Formats
application/json, text/json
"sample string 1"
application/xml, text/xml
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>