Solicitar Pack

Este método é utilizado para fazer o envio de uma transação na API da Plataforma Data Trust e ativar os 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:

POST https://datatrustapihml.clearsale.com.br/v1/packs/{packName} HTTP/1.1
Content-Type: application/json
Accept:application/json
Authorization: Bearer {Token}
{
    "identifierId": "123abc",
    "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
    },
    "identifierDate": "2020-11-05T17:24:43.727Z",
    "genericFields": null,
    "type": 1
}
POST https://datatrustapi.clearsale.com.br/v1/packs/{packName} HTTP/1.1
Content-Type: application/json
Accept:application/json
Authorization: Bearer {Token}
{
    "identifierId": "123abc",
    "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:43.727Z",
    "genericFields": null,
    "type": 1
}

Response:

HTTP/1.1 201 Ok
Content-Type: application/json; charset=utf-8
{
    "createdAt": "2020-11-17T11:23:37.606Z",
    "status": "completed",
    "transaction": {
        "identifierId": "123abc",
        "id": "string",
        "createdAt": "2020-11-05T17:24:00.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-17T17:24:48.0442542Z",
        "identifierDate": "2020-11-17T17:24:43.727Z",
        "genericFields": null,
        "type": 1
    },
    "score": {
        "results": [
            {
                "value": 7.045464549155753,
                "reason": "Initial",
                "createdAt": "2023-08-17T17:24:51.1470654Z"
            }
        ],
        "moduleStatus": "completed"
    },
    "rating": {
        "results": [
            {
                "value": 3,
                "reason": "Initial",
                "createdAt": "2023-08-17T17:24:52.9956553Z",
                "relatedTo": [
                    "Document",
                    "ZipCode"
                ]
            },
            {
                "value": 3,
                "reason": "Initial",
                "createdAt": "2023-08-17T17:24:52.9956584Z",
                "relatedTo": [
                    "Document",
                    "Email"
                ]
            }
        ],
        "moduleStatus": "completed"
    }
}
HTTP/1.1 201 Ok
Content-Type: application/json; charset=utf-8
{
    "createdAt": "2020-11-17T11:23:37.606Z",
    "status": "processing",
    "transaction": {
        "identifierId": "123abc",
        "id": "string",
        "createdAt": "2020-11-05T17:24:00.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-17T17:24:48.0442542Z",
        "identifierDate": "2020-11-17T17:24:43.727Z",
        "genericFields": null,
        "type": 1
    }
}
Language
Authorization
Bearer
JWT
Click Try It! to start a request and see the response here!