Skip to main content

Inteligate Integration (RFB Bonded Premises)

The Inteligate integration connects ACCELERO to FlowFiscal, an intermediary platform that communicates with the Recintos system of the Brazilian Federal Revenue Service (RFB). It automates the regulatory obligations of accrediting people and recording physical accesses at bonded premises β€” ports, airports, customs yards, and the like.

Availability

This integration is provided as a plugin (inteligate) and must be installed and enabled by the IONGRADE technical team. Contact support to check compatibility with your ACCELERO version.

Compatibility

Current plugin version: 1.0.4 β€” compatible with ACCELERO 2.17.0-HF5 or higher.


What the integration does​

With the plugin active, ACCELERO becomes the single source of truth for customs obligations: you just register the person and link them to a configured category for the submissions to happen automatically, without manual access to the RFB Recintos portal.

FeatureWhat happens in ACCELERO
Accreditation of peopleWhen a person is saved or linked to a category, the accreditation is sent and the RFB protocol number is stored automatically
Access recordingEach physical passage through a configured channel is reported to the RFB in real time
Equipment unavailabilityWhen a controller goes online/offline, the event is reported automatically
GeoreferencingThe coordinates of each channel are sent to the RFB along with the accreditation
ContingencyWhen the API is unavailable, accesses can be recorded manually and synchronized later
Access control by passesA dedicated verification rule grants or denies passage based on the person's passes (grants), including negative passes that block access
First-entry reportAutomatic email delivery of a daily report with each person's first entry in the monitored channels
Main benefit

Replaces the manual entry of accreditations and accesses in the RFB Recintos portal.


Configuration​

Navigation path: Settings > Integrations - Inteligate

The screen has three tabs: Settings, Daily access report, and API.

Settings tab​

Settings tab of the Inteligate integration

FieldDescription
Categories that generate accreditationMulti-selection of ACCELERO categories. Every person linked to one of these categories will have an accreditation sent automatically to the RFB
Integration userACCELERO operator who will appear as the technical owner of the pending items generated by the plugin
Negative passesMulti-selection of pass types used by the access control by passes rule. An active negative pass blocks the person's passage (see Access control by passes)
How to choose the categories

Use categories specific to customs control (e.g., "Premises Employee", "RFB Visitor", "Port Operator"). Avoid generic categories like "Employee" or "Visitor" β€” this would generate unnecessary accreditations for all records.

Daily access report tab​

Configures the automatic email delivery of the first-entry report of the day (see First-entry report).

Daily access report tab of the Inteligate configuration

FieldDescription
Emails to send the reportList of recipients, separated by semicolons (;)
Categories to include in the reportMulti-selection of categories β€” only people from these categories appear in the report
Controllers/channels to consider as entryMulti-selection of channels whose passage counts as "entry" for the report
Schedule tableOne or more rules with Start time, End time, and Send time. Each rule triggers an email at the send time, consolidating the first entries that occurred within the given window
Multiple windows per day

Register one rule per shift (e.g., 06:00–14:00 sending at 14:05, 14:00–22:00 sending at 22:05) to receive partial reports throughout the day.

API tab​

API tab of the Inteligate integration

Connection data with the FlowFiscal service:

FieldDescription
API EndpointURL of the FlowFiscal service β€” provided by IONGRADE during deployment
UserUsername for authentication in FlowFiscal
PasswordCorresponding password
Premises codeNumeric code of the premises, assigned by the Federal Revenue Service. It uniquely identifies the physical location within the Recintos system
Credentials and premises code

The credentials are provided by IONGRADE during homologation. The Premises code is regulatory data β€” verify it with the customer's customs officer before filling it in.

Screen buttons​

ButtonFunction
SavePersists the configuration
Resend accreditationsReprocesses all pending accreditation items in the queue. Useful after fixing credentials or returning from a period of API unavailability

Fields added to entities​

The plugin extends ACCELERO forms with specific sections containing the data required by the RFB Recintos system.

Person​

A Recintos section is added to the people registry (People > Edit > General Data):

Recintos section in the person registry

FieldDescription
NationalityPerson's nationality (default: Brazil)
GenderGender provided for the accreditation
CNHNumber of the National Driver's License
Date of birthPerson's date of birth
RolePosition or role performed at the premises
MotivationReason for the access to the premises
Materials / toolsList of materials or tools the person usually carries
Document required for accreditation

The person must have a registered CPF as a document. People without a CPF are not sent to the RFB.

Company​

The company registry gains the Inteligate CNPJ field β€” an additional CNPJ used specifically for identification in the RFB Recintos system.

Operator​

Recintos section in the operator edit form

The integration uses two pieces of data from the operator registry:

FieldSourceDescription
DocumentStandard operator fieldCPF used to identify the operator in the records sent to the RFB (e.g., manual contingency logs)
Foreign operator representedRecintos section (added by the plugin)Name of the foreign operator that this user represents, when applicable to foreign-trade contexts

Visit / Visitor​

For visit events, the plugin adds the Recintos Data section with two groups of fields:

Recintos Data section in a visit event

Recintos data β€” the same fields as the Person section (nationality, gender, CNH, date of birth, role, motivation, materials/tools), plus Visit notes.

Represented party data β€” used when the visitor represents a foreign company or person:

FieldDescription
Represented CNPJCNPJ of the represented company
Represented nameName of the represented person or company
Represented CPFCPF of the represented party
Represented foreign documentNumber, issuing country, type, and validity of the foreign document

Controller channel​

In the channel edit form (Advanced > Controllers > Edit > Channels > Edit), the plugin adds the Inteligate - location tab:

Inteligate - location tab in the channel edit form

FieldDescription
Report events to InteligateDefines the direction of the reported accesses: Do not report / Entry access / Exit access
LatitudeGeographic coordinate of the control point
LongitudeGeographic coordinate of the control point
Geolocation

Use Google Maps to obtain the exact coordinates of each physical barrier β€” the RFB requires precise georeferencing of the control points.

Unconfigured channels are not reported

Channels with Report events to Inteligate set to "Do not report" do not send accesses or generate unavailability events to the RFB.


Dashboard​

Path: Side menu > Inteligate > Dashboard

The dashboard offers a consolidated view of the integration's health over the selected period.

Dashboard of the Inteligate integration

ElementDescription
Start date / End datePeriod filter β€” click Update to apply
Successful eventsTotal of submissions successfully completed in the period
Events in contingencyTotal of accesses recorded in contingency mode
Events with errorTotal of submissions that failed and need attention
Bar chartDaily history of regular, contingency, and error events
Operational use

Use the dashboard as the first stop of the daily inspection. Spikes in errors or contingency indicate communication or configuration problems that need immediate attention.

Shortcut to the filtered list

The Successful events and Events with error cards are clickable: when clicked, the Task List opens already filtered by the status and the period selected in the dashboard.


Task List​

Path: Side menu > Inteligate > Tasks

Complete list of all submissions processed by the plugin, with filters and per-row actions.

Task list screen (Tasks) of the Inteligate integration

Available filters​

FilterOptions
Start / end dateCutoff by task creation date
TypeAccreditation / Access / Georeferencing / Communication
StatusNot sent / Awaiting protocol / Success / Manually cleared / Replaced / Error
Text searchSearches the serialized data (e.g., name, CPF)

Columns​

ColumnContent
IDUnique identifier of the task
CreationDate and time the task entered the queue
Next requestDate/time of the next scheduling (automatic retry)
TypeType of the submission (Accreditation, Access, etc.)
StatusCurrent state of the task
Last errorError message of the last attempt, when there is one
ActionsFive buttons per row (detailed in Per-row actions): Edit context, View sent data, View received data, Clear manually, and Restart

Task statuses​

StatusMeaning
Not sentTask created, awaiting processing
Awaiting protocolSent to the API; awaiting confirmation from the RFB
SuccessProtocol received and stored
Manually clearedAn errored task that was resolved outside the system and cleared manually by an operator, no longer requiring attention
ReplacedAn errored task that was automatically replaced by a new equivalent task (e.g., a new submission of the same accreditation). The old task stops being processed
ErrorPermanent failure β€” requires intervention

Per-row actions​

Each row brings five buttons, in the order they appear in the Actions column (from left to right):

#ButtonAppearanceFunction
1Edit contextOrange, pencil iconOpens the related entity (person, controller, event) in the corresponding edit screen. Useful for fixing the record that caused the error and triggering a new submission
2View sent dataBlue, arrow iconDisplays, in a window, the full content sent to the API
3View received dataBlue, download iconDisplays the API's response, including detailed error messages
4Clear manuallyGreen, save icon(only on tasks with Error) Marks the task as Manually cleared, indicating that the problem was handled outside the system and that it no longer needs attention
5RestartOrange, reload icon(only on tasks with Error) Puts the task back in the queue to be resent from scratch, without having to recreate the record

Details of each action:

  • Edit context β€” use it to fix the record that caused the error. When you save the entity, a new submission is queued automatically.
  • View sent data / View received data β€” comparing what was sent with the API's response is the fastest way to identify the cause of an error (empty required field, invalid CPF, etc.).
  • Clear manually β€” available only on tasks with the Error status. Use it when the error has already been resolved by other means and the task should no longer appear in the pending queue.
  • Restart β€” available only on tasks with the Error status. Use it when the cause of the failure has already been resolved (API restored, record fixed) and you want the system to try sending it again. Before restarting, the system opens a confirmation ("Confirm the full resend of this task?") that requires typing the displayed code in the box to complete the action.

Confirmation of a task resend, requiring the code to be typed to proceed

Restart vs. Clear manually

Both actions only appear on tasks with Error, but they have opposite effects: Restart makes the system try to send again; Clear manually just closes the pending item, without resending (for when the record has already been handled outside ACCELERO).

Batch restart​

To reprocess several tasks at once, check the checkboxes of the desired rows and use More actions > Restart at the top of the list. The system asks for confirmation ("Confirm the restart of the selected tasks?") and re-queues all the selected ones.

More actions menu with the Restart option for batch restart

All must be in Error

Restart β€” individual or batch β€” is only allowed on tasks with the Error status. If any selected task is in another status, the system displays "Only tasks with an error can be manually restarted!" and none is restarted.

Export​

The Export button generates a file with the filtered list for external analysis or auditing.


Understanding and resolving errors​

When a task appears with the Error status, the first step is to understand the cause before acting. Open the errored row, click View received data, and read the returned message. Based on it, you decide what to do.

Restart or fix the record?​

There are two very different types of error, and each calls for a different action:

Type of errorMessage examplesWhat to do
Communication error β€” the data is correct, but the submission did not arrive or got no response"Expired - no response from the Inteligate server", connection failuresUse Restart. The same task is resent to the Federal Revenue Service, without changing anything.
Data error β€” the Federal Revenue Service refused because some information is wrong or missing"Invalid CPF", "required field not provided", document validationsRestarting won't help β€” you would resend the same wrong data. Click Edit context, fix the record, and save.
Restart resends exactly the same data

If the Federal Revenue Service rejected it because of some data (an incorrect CPF, for example), clicking Restart will just repeat the same error. Fix the record first.

Saving the record already resends

When you fix and save the person (or the related entity) via the Edit context option, ACCELERO automatically queues a new submission with the updated data. You do not need to click Restart afterward β€” that is only for the cases where the record was already correct and the failure was a communication one.

Whose error is it? The three systems of the integration​

Behind this integration there are three systems in a chain, but you (the customer) only see ACCELERO:

ACCELERO β†’ Inteligate (FlowFiscal) β†’ Federal Revenue Service (Recintos)
(what (intermediary that bridges (validates and records the
you see) to the Revenue Service) accreditation/access)

Since the error message appears entirely within ACCELERO, the natural question is "whose fault is it?". The table below helps identify the source by the message in View received data and the resolution path:

SourceHow to recognize itWhat to do
ACCELERO / configurationMessages about the configuration of the system itself β€” e.g., "Controlador canal does not have FlowGate protocol" (channel without a configured protocol) or endpoint/credentials on the API tab not filled inAdjust the configuration (API tab, controller channels). If it persists, contact IONGRADE support.
Federal Revenue Service (Recintos)Descriptive messages about the data: required fields, invalid document, incorrect CPF. They are usually clear and point exactly to the field with the problemFix the record in Edit context and save β€” the resend is automatic.
Inteligate (FlowFiscal)Messages from the intermediary that are not clearly our configuration nor a Revenue Service validation, and without a known catalog of meaningsContact Inteligate together with IONGRADE to investigate. Keep the task's ID and the content of View received data.
Revenue Service errors are the easiest

The Revenue Service responses are usually quite descriptive β€” you can normally understand and resolve them just by reading the message (almost always a piece of data to fix in the record). The Inteligate errors, on the other hand, have no public catalog of meanings; that is why, in those cases, the path is to contact Inteligate together with IONGRADE.

The "Expired" error is a timeout, not a wrong configuration

The message "Expired - no response from the Inteligate server" does not, by itself, indicate that there is something wrong with your record or your configuration. It means that the task went 3 hours without a response and was marked as Error. Most of the time this happens because the Inteligate server (or the Revenue Service behind it) became temporarily unavailable or was slow to respond.

  • First action: when communication is restored, use Restart β€” the same task is then usually sent successfully, with no change to the record.
  • If it happens on many tasks at once, it is a sign of unavailability on the Inteligate/Revenue Service side: contact Inteligate together with IONGRADE.

In other words: treat the "Expired" first as a communication problem β€” only investigate the record/configuration if it persists even with the servers up.


Manual Access (Contingency)​

Path: Side menu > Inteligate > Manual Log - Contingency

Screen used when the integration is unavailable and it is necessary to record accesses manually to fulfill the regulatory obligation.

Manual Log - Contingency form

When to use it​

  • FlowFiscal API unavailable for an extended period
  • Connectivity problems on the ACCELERO server
  • Physical control equipment out of operation, but with movement still occurring

Form fields​

FieldDescription
PersonSearch by the person's name or document in the ACCELERO registry
DateDate and time the access actually occurred
ControllerChannel where the access occurred
EventType of the event (e.g., Passage actually performed)
CPF responsible for the recordCPF of the person making the entry β€” required for auditing

After saving, the record is marked with the contingency flag. When the API responds again, the system synchronizes automatically.

Restricted use

Manual access is an exception tool β€” it should not be used to correct operational errors. Each entry is recorded with the CPF of the responsible person for auditing purposes.


First-entry report​

The plugin can automatically send, by email, a report with the first entry of each person in a day, considering only the configured channels and categories. It is useful for presence checking and operational control of the premises.

The configuration is done on the Daily access report tab of the Settings > Integrations - Inteligate screen (see Configuration).

How it works​

  • Each schedule rule defines a window (start and end time) and a send time.
  • At the send time, the system gathers the first passage of each person β€” from the configured categories β€” through the channels marked as entry within that window.
  • The report is generated as a CSV file and sent, as an attachment, to the registered emails.

Email content​

The email has the subject "First-entry report" and the body brings only the notice that the report is attached ("The CSV report is attached."). The data goes in an attached CSV file (primeiras_entradas.csv) with the columns:

ColumnContent
TimeDate and time of the person's first entry
NamePerson's name
CompaniesCompanies linked to the person
AreaDestination area of the access
ControllerController and channel where the entry occurred
Report format (plugin 1.0.4)

From version 1.0.4 on, the data is no longer displayed as a table in the email body and is now delivered as an attached CSV file β€” easier to open in a spreadsheet for checking and auditing.

First-entry report email with the primeiras_entradas.csv file attached

When nothing is sent

If there is no first entry in the window, or if some required configuration item is missing (emails, categories, or channels), no email is triggered.


Access control by passes​

The plugin provides a dedicated access verification rule β€” "Pass validation - premises" β€” that grants or denies passage based on the person's passes (grants). Unlike the standard rule, it treats not having the pass and having an expired pass in distinct ways (see How the rule decides).

How to enable it: the rule is enabled globally in Advanced > System > Customization - Customizable access rules. In the Access rules to enable field, check Pass validation - premises and save.

Customizable access rules with Pass validation - premises enabled

Disable the standard "Pass validation"

For the correct behavior to work, the standard Pass validation rule must remain unchecked and only Pass validation - premises enabled. Keeping both active at the same time makes the standard validation block those who do not have the pass, nullifying the premises-specific logic.

The areas keep declaring which passes they require normally in their configuration β€” the rule enabled here only defines how that requirement is evaluated.

Area configuration with the Passes section and the required passes

How the rule decides​

The rule acts on the passes required by the area:

  1. A negative pass blocks β€” if the person has a pass that is active and within validity that is in the Negative passes list (Settings tab) and that is also required by the area, access is denied.
  2. Requires a valid pass only from those who have the pass β€” for each pass required by the area (excluding the negative ones): if the person has that pass but no occurrence is active and within validity, access is denied. If the person does not have that pass, this rule does not block because of it.
  3. If the area does not require passes, access is granted by this rule.
Not having the pass vs. having an expired pass

The rule distinguishes not having the pass from having an expired/inactive pass, with opposite results: whoever never had that pass is not blocked by this rule (the requirement does not apply); whoever has the pass, but out of validity or inactive, is blocked. To explicitly prevent a person β€” regardless of the valid passes they hold β€” use an active negative pass.


When submissions are triggered​

Accreditation​

The accreditation is sent automatically when:

  • A person is saved and is already linked to a configured category β€” any change to the record keeps the data synchronized
  • A person is linked to a category configured to generate accreditation
  • A person is unlinked from a category β€” generates an accreditation removal operation in the RFB

Accesses​

Each physical passage on a channel with Report events configured (entry or exit) generates a submission, provided the person has a CPF and is linked to a configured category.

Unreported accesses

Accesses by people without a CPF, without a configured category, or on channels with "Do not report" selected are not sent. Only accesses relevant to the customs obligation are reported.

Georeferencing​

Sent whenever a channel's coordinates are registered or changed.

Equipment unavailability​

Sent automatically when a controller changes between online and offline, for channels with reporting configured.


Rectification and resend​

Whenever data already sent to the RFB is corrected, ACCELERO resends the updated information automatically β€” the procedure varies according to the type of data.

Person's registration data​

Any change to the person's record (name, CPF, nationality, role, etc.) triggers a new accreditation submission upon saving. The resend happens for all configured categories to which the person is linked β€” no extra action is needed beyond saving.

Channel geolocation​

When you change the latitude or longitude of a channel in Advanced > Controllers > Edit > Channels > Inteligate - location and save, a georeferencing rectification is sent automatically to the RFB.

Represented party data (visits)​

The represented party data is linked to the visit event, not to the person β€” so the rectification is done directly in the event edit form, in Visits / Appointments:

Event edit form with the Represented Party Data section and the Resend accreditation button

Fix the fields in the Represented Party Data section and click Resend accreditation to send the updated data to the RFB.

Global resend​

The Resend accreditations button on the integration configuration screen (Settings > Integrations - Inteligate) reprocesses the entire queue of pending accreditations. Use it after resolving a systemic problem β€” corrected credentials, API restored after extended unavailability.


Use cases​

Enable the integration for a bonded premises​

  1. Request that IONGRADE install the inteligate plugin
  2. Receive the FlowFiscal credentials and the premises code
  3. In Advanced > System > Integrations - Inteligate, fill in the API tab
  4. On the Settings tab, select the categories that represent the regulated people
  5. On each controller channel of the customs border, set the report type and coordinates
  6. Make sure the relevant people have a registered CPF and the fields in the Recintos section filled in
  7. Track the Dashboard during the first 24 hours to validate the flow

Investigate an accreditation error​

  1. Access Inteligate > Tasks, filter by Type: Accreditation and Status: Error
  2. For each errored row, click View received data β€” the API's returned message usually indicates the problem (invalid CPF, empty required field, etc.)
  3. If the problem is in the record, click Edit context β†’ fix the person. Upon saving, a new accreditation is queued automatically
  4. If the record is already correct and the failure was only a communication one (e.g., "Expired - no response from the Inteligate server"), use Restart on the row itself β€” or select several and use More actions > Restart β€” to resend without changing the record

To understand the source of each error (ACCELERO, Revenue Service, or Inteligate) and when to restart vs. fix the record, see Understanding and resolving errors.

Operate in contingency​

  1. Operators keep using the barriers normally
  2. For critical accesses, record manually in Manual access > Manual Log - Contingency
  3. After the API is restored, the system synchronizes the pending records automatically

Best practices​

Configuration​

  • Specific categories: Use categories dedicated to the audience regulated by the RFB. Do not select broad categories.
  • Precise coordinates: Imprecise channel geolocation can generate inconsistencies in Recintos.
  • Complete documents: People without a CPF, date of birth, or nationality do not have an accreditation sent.
  • Dedicated integration user: Create a specific ACCELERO user (e.g., "Inteligate Integration") as responsible for the pending items, instead of using a named account.

Operation​

  • Daily dashboard inspection: Check the dashboard once a day to anticipate problems before they pile up.
  • Errored tasks do not come back on their own: Whenever the dashboard shows errors, fix the related record to trigger a new submission.
  • Global resend after maintenance: After restoring the API or fixing credentials, use Resend accreditations to clear the queue.
  • Operator training: Make sure at least two operators know how to use the manual access screen.

Troubleshooting​

Accreditations are not generated​

Possible causes:

  • The person's category is not checked in "Categories that generate accreditation"
  • The person does not have a registered CPF
  • The plugin is not enabled

Solution:

  1. In Settings > Integrations - Inteligate > Settings, confirm which categories are checked
  2. Check whether the person is linked to one of those categories
  3. Confirm the CPF in the person's record
  4. Edit and save the person again to force a new submission

Tasks stay stuck in "Not sent"​

Possible causes:

  • API endpoint not configured or incorrect
  • Incorrect credentials
  • Outbound block in the firewall

Solution:

  1. Check the API tab β€” endpoint, user, password, and premises code
  2. Test the connectivity of the ACCELERO server to the FlowFiscal endpoint (HTTPS)
  3. If the problem persists, contact IONGRADE support

Tasks stay in "Awaiting protocol" for a long time​

Possible causes:

  • The FlowFiscal API receives the submission, but the RFB is slow to respond
  • Silent error in the protocol query

Solution:

  1. Wait up to 3 hours β€” after that limit, the task is marked as Error with the message "Expired - no response from the Inteligate server"
  2. Check Received data to identify the returned message
  3. Once communication is restored, use Restart (individual or batch) to resend the expired tasks
  4. In case of a recurring error, contact IONGRADE support with the task IDs

Physical accesses are not being reported​

Possible causes:

  • Controller channel configured as "Do not report"
  • Person without an active accreditation category
  • Person without a CPF

Solution:

  1. Check the Inteligate - location tab of the channel: Advanced > Controllers > Edit > Channels
  2. Confirm that the person is linked to a configured category
  3. Confirm that the person has a registered CPF

Integration with other modules​

People and Categories​

The integration depends directly on the People registry and on the configuration of categories. The record must be complete (CPF, nationality, gender, date of birth) and the category link must point to one of the configured categories.

Controllers​

Controllers must have their channels configured with a report type and geographic coordinates so that accesses and georeferencing are sent.

Logs and Events​

The integration reports each access event of an eligible person in real time. See Logs and Monitoring to understand which events are captured.

Events (Visits)​

In Events, the plugin adds the Recintos Data and Represented Party Data fields to meet the RFB requirements in visits by foreign representatives.


Next Steps​

  • People β€” Configure the Recintos fields in the people registry
  • Events β€” Understand the additional fields in visits
  • Controllers β€” Configure the report type and coordinates of the channels
  • Logs and Monitoring β€” Understand which events trigger submissions
  • Plugins β€” Learn more about the ACCELERO plugin system