Rota usada para verificar o status da execução e o retorno da emissão.
Header | Descrição |
---|---|
Authorization | (obrigatório) é o token de autenticação da API |
workerId | (obrigatório) o ID retornado da chamada de criação |
Exemplo de requisição
GET
https://web.loylegal.com/api/guides/workloads/{workerId}
Exemplo de resposta
{
"workloads": {
"_id": "64c93482bd21d90011405114",
"state": "complete",
"worker": "134715519",
"command": "lawsuitdeliveryguide",
"user": {...
},
"justice": {...
},
"intermediate": {
"guideParams": [
{
"_id": "64c93481172063001c50fde4",
"name": "inputValue",
"value": {
"authorDocument": "65.716.948/0001-12",
"authorName": "BRADESCO SA",
"phone": "(14) 3235-0800",
"address": "Av. Getúlio Vargas, 3-03 - Vila Universitaria, Bauru - SP, 17017-000",
"state": "SP",
"city": "BAURU",
"guideType": "PREPARO DA APELAÇÃO - 230-6",
"numberProcess": "10010328220218260003",
"reasonValue": 42000,
"recipeValue": 1680
},
{
"_id": "64cce793169fc800bbcaae51",
"name": "resultGuides",
"value": {
"inputCode": "858600111020500001851120305901163414051202308043",
"inputCodeType": "LINHA_DIGITAVEL",
"billetType": "ARRECADACAO_ORGAOS_GOVERNAMENTAIS",
"barCode": "85860000712500001851123059011634105120230804",
"digitableLine": "858600000020501401851120305901163414051202308043",
"dueDate": "1997-10-07T20:54:59.000Z",
"value": 250,
"contents": "37ccec1f-2086-48ee-92bd-547303da56a6.pdf"
}
}
}
],
"_id": "64c93481172063001c50fde3",
"justice": "641d9fd1cf8ba9001c4cc146",
"lot": "GLCyQdhQ6",
"ownerId": "64c934805dc598001dc28c3e",
"createdAt": "2023-08-01T16:36:18.203Z",
"updatedAt": "2023-08-01T16:36:18.567Z",
"isWorked": true,
"user": "60d07bc0010a2a3948499dfa"
},
"createdAt": "2023-08-01T16:36:18.570Z",
"job": "134715520",
"updatedAt": "2023-08-02T00:40:29.713Z",
"duration": "68810",
"success": "true",
}
}
Password Protected