For the complete documentation index, see llms.txt. This page is also available as Markdown.

Transação

Transação

Uma consulta enviada aos serviços Anti-Fraude é chamada de Transação. Uma transação pode conter a execução de um ou mais serviços configurados no modelo da consulta ou informados no corpo da solicitação. Esses serviços podem ser análises internas ou consultas externas realizadas na esteira de processamento. Depois disso, com base nas regras de validação, o status é definido para a transação.

Serviços e regras de validação podem ser configurados somente no modelo de consulta.

Uma transação é caracterizada por um endpoint no qual os serviços necessários podem ser informados e um conjunto de regras validadas.

Create transaction

post

Submission of the necessary person or company data and the template model against which the verification services shall be executed, as well as the set of rules to be validated.

Parâmetros de consulta
originstringObrigatório

Parameter that defines the onboarding origin. Must be set to TRUST.

Parâmetros de cabeçalho
AuthorizationstringObrigatório

Customer access token. See more in the 'Authentication' topic of this section.

Example: Bearer your_token_here
Corpo
templateIdstringObrigatório

Unique ID of the Query Template (configured in Trust Platform).

metadataobjectOpcional

Free to add any kind of attribute, ideal for linking IDs or other information in the transaction.

referenceTokenstringOpcional

Mobile Token (Session Token).

_callbackUrlstring · uriOpcional

Callback URL (webhook).

Respostas
200

Success

application/json
requestIdstringOpcional

Unique identifier of request.

Example: 6cb8093c-14ef-4fd1-810b-ee9fa5f9aae9
idstringOpcional

Unique identifier of created transaction.

Example: 6021a21b3811c35ecb8dea20
post/transactions

List transactions

get

Get your transaction list summarized with pagination and filters.

Parâmetros de consulta
_limitnumberOpcional

The maximum amount of records that should be returned in the response, e.g. _limit=5. Max value is 10 and default is 10.

_offsetnumberOpcional

The number of records to skip before starting to collect the result set, e.g. _offset=5. Default is 0.

_orderstringOpcional

Sort the records returned in response by creation date in ascending or descending order. Descending (default): _order=desc Ascending : _order=asc

_templatesstringOpcional

Search for too many template models by references of the templateId on the account. For multiple templates, separate the values using the pipe symbol, e.g. _templates=templateId1|templateId2|templateId3.

_startCreatedDatestring · dateOpcional

Search the records created on or after any given day, e.g. _startCreatedDate=2022-01-01.

_endCreatedDatestring · dateOpcional

Search the records created on or before a specified day, e.g. _endCreatedDate=2022-01-30.

Parâmetros de cabeçalho
AuthorizationstringObrigatório

Customer access token. See more in the 'Authentication' topic of this section.

Example: Bearer your_token_here
Respostas
200

Success

application/json
requestIdstringObrigatório

Unique identifier of request.

Example: 6cb8093c-14ef-4fd1-810b-ee9fa5f9aae9
totalItemsintegerObrigatório

Total amount of transactions according to the filter used.

Example: 2
get/transactions

Get transaction

get

Retrieve the result data of a transaction.

Parâmetros de rota
transactionIdstringObrigatório

Transaction identifier.

Parâmetros de consulta
_includePfRelationshipsbooleanOpcional

Flag for including transactions related to onboarding pf_pf. e.g. _includePfRelationships=true.

Default: false
_includeCroppedImagesbooleanOpcional

Flag to include the cropped versions of the images of the sended documents. e.g. _includeCroppedImages=true.

Default: false
_langstringOpcional

Flag to set the language in the description of the reasons for manual failures. Possible values are 'en' or 'pt'. e.g. _lang=en.

Default: pt
Parâmetros de cabeçalho
AuthorizationstringObrigatório

Customer access token. See more in the 'Authentication' topic of this section.

Respostas
200

Success

application/json
requestIdstringObrigatório

Unique identifier of request.

Example: 2b8f373-c462-4bbf-9a4f-8aeb7d71ec53
idstringObrigatório

Unique identifier of transaction.

Example: 6388a3e9a73b280008ba31ad
statusstring · enumObrigatório

Status of transaction.

Example: APPROVEDValores possíveis:
customStatusstring · anulávelOpcional

Merchant-defined custom status configured in Trust. There is no global enum because the available values are specific to each tenant. Returns null when no custom status applies.

templateIdstringOpcional

Unique ID of the Query Template.

Example: 638a021fdeb2b90008c790d1
onboardingIdstringOpcional

Unique identifier of the onboarding that generated the transaction. Note that these values are only returned for transactions that originated from the service Web Onboarding.

createdAtstring · date-timeObrigatório

Transaction creation date.

Example: 2022-09-08T22:10:14.816Z
typestringOpcional

Document type sent:

• "rg" (Brazilian General Registry) The RG is a document used to identify Brazilian citizens.

• "cnh" (Brazilian Driver's License) It is a mandatory document for any citizen who intends to drive a motor vehicle.

• "crlv" (Vehicle Registration and License Certificate) Is the document issued annually to indicate that the vehicle is fit to circulate on Brazilian streets.

• "rne" (Brazilian Foreigner Registry) Is a document that certifies the identity of foreign individuals with temporary or permanent residence in Brazil.

• "rnm" (Brazilian Migratory Registry) Is the alphanumeric register number resulting from the identification of each immigrant through his or her personal information and fingerprints.

• "ctps" (Employment and Social Security Card) Is a document that contains information about the worker's professional life and his affiliation to the National Institute of Social Security - INSS.

• "passport" Personal and non-transferable document, issued by the authority of a State for the free transit of its nationals in the country that admits them to its territory.

• "outros" (Others) When there is a document in the image but it is not of a type mapped by us.

• "invalido" (Invalid) When there is no document in the image.

Example: cnh
sectionsobjectObrigatório

Contains the data on the services performed as defined by the Query template. Each attribute represents a service.

fraudbooleanOpcional

Indicates whether it is an attempt at fraud or not.

Example: false
documentscopyRequestDatestring · date-timeOpcional

Datetime the document went to documentscopy.

Example: 2022-09-08T22:11:05.816Z
variablesobjectOpcional

Variables of Web Onboarding.

metadataobjectOpcional

Some internal control fields + the fields sent in the metadata attribute of the transaction creation.

get/transactions/{transactionId}

Atualizado