Transaction

A query submitted to the Anti-Fraud services is called a Transaction. A transaction may contain the execution of one or more services configured in the query model or informed in the request body. These services may be internal analyses or external queries that are performed on the processing conveyor. After that, based on validation rules, the status is set for the transaction.

Services and validation rules can be configured only in the query template.

A transaction is characterized by an endpoint where the required services can be informed and a set of rules validated.

List transactions

Get your transaction list summarized with pagination and filters.

GEThttps://api.combateafraude.com/v1/transactions
Query parameters
Header parameters
Response

Success

Body
requestId*string

Unique identifier of request.

Example: "6cb8093c-14ef-4fd1-810b-ee9fa5f9aae9"
items*array of any of

List of transactions.

totalItems*integer

Total amount of transactions according to the filter used.

Example: 2
Request
const response = await fetch('https://api.combateafraude.com/v1/transactions', {
    method: 'GET',
    headers: {
      "Authorization": "text"
    },
});
const data = await response.json();
Response
{
  "requestId": "6cb8093c-14ef-4fd1-810b-ee9fa5f9aae9",
  "items": [
    {
      "id": "6388ac6b409eff000804dadf",
      "status": "APPROVED",
      "createdAt": "2022-09-08T22:10:14.816Z",
      "data": {
        "cpf": "00011122233",
        "birthDate": "01/01/2000",
        "name": "John Doe"
      }
    }
  ],
  "totalItems": 2
}

Last updated

Logo

2023 © Caf. - All rights reserved