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": null,
    "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
    },
    "card": {
        "bin": "123456",
        "last4": "1234",
        "ownerName": "João Santos Silva",
        "ownerDocument": "12345678912"
    },
    "secondaryDocumentType": "CNPJ",
    "secondaryDocument": "12345678901235",
    "criterion": 1,
    "identifierDate": "2020-11-05T17:24:43.727Z",
    "genericFields": null,
    "type": 1
}

Response:

Requisição realizada com sucesso

{
    "id": "string", // --------> TRANSACTION ID
    "createdAt": "2024-04-12T15:20:49.984Z",
    "documentType": "CPF",
    "document": "12345678912",
    "name": "João Santos Silva",
    "birthdate": "1998-12-30",
    "mothersName": "Maria Eduarda",
    "email": "[email protected]",
    "verifiedEmail": false,
    "sessionId": "SessionID123",
    "identifierId": "123abc",
    "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
    },
    "card": {
        "bin": "123456",
        "last4": "1234",
        "ownerName": "João Santos Silva",
        "ownerDocument": "12345678912"
    },
    "secondaryDocumentType": "CNPJ",
    "secondaryDocument": "12345678901234",
    "criterion": 1,
    "referenceDate": "2024-04-12T15:20:49.9847127Z",
    "identifierDate": "2020-11-05T17:24:43.727Z",
    "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
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!