Skip to main content

Omie ERP Integration

SalesOS integrates with Omie ERP through SalesOS Pay to automate client registration and electronic invoice (NFS-e) generation. This integration is designed for Brazilian companies that need to issue service invoices as part of their sales process.

What the Integration Does

The Omie integration handles:
  • Client registration — Automatically register clients in Omie when deals are closed
  • NFS-e issuance — Generate electronic service invoices through Omie’s NFS-e module
  • Invoice tracking — Monitor invoice status (processing, issued, cancelled) from within SalesOS
  • Service catalog — Access Omie service codes for accurate invoicing

Prerequisites

Before setting up the integration, you need:
  1. An active Omie ERP account with the NFS-e module enabled
  2. Your company registered with the municipal tax authority (Prefeitura)
  3. A digital certificate (e-CNPJ) if required by your municipality
  4. Omie API credentials (App Key and App Secret)

Setup

1

Get Omie API credentials

In your Omie account, go to Configuracoes > API and create a new application. Copy the App Key and App Secret.
2

Configure in SalesOS

Go to Admin > Integrations > Omie ERP in SalesOS. Enter your App Key and App Secret.
3

Map service codes

Select which Omie service codes correspond to your SalesOS products or services. This determines the tax treatment on invoices.
4

Test the connection

Click Test Connection to verify that SalesOS can communicate with your Omie account. The test checks authentication and retrieves your company information.
5

Configure tax rates

Review the tax rates pulled from Omie and ensure they match your tax regime. Consult your accountant if unsure.
Tax configuration directly affects the invoices issued. Always verify tax rates with your accountant before enabling automatic invoice generation.

How It Works

Client Registration

When a deal is closed in SalesOS, the integration:
  1. Checks if the client already exists in Omie (by CNPJ/CPF)
  2. If not found, creates a new client record in Omie with:
    • Company name and trade name
    • CNPJ or CPF
    • Address (street, city, state, ZIP)
    • Contact information (email, phone)
    • Tax identifiers
  3. Links the Omie client ID to the SalesOS deal record

NFS-e Generation

When an invoice needs to be issued:
  1. SalesOS sends the invoice request to Omie with:
    • Client identification (Omie ID)
    • Service code and description
    • Value and applicable taxes
  2. Omie processes the NFS-e with the municipal tax authority
  3. The authorized NFS-e number and verification code are returned to SalesOS
  4. The invoice PDF becomes available for download in SalesOS

Invoice Status Tracking

SalesOS polls Omie for invoice status updates:
StatusDescription
SubmittedInvoice request sent to Omie
ProcessingOmie is processing with the tax authority
IssuedNFS-e authorized and number assigned
CancelledNFS-e was cancelled
ErrorProcessing failed (details available in the error log)

API Functions

The integration uses the following SalesOS Pay edge functions:
FunctionPurpose
pay-cadastrar-clienteRegister a client in Omie
pay-emitir-nfseIssue an NFS-e
pay-consultar-nfseCheck NFS-e status
pay-status-nfseGet detailed NFS-e information
pay-cancelar-nfseCancel an NFS-e
pay-consultar-servicosList available service codes
pay-aguardar-nfseWait for NFS-e processing to complete

Tax Rate Configuration

SalesOS Pay reads tax rates from your billing configuration:
  • ISS — Municipal service tax (rate set by your municipality)
  • PIS — Federal contribution
  • COFINS — Federal contribution
  • IR — Income tax withholding
  • CSLL — Social contribution on net profit
Tax rates are determined by your company’s tax regime (Simples Nacional, Lucro Presumido, or Lucro Real) and the service type. These are configured in Omie and pulled automatically.

Troubleshooting

Common Issues

Verify your App Key and App Secret are correct. Ensure your Omie account is active and the API module is enabled.
Check that the CNPJ/CPF is valid and properly formatted. Ensure all required address fields are filled in the SalesOS deal.
Common causes: missing or invalid service code, client not registered in Omie, tax authority downtime. Check the error details in the invoice log.
Some municipalities have processing delays. The pay-aguardar-nfse function polls for up to 5 minutes. If still processing, check the status later or verify with your Prefeitura.

Next Steps