Complementar uma transação

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

Modelo de Chamada

Request: Para que a transação seja complementada com sucesso, é essencial que nenhum dos campos adicionados no complemento já esteja presente na transação original.

POST https://datatrustapi.clearsale.com.br/v1/transaction/{id}/complements HTTP/1.1
Content-Type: application/json
Accept:application/json
Authorization: Bearer {Token}
{
    "name": "João Santos Silva",
    "birthdate": "1998-12-30",
    "mothersName": "Maria Eduarda",
    "email": "[email protected]",
    "sessionId": "SessionID123",
    "identifierId": "123abc",
    "channelId": null,
    "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": "2025-01-01T01:01:01Z",
      "criterion": 1,
      "card": {
            "bin": "123456",
             "last4": "1234",
             "ownerDocument": "01010101010",
             "ownerName": "João Santos Silva"
            },
       "secondaryDocumentType": "CNPJ",
       "secondaryDocument": "12345678901234"
 }
POST https://datatrustapihml.clearsale.com.br/v1/transaction/{id}/complements HTTP/1.1
Content-Type: application/json
Accept:application/json
Authorization: Bearer {Token}
{
    "name": "João Santos Silva",
    "birthdate": "1998-12-30",
    "mothersName": "Maria Eduarda",
    "email": "[email protected]",
    "sessionId": "SessionID123",
    "identifierId": "123abc",
    "channelId": null,
    "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": "2025-01-01T01:01:01Z",
      "criterion": 1,
      "card": {
            "bin": "123456",
             "last4": "1234",
             "ownerDocument": "01010101010",
             "ownerName": "João Santos Silva"
            },
       "secondaryDocumentType": "CNPJ",
       "secondaryDocument": "12345678901234" 
}

Response:

Requisição realizada com sucesso

HTTP/1.1 201 Created  
Content-Type: application/json; charset=utf-8  
{
    "id": "string", 
    "createdAt": "2025-02-03T13:42:22.539Z",
    "documentType": "CPF",
    "document": "12345678912",
    "verifiedEmail": false,
    "referenceDate": "2025-02-03T13:54:32.034Z",
    "type": 1,
    "complements": [
        {
            "name": "João Santos Silva",
            "birthdate": "1998-12-30",
            "mothersName": "Maria Eduarda",
            "email": "[email protected]",
            "sessionId": "SessionID123",
            "identifierId": "123abc",
            "channelId": null,
            "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": "2025-01-01T01:01:01Z",
              "criterion": 1,
              "card": {
                    "bin": "123456",
                     "last4": "1234",
                     "ownerDocument": "01010101010",
                     "ownerName": "João Santos Silva"
                    },
               "secondaryDocumentType": "CNPJ",
               "secondaryDocument": "12345678901234",
               "createdAt": "2025-02-03T18:44:52.535Z"
         }
    ]
    
}
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!