Consultar estado de nómina en la DIAN

Url GET

/service/payrolls/:payrollId

Headers

Content-Type: application/json
Accept: application/json
Authotization: Bearer :token

Nota

El texto :token debe ser reemplazado por el token generado en el SSO.

Parameters

payrollId *

Type: string

Id respondido por el servio al hacer el envío del documento electronico.

Responses

Response 200 OK

Si el correo se envió correctamente.

 1{
 2        "data": {
 3                "id": 1000,
 4                "payroll_id": null,
 5                "testing_set": "d4efd9ac-4a40-4e69-99a4-0b78b53ea973",
 6                "signed_xml_key": "aae91288-6e07-4c81-b5ea-678cd9a3e386",
 7                "generator_id": "0000366",
 8                "signed_xml": "nie09012851792100000012.xml",
 9                "consecutive_id": 366,
10                "type": "Habilitación",
11                "xml_type": 102,
12                "status": 2,
13                "created_at": "2021-09-24T16:34:19.000000Z",
14                "updated_at": "2021-09-24T16:50:28.000000Z"
15        },
16        "dianResponse": {
17                "responseDian": {
18                        "Envelope": {
19                                "Header": {
20                                        "Action": {
21                                                "_attributes": {
22                                                        "mustUnderstand": "1"
23                                                },
24                                                "_value": "http://wcf.dian.colombia/IWcfDianCustomerServices/GetStatusZipResponse"
25                                        },
26                                        "Security": {
27                                                "_attributes": {
28                                                        "mustUnderstand": "1"
29                                                },
30                                                "Timestamp": {
31                                                        "_attributes": {
32                                                                "Id": "_0"
33                                                        },
34                                                        "Created": "2021-09-24T16:50:28.695Z",
35                                                        "Expires": "2021-09-24T16:55:28.695Z"
36                                                }
37                                        }
38                                },
39                                "Body": {
40                                        "GetStatusZipResponse": {
41                                                "GetStatusZipResult": {
42                                                        "DianResponse": {
43                                                                "ErrorMessage": {
44                                                                        "_attributes": {
45                                                                                "nil": "true"
46                                                                        }
47                                                                },
48                                                                "IsValid": "false",
49                                                                "StatusCode": "2",
50                                                                "StatusDescription": "Set de prueba con identificador XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX se encuentra Aceptado.",
51                                                                "StatusMessage": {
52                                                                        "_attributes": {
53                                                                                "nil": "true"
54                                                                        }
55                                                                },
56                                                                "XmlBase64Bytes": {
57                                                                        "_attributes": {
58                                                                                "nil": "true"
59                                                                        }
60                                                                },
61                                                                "XmlBytes": {
62                                                                        "_attributes": {
63                                                                                "nil": "true"
64                                                                        }
65                                                                },
66                                                                "XmlDocumentKey": {
67                                                                        "_attributes": {
68                                                                                "nil": "true"
69                                                                        }
70                                                                },
71                                                                "XmlFileName": {
72                                                                        "_attributes": {
73                                                                                "nil": "true"
74                                                                        }
75                                                                }
76                                                        }
77                                                }
78                                        }
79                                }
80                        }
81                },
82                "isValid": false,
83                "applicationResponseBytes": null,
84                "attachedDocumentBytes": null
85        }
86}