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

Transaction

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.

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.

Query parameters
originstringRequired

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

Header parameters
AuthorizationstringRequired

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

Example: Bearer your_token_here
Body
templateIdstringRequired

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

metadataobjectOptional

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

referenceTokenstringOptional

Mobile Token (Session Token).

_callbackUrlstring · uriOptional

Callback URL (webhook).

Responses
200

Success

application/json
requestIdstringOptional

Unique identifier of request.

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

Unique identifier of created transaction.

Example: 6021a21b3811c35ecb8dea20
post/transactions

List transactions

get

Get your transaction list summarized with pagination and filters.

Query parameters
_limitnumberOptional

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

_offsetnumberOptional

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

_orderstringOptional

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

_templatesstringOptional

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 · dateOptional

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

_endCreatedDatestring · dateOptional

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

Header parameters
AuthorizationstringRequired

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

Example: Bearer your_token_here
Responses
200

Success

application/json
requestIdstringRequired

Unique identifier of request.

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

Total amount of transactions according to the filter used.

Example: 2
get/transactions

Get transaction

get

Retrieve the result data of a transaction.

Path parameters
transactionIdstringRequired

Transaction identifier.

Query parameters
_includePfRelationshipsbooleanOptional

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

Default: false
_includeCroppedImagesbooleanOptional

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

Default: false
_langstringOptional

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
Header parameters
AuthorizationstringRequired

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

Responses
200

Success

application/json
requestIdstringRequired

Unique identifier of request.

Example: 2b8f373-c462-4bbf-9a4f-8aeb7d71ec53
idstringRequired

Unique identifier of transaction.

Example: 6388a3e9a73b280008ba31ad
statusstring · enumRequired

Status of transaction.

Example: APPROVEDPossible values:
customStatusstring · nullableOptional

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.

templateIdstringOptional

Unique ID of the Query Template.

Example: 638a021fdeb2b90008c790d1
onboardingIdstringOptional

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-timeRequired

Transaction creation date.

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

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
sectionsobjectRequired

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

fraudbooleanOptional

Indicates whether it is an attempt at fraud or not.

Example: false
documentscopyRequestDatestring · date-timeOptional

Datetime the document went to documentscopy.

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

Variables of Web Onboarding.

metadataobjectOptional

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

get/transactions/{transactionId}

Last updated