Skip to content

ERP Connections Overview

ERP connections link TaprNext to your accounting system. Approved AP invoices are posted to the ERP as purchase invoices. For AR, sales invoices are fetched from the ERP and sent via PEPPOL.

The integration operates bidirectionally:

  • AP (Inbound): TaprNext posts purchase invoices to your ERP after approval
  • AR (Outbound): Sales invoices are fetched from the ERP and prepared for PEPPOL transmission

ERP connections are configured per Legal Entity in Tapr Settings → General → Legal Entity Setup. Each entity can use a different ERP type and company.

ERPType CodeAP (Post)AR (Fetch)
ERPNexterpnextYesYes
Microsoft Dynamics 365d365YesYes
SAP S/4HANAsap_s4hanaYesYes
SAP Business Onesap_b1YesYes
Oracle NetSuitenetsuiteYesYes
XeroxeroYesYes
QuickBooksquickbooksYesYes
OdooodooYesYes
Sage IntacctsageYesYes
BexiobexioYesYes
AbacusabacusYesYes

Each Legal Entity row requires:

FieldDescription
ERP Integration EnabledMaster toggle for this entity’s ERP connection
ERP TypeSelect the ERP from the supported list
ERP Company NameCompany name as it appears in the ERP
AR ERP Fetch EnabledEnable fetching sales invoices for PEPPOL sending
ERP Config (JSON)Connection details (URL, default accounts, mappings)
ERP Secrets (JSON)Encrypted credentials (API keys, tokens, passwords)

ERP credentials are encrypted at rest. To update:

  1. Check the Change ERP Secrets checkbox
  2. Enter new credentials in the ERP Secrets field
  3. Save—credentials are encrypted and stored
  4. The checkbox resets automatically

Partial updates are supported; you can update single credential fields without re-entering all others.

// ERP Config
{
"url": "https://your-erpnext.com",
"company": "Your Company Name",
"default_expense_account": "5000 - Expenses - COMP",
"default_payable_account": "2100 - Creditors - COMP"
}
// ERP Secrets
{
"api_key": "your-api-key",
"api_secret": "your-api-secret"
}
// ERP Config
{
"environment_url": "https://your-org.crm.dynamics.com",
"company": "Your Legal Entity",
"tenant_id": "your-azure-tenant-id"
}
// ERP Secrets
{
"client_id": "app-registration-client-id",
"client_secret": "app-registration-secret"
}

After configuring:

  1. Test Connection—verifies authentication and API access
  2. Test Post—creates a draft document in the ERP (not submitted)
  3. Review the test document in your ERP to confirm field mapping
DirectionWhat happensFrequency
AP → ERPApproved invoices are posted as purchase invoicesOn approval (or manually)
ERP → ARSales invoices with PEPPOL flag are fetched for sendingEvery 10 minutes

Configure custom workflow states for ERP posting:

StateWhen
ERP Ready StateInvoice is approved and ready for posting
Post ERP Success StateInvoice was posted successfully
Post ERP Error StatePosting failed—see error log

Different entities can use different ERPs:

EntityERPCompany
Acme GmbH (DE)ERPNextAcme GmbH
Acme BV (NL)D365NL Operating
Acme AB (SE)SAP S/4HANASE Subsidiary

Each entity’s ERP config and credentials are independent.

IssueResolution
”Connection refused”Verify URL, ensure HTTPS, check firewall rules
”Authentication failed”Regenerate API keys or check OAuth token expiry
”Permission denied”Verify ERP user has required roles (Purchase User, Sales User)
“Company mismatch”Ensure ERP Company Name matches exactly
”Duplicate document”Invoice already posted—check the ERP for existing entry