Ir para o conteúdo

Exemplo de Json de retorno

Retorna o token de autorização de acesso por parte do Autor Pedido de Dados.

Json de retorno completo

    {
        "contratante": {
            "numero": "99999999999999",
            "tipo": 2
        },
        "autorPedidoDados": {
            "numero": "00000000000000",
            "tipo": 2
        },
        "contribuinte": {
            "numero": "11111111111111",
            "tipo": 2
        },
        "pedidoDados": {
            "idSistema": "AUTENTICAPROCURADOR",
            "idServico": "ENVIOXMLASSINADO81",
            "versaoSistema": "1.0",
            "dados": "{\"xml\": \"PHRlcm1vRGVBdXRvcml6YWNhbz48ZGFkb3M+PHNpc3RlbWEgaWQ9IkFQSSBJbnRlZ3JhIENvbnRhZG9yIiAvPjx0ZXJtbyB0ZXh0bz0iQXV0b3Jpem8gYSBlbXByZXNhIENPTlRSQVRBTlRFLCBpZGVudGlmaWNhZGEgbmVzdGUgdGVybW8gZGUgYXV0b3JpemHDp8OjbyBjb21vIERFU1RJTkFUw4FSSU8sIGEgZXhlY3V0YXIgYXMgcmVxdWlzacOnw7VlcyBkb3Mgc2VydmnDp29zIHdlYiBkaXNwb25pYmlsaXphZG9zIHBlbGEgQVBJIElOVEVHUkEgQ09OVEFET1IsIG9uZGUgdGVyZWkgbyBwYXBlbCBkZSBBVVRPUiBQRURJRE8gREUgREFET1Mgbm8gY29ycG8gZGEgbWVuc2FnZW0gZW52aWFkYSBuYSByZXF1aXNpw6fDo28gZG8gc2VydmnDp28gd2ViLiBFc3NlIHRlcm1vIGRlIGF1dG9yaXphw6fDo28gZXN0w6EgYXNzaW5hZG8gZGlnaXRhbG1lbnRlIGNvbSBvIGNlcnRpZmljYWRvIGRpZ2l0YWwgZG8gUFJPQ1VSQURPUiBvdSBPVVRPUkdBRE8gRE8gQ09OVFJJQlVJTlRFIHJlc3BvbnPDoXZlbCwgaWRlbnRpZmljYWRvIGNvbW8gQVVUT1IgRE8gUEVESURPIERFIERBRE9TLiIgLz48YXZpc29MZWdhbCB0ZXh0bz0iTyBhY2Vzc28gYSBlc3RhcyBpbmZ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bi0yMDAxMDMxNSIgLz48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZW5jI3NoYTI1NiIgLz48RGlnZXN0VmFsdWU+QUJDLi5zWEE9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPlZ2ZksuLkhIaD09PC9TaWduYXR1cmVWYWx1ZT48S2V5SW5mbz48WDUwOURhdGE+PFg1MDlDZXJ0aWZpY2F0ZT5BQkNBd0lCLi4uaGhoPT08L1g1MDlDZXJ0aWZpY2F0ZT48L1g1MDlEYXRhPjwvS2V5SW5mbz48L1NpZ25hdHVyZT48L3Rlcm1vRGVBdXRvcml6YWNhbz4=\"}"
        },
        "status": 200,
        "dados": "{\"autenticar_procurador_token\":\"b06feea3-1ca8-49f4-bdb4-211ab006cb92\",\"data_hora_expiracao\":\"2022-08-12T16:38:02.4163946-03:00\"}",
        "mensagens": [
            {
                "codigo": "200",
                "texto": "Sucesso na execução."
            }
        ]
    }

Json do campo "dados"

Nesse exemplo o json está formatado e sem o scaped string. O exemplo completo é demonstrado acima.

    {
        "autenticar_procurador_token": "b06feea3-1ca8-49f4-bdb4-211ab006cb92",
        "data_hora_expiracao": "2022-08-12T16:38:02.4163946-03:00"
    }