Skip to content
ERP
EN
Sign in
Integrations & API

A connected ERP, secure from the source

A documented API for integrators, a gateway that only transports, and native ERP integrations for banks, tax authorities and the shop floor, implemented by GTi.

Overview

REST API with OAuth2, a secure gateway and connections to the shop floor, banks, tax authorities and BI.

The Integrations & API module covers everything that connects GTI ERP to other systems. On one side are the native integrations of the ERP: receipt of tax document XML, communication with SEFAZ (the Brazilian state tax authorities), CNAB files for banks, layout-based imports and monitored automatic services. On the other is the GTI ERP web layer: a modern, documented and secure REST API built on the ERP's own data catalog.

The API uses OAuth2 with Authorization Code and mandatory PKCE, short-lived tokens with rotating refresh and separate read and write scopes. Each request is resolved to the customer's tenant by the access address and limited to the companies authorized for that person, and filters follow an OData-inspired syntax with field selection, sorting, pagination and counting. Per-module OpenAPI documentation, Swagger and the field catalog are available in Portuguese, English, Spanish and Italian, and the public developer portal is the starting point for anyone who will integrate.

Today the API is read-only against customer databases. Writing stays in the ERP, where the business rules live, and writing through the API is only enabled flow by flow, after validation, with idempotency, concurrency control and auditing. Sensitive fields are documented but not delivered, and no SQL, host or credential is ever accepted from the request.

To reach the customer's SQL Server, the GTI ERP gateway runs on a workstation with access to the database network and keeps a single encrypted, persistent connection to the server. It only transports: it does not run SQL, does not receive database passwords and does not run scripts, and every rule stays on the server. GTi iT Solutions installs the gateway, publishes each customer's data resources, connects GTI IoT to the ERP on the shop floor and designs integrations with banks, BI and partner systems.

Integrations & API

What the module does

Read-only REST API

ERP business resources exposed with semantic names and a stable contract.

  • Resources with English names and a mapping for every field
  • Filters with comparison, logical and text operators
  • Field selection, sorting, pagination and counting
  • Decimals without rounding and binaries in base64
  • Limits on rows, fields and complexity per query

OAuth2 authentication

Delegated access with the same ERP login, without sharing passwords with integrators.

  • Authorization Code with mandatory PKCE
  • One-hour tokens with rotating refresh
  • Separate read and write scopes
  • Explicit consent and redirects limited to ERP addresses

Documentation in four languages

Contracts generated from the catalog, always aligned with what the API delivers.

  • OpenAPI 3.1 per module and a combined document
  • Swagger to test with your own login
  • Paginated catalog with the field mapping of each resource
  • Portuguese, English, Spanish and Italian
  • Public developer portal

Isolation and permissions

Each customer sees only what is theirs, company by company.

  • Tenant resolved by the access address
  • Active link and authorized company on every request
  • Sensitive fields documented and not delivered
  • Refusals always in JSON, with the correct reason

Secure transport gateway

The bridge between the server and the ERP database on the customer's network.

  • One encrypted, persistent connection per installation
  • Its own identity, with no shell and no administrative privileges
  • No database passwords stored on the gateway
  • No SQL or script execution on site
  • Automatic reconnection without repeating operations

GTI IoT integration

The ERP connected to the GTi shop floor.

  • ERP production orders available on the shop floor
  • Production entries sent back to the ERP
  • ERP keys preserved in the integration
  • Integration implemented and supported by GTi

Electronic tax documents

XML exchange with SEFAZ and suppliers inside the ERP.

  • NF-e submission, status and number voiding
  • Recipient acknowledgment of invoices
  • Supplier XML receipt and e-mail monitoring
  • Inbound and outbound CT-e
  • Single or batch XML download

Banks and electronic files

Bank files generated and read by the ERP.

  • CNAB files for payables and receivables
  • CNAB returns for payables and receivables
  • Payroll CNAB
  • CNAB event and directory configuration

Files, e-mail and services

Layout-based imports and automatic routines with monitoring.

  • Import of accounting entries, production entries, fueling and leads
  • Configurable import layouts
  • System e-mail configuration
  • Automatic services with monitoring and processing log
  • User synchronization with Active Directory

Integration projects

Tailored connections designed and supported by GTi.

  • BI tools such as Power BI
  • Marketplaces and e-commerce platforms, assessed case by case
  • Partner, customer and supplier systems
  • EDI and file exchange with trading partners

End-to-end processes

First API integration

  1. 1

    The integrator explores the resources in the developer portal.

  2. 2

    GTi registers the OAuth2 client application with its allowed redirect addresses.

  3. 3

    The user authorizes access with the ERP login and the application receives the token.

  4. 4

    Queries use filters, field selection and pagination.

  5. 5

    The authorized company context delimits the data in each response.

  6. 6

    The token is renewed without asking for the password again.

Gateway deployment

  1. 1

    GTi registers the customer's connection profile on the server.

  2. 2

    The gateway is installed on a workstation with access to the database network, without administrative privileges.

  3. 3

    The encrypted connection is established with its own identity.

  4. 4

    The connection test runs on the server, with a fixed verification query.

  5. 5

    The customer's data resources are published in the catalog.

  6. 6

    Portal, API and BI start querying the database through the tunnel.

Shop floor integration

  1. 1

    Production orders are released in the ERP.

  2. 2

    GTI IoT receives the orders and follows production on the machines.

  3. 3

    Production entries are generated from the shop floor.

  4. 4

    The ERP receives the entries and updates production.

  5. 5

    Costs, inventory and indicators reflect what was produced.

Reports and indicators

  • API resource catalog by module
  • Executable versus documented resources
  • Gateway status and last connection check
  • Electronic tax document status
  • XML received from suppliers
  • CNAB files sent and returns processed
  • Processing log of automatic services
  • System operations log
  • Layout-based imports with review
  • Production entries received from GTI IoT

Integrations

  • GTI IoT: production orders and shop floor production entries
  • SEFAZ: NF-e, CT-e, recipient acknowledgment and number voiding
  • Suppliers: XML receipt by file and by e-mail
  • Banks: CNAB for payments, collections and payroll
  • Power BI and analysis tools: read-only API with OAuth2
  • Active Directory: ERP user synchronization
  • Microsoft Project: project export and import
  • Marketplaces and e-commerce: tailored projects, assessed case by case
  • Spreadsheets and files: layout-based imports
  • Partner systems: consumption of the documented REST API

Benefits

Integration without dangerous shortcuts

No free-form SQL, no credentials in requests and no direct database access over the internet.

Documentation that does not go stale

The API contract is generated from the catalog, so documentation and behavior move together.

The database stays where it is

SQL Server remains on the customer's network; the gateway only transports, over one encrypted connection.

Market standards

OAuth2 with PKCE, OpenAPI and OData-style filters make life easier for any integrator.

Shop floor and ERP aligned

With GTI IoT, actual production and the ERP no longer depend on typing.

One partner for integrations

GTi knows the ERP from the inside and designs each integration with responsibility for the data.

Frequently asked questions

Can the API write data to the ERP?

Today the API is read-only against customer databases. Writing stays in the ERP, where the business rules live, and writing through the API is only enabled flow by flow, after validation, with idempotency, concurrency control and auditing.

How does the API authenticate integrated systems?

Through OAuth2, with Authorization Code and mandatory PKCE. The user authorizes with the same ERP login, the application receives a short-lived token with rotating refresh, and read and write scopes are separate.

Do I need to expose the database to the internet?

No. The GTI ERP gateway runs on a workstation with access to the database network and opens an outbound encrypted connection to the server. The database is not exposed, and the gateway neither receives database passwords nor runs queries on its own.

Where is the API documentation?

Public documentation is on the developer portal, and each customer reaches Swagger, the console and tokens at their own GTI ERP address, with their own login. Contracts are available in Portuguese, English, Spanish and Italian.

Which ERP resources are available in the API?

The API is derived from the ERP data catalog: each published and reviewed resource appears in the API and in the documentation. The catalog shows what is already executable and what is only documented so far, and coverage grows as resources are reviewed.

How does GTI IoT integrate with the ERP?

ERP production orders reach GTI IoT, which follows production on the machines, and production entries flow back to the ERP. GTi implements and supports this integration, preserving the ERP keys.

Do you integrate with marketplaces and other systems?

Yes, as a project. GTi assesses each case — volume, format, frequency and the business rules involved — and defines the safest path, whether through the API, files or the ERP's own routines.

Which system do you need to connect to the ERP?

Tell us what you need to integrate — shop floor, banks, BI, partners or sales channels — and GTi will design the integration securely from the data source.

Sign in to GTI ERP

Each company has its own address. Enter your company code — the name before .gti-erp.com in the address — and we will take you to the right sign-in page.

.gti-erp.com
Don't know the code? Talk to GTI.