The Spanish version is the authoritative reference. View in Spanish
Response DocumentGetEvents
Relationship between request and response
| GlobalDocumentId | CountryDocumentId | Status | Response type | Response message |
|---|---|---|---|---|
| string | string | (empty) | error | "Messages": ["Parametro status no debe ser vacio"] |
| string | string | different from 3 characters | error | "Messages": ["Solo se puede consultar 1 evento de 3 caracteres, ejemplo 030"] |
| null | null | NNN | error | "Messages": ["Debe informar globalDocumentId o countryDocumentId"] |
| string | string | all | ok | "Messages": ["<cac:DocumentResponse/>", "<cac:DocumentResponse/>", ...], "ResponseValue": "Xml ApplicationResponse Base64Bytes" |
| string | null | NNN | ok | Returns information about the queried event. "Messages": ["<cac:DocumentResponse/>", "<cac:DocumentResponse/>", ...], "ResponseValue": "Xml ApplicationResponse Base64Bytes". If the event does not exist: "Messages": ["Sin evento [codigo] registrado"]. |
| null | string | NNN | ok | Returns information about the queried event. "Messages": ["<cac:DocumentResponse/>", "<cac:DocumentResponse/>", ...], "ResponseValue": "Xml ApplicationResponse Base64Bytes". If the event does not exist: "Messages": ["Sin evento [codigo] registrado"]. |
| string | string | NNN | ok | Returns information about the queried event. "Messages": ["<cac:DocumentResponse/>", "<cac:DocumentResponse/>", ...], "ResponseValue": "Xml ApplicationResponse Base64Bytes". If the event does not exist: "Messages": ["Sin evento [codigo] registrado"]. |
JSON definition of the fields that are part of the response
{
"Success": true,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": "CUDE del ApplicationResponse",
"OtherData": {
"Country": "co",
"Certifier": "DIAN",
"AuthorityTimeStamp": "Fecha y hora del ApplicationResponse, formato DD/MM/AAAA HH:mm:ss"
},
"Messages": [
"<cac:DocumentResponse…",
"<cac:DocumentResponse…"
],
"ResponseValue": "ApplicationResponse en base64",
"Code": "código respuesta DIAN ",
"Description": " Procesado Correctamente.",
"ErrorException": null
}Response examples
{
"Success": true,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": "ce0966825a7d2e7fa7bf8db3c9f660397acfb6f57e142ef35d15793f0ae8e4284092dbcec78eccc1ad46b9657bb5dfa7",
"OtherData": {
"Country": "co",
"Certifier": "DIAN",
"AuthorityTimeStamp": "08/08/2022 15:59:51"
},
"Messages": [
"<cac:DocumentResponse xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\">
<cac:Response>
<cbc:ReferenceID xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">1</cbc:ReferenceID>
<cbc:ResponseCode xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">030</cbc:ResponseCode>
…
</cac:DocumentResponse>",
"<cac:DocumentResponse xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\">
<cac:Response>
<cbc:ReferenceID xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">2</cbc:ReferenceID>
<cbc:ResponseCode xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">032</cbc:ResponseCode>
…
</cac:DocumentResponse>",
…
],
"ResponseValue": "PD94bWwgdmVyc2+",
"Code": "00",
"Description": "Procesado Correctamente.",
"ErrorException": null
}