Consultar Pack

Este método é utilizado para buscar informações de uma transação e suas respectivas análises e status dos módulos na API da Plataforma Data Trust. A consulta só retorna os resultados dos módulos presentes no Pack. Veja a documentação que preparamos e saiba como realizar a implementação desse módulo.

Modelo de Chamada

Request:

GET https://datatrustapi.clearsale.com.br/v1/packs/{packName}/{transactionId} HTTP/1.1
Authorization: Bearer {Token}

Response:

HTTP/1.1 200 Ok
Content-Type: application/json; charset=utf-8
{
    "createdAt": "2020-11-17T11:23:37.606Z",
    "status": "completed",
    "transaction": {
        "id": "string",
        "createdAt": "2020-11-05T17:24:43.727Z",
        "documentType": "CPF",
        "document": "12345678912",
        "name": "João Santos Silva",
        "birthdate": "1998-12-30",
        "email": "[email protected]",
        "mothersName": "Maria Eduarda",
        "verifiedEmail": false,
        "sessionId": "SessionID123",
        "address": {
            "zipCode": "00000000",
            "street": "Rua teste",
            "number": "12355",
            "complement": "Esquina 3",
            "district": "B13",
            "city": "São Paulo",
            "state": "SP",
            "country": "Brasil"
        },
        "phone": {
            "countryCode": 55,
            "areaCode": 11,
            "number": 985985875,
            "verified": false
        },
        "referenceDate": "2020-11-05T17:24:43.727Z",
        "identifierDate": "2020-11-05T17:24:44.727Z",
        "genericFields": null,
        "type": 1
    },
    "score": {
        "results": [
            {
                "value": 80.85155243823094,
                "reason": "Initial",
                "createdAt": "2020-11-05T17:24:46.727Z"
            }
        ],
        "status": "completed"
    },
    "rating": {
        "results": [
            {
                "value": 1,
                "reason": "Initial",
                "createdAt": "2020-11-05T17:24:47.727Z",
                "relatedTo": [
                    "Document",
                    "ZipCode"
                ]
            },
            {
                "value": 1,
                "reason": "Initial",
                "createdAt": "2020-11-05T17:24:47.727Z",
                "relatedTo": [
                    "Email",
                    "ZipCode"
                ]
            },
            {
                "value": 1,
                "reason": "Initial",
                "createdAt": "2020-11-05T17:24:47.727Z",
                "relatedTo": [
                    "Document",
                    "Email"
                ]
            }
        ],
        "status": "completed"
    },
    "smsToken": {
        "status": "error",
        "errorMessage": "The request cannot be completed because the transaction {transaction} has no enough data of Phone."
    }
}
Language
Authorization
Bearer
JWT
Click Try It! to start a request and see the response here!