Obtener xml por Cufe
Endpoint
- Método: POST
- Ruta:
/api/ubl2.1/xml/document/7735317bef9d6b648eeb0d0ad56ec5feb63911072947a3d06a894bf6dd66a3c912325660eeb27d7424d23af740432f66 - URL ejemplo:
{{BASE_URL}}/api/ubl2.1/xml/document/7735317bef9d6b648eeb0d0ad56ec5feb63911072947a3d06a894bf6dd66a3c912325660eeb27d7424d23af740432f66
CONSULTA DEL XML DE UN DOCUMENTO POR CUFE
Este endpoint permite consultar y obtener el archivo XML de un documento electrónico registrado en la DIAN, utilizando el CUFE del documento.
URL de uso:
{{BASE_URL}}/api/ubl2.1/xml/document/{cufe}
- CUFE: Identificador único del documento .
Autenticación:
Requiere un token de autorización (API_TOKEN).
Parámetros en la URL:
- CUFE.
Autenticación
- Tipo: Bearer Token
- Header:
Authorization: Bearer {{API_TOKEN}}
Headers
| Key | Value |
|---|---|
Content-Type | application/json |
cache-control | no-cache |
Connection | keep-alive |
Accept-Encoding | gzip, deflate |
accept | application/json |
X-CSRF-TOKEN | `` |
Body
cURL
curl -X POST "{{BASE_URL}}/api/ubl2.1/xml/document/7735317bef9d6b648eeb0d0ad56ec5feb63911072947a3d06a894bf6dd66a3c912325660eeb27d7424d23af740432f66" \
-H "Authorization: Bearer {{API_TOKEN}}" \
-H "Content-Type: application/json" \
-H "cache-control: no-cache" \
-H "Connection: keep-alive" \
-H "Accept-Encoding: gzip, deflate" \
-H "accept: application/json" \
-H "X-CSRF-TOKEN: "