Criar uma nova transação

Este método é utilizado para criar uma transação na API da Plataforma Data Trust.

Modelo de Chamada

Request:

Content-Type: application/json
Accept:application/json
Authorization: Bearer {Token}
{
    "identifierId": "123abc",
    "channelId": 1234,
    "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:

Requisição realizada com sucesso

{
    "id": "string",// --------> TRANSACTION ID
    "createdAt": "2020-11-05T17:24:43.727Z",
    "identifierId": "123abc", 
    "channelId": 1234,
    "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
}

Campos Genéricos (genericFields)

Request

Content-Type: application/json
Accept:application/json
Authorization: Bearer {Token}
{
    "documentType": "CPF",
    "document": "12345678912",
    "genericFields":{
        "ValorContratado":"R$ 15.50"
    }
}

Response:

Requisição realizada com sucesso

HTTP/1.1 201 Ok
Content-Type: application/json; charset=utf-8
{
    "id": "44e4948856104b5a9fcf5af9aea8b526",
    "createdAt": "2023-08-01T20:48:46.4112827Z",
    "documentType": "cpf",
    "document": "12345678912",
    "verifiedEmail": false,
    "referenceDate": "2023-08-01T20:48:46.4048581Z",
    "type": 1,
    "genericFields": {
        "ValorContratado":"R$ 15.50"
    }
}
Language
Authorization
Bearer
JWT
Click Try It! to start a request and see the response here!