Skip to content

Connect your ERP with a token

Each system that talks to SLFLO — usually your ERP — gets its own integration, its own token and only the permissions you tick. Who: administrator or IT · Where in the cycle: ERP.

  • You need Manage integrations (INTEGRATION_MANAGE). The built-in Administrator has it.

  • Whoever sets up the ERP side needs the token and the address; the developer quickstart is for them.

  • With only Manage integrations, Setup › Settings is in your menu and opens on the Integrations tab — the only tab that is yours.

  1. Open Setup › Settings and the Integrations tab. Press Add integration.
  2. Name — which system and which copy, e.g. “D365 production”.
  3. System — Microsoft Dynamics 365, SAP, Odoo, Oracle or Another system (fixed once created).
  4. What it may do — tick only what it needs (Read orders, Acknowledge orders, Read invoices, Read payments, Read returns, Send customers and branches, Send prices…).
  5. Allowed addresses — optional; one IP address or block per line. Empty allows calls from anywhere.
  6. Press Add and show the token. In Copy the token now, press Copy token and Copy address, put both in the ERP, then press Done, I have copied it. It will not be shown again.
The Integrations tab of Settings with one integration, Nile Fresh ERP on Microsoft Dynamics 365, Active, showing what it may do (read orders, acknowledge orders, read invoices, payments and returns, send customers and branches, prices, credit limits and balances), a token that runs out on 2027-10-07, never called yet, from any address.
  1. State
  2. What it may do
  3. The token
Open the full-size picture (new tab)
The Copy the token now dialog for the new D365 production integration, with the token blurred, the integration API address, and Done, I have copied it.
Open the full-size picture (new tab)

Tokens run for twelve months. From 30 days before, the card says Token expiring and the bell shows “Integration tokens running out”.

  1. On the card press New token and copy it (an integration may have two live tokens).
  2. Put the new token in the ERP.
  3. Check that the new token’s line says last used with a recent time.
  4. Press Revoke this token on the old token’s prefix.

To cut an integration off for good, press Revoke on the card; every token is refused from its next call. Change edits the name, permissions and addresses.

When your ERP collects booked orders and answers them, an administrator (TENANT_ADMIN) turns on Orders wait for your ERP at the top of this tab. It needs an active integration that may answer orders (orders:write). Booked orders then go to the ERP to be accepted or refused instead of being confirmed in the office; it can’t be turned off while orders still wait for the ERP. What changes and how to turn it off: Orders wait for your ERP.

When your ERP keeps the stock books, an administrator (TENANT_ADMIN) turns on Stock is managed in your ERP at the top of this tab. It needs an active integration that may Send stock levels (stock:write). Loads and unloads then come from the ERP and nobody moves stock in SLFLO. What it turns on, what it locks and what the rep sees: Stock managed in your ERP.

Nile Fresh adds “D365 production”, Microsoft Dynamics 365, with Read orders, Acknowledge orders, Read invoices, Read payments and Read returns, allowed from 203.0.113.0/24. The token is shown once and pasted into Dynamics. Eleven months later the card reads “Token expiring — in 21 days”: they press New token, paste it into Dynamics, see “last used” move to the new token, and Revoke this token on the old one.

  • The ERP can call the integration API from now on, within what you ticked.
  • Changes apply from the ERP’s next call. Every change is in the audit trail.
What you seeWhat to do
The token was lostIt can't be shown again. Make a New token, put it in the ERP, then revoke the old one.
Add an active integration for your ERP first (Settings → Integrations), then turn this on.ERP_MODE_NEEDS_CLIENTAdd an active integration that may answer orders (orders:write) for Orders wait for your ERP, or Send stock levels (stock:write) for Stock is managed in your ERP, then turn the switch on.
Orders still wait for your ERP. Let it accept or refuse them first (Field → Orders, status With ERP), then turn this off.ERP_ORDERS_WAITINGOrders still wait for your ERP. Let it accept or refuse them, then turn Orders wait for your ERP off.
How this company's orders reach its ERP is set by SLFLO. Contact SLFLO to change it.ERP_MODE_SET_BY_SLFLOSLFLO set how your orders reach your ERP. Contact SLFLO to change it.
Stock is managed in your ERP. Make this change there.MANAGED_BY_ERPStock is managed in your ERP. Make the move there, or turn the switch off.
This company keeps its stock in SLFLO. Turn on "Stock is managed in your ERP" in Settings → Integrations first.ERP_STOCK_NOT_ENABLED(The ERP sees this.) Turn on Stock is managed in your ERP before the ERP sends stock.
This integration already has two live tokens. Revoke the one the ERP no longer uses, then make a new one.TOO_MANY_CREDENTIALSTwo live tokens already. Revoke the one the ERP no longer uses, then make a new one.
Another integration already has this name. Choose a different one.INTEGRATION_NAME_TAKENChoose a different name.
Enter each allowed address as an IP address or a block such as 203.0.113.0/24, at most 20.INTEGRATION_IP_INVALIDWrite each address as an IP or a block such as 203.0.113.0/24, at most 20.
That integration was revoked and cannot be changed or given a new token. Create a new one instead.INTEGRATION_CLIENT_REVOKEDA revoked integration can't be changed. Add a new one.
Calls from this address are not on the integration's allowlist. Add the address in Settings → Integrations.IP_NOT_ALLOWED(The ERP sees this.) Add the ERP's address under Allowed addresses.
This integration is not allowed to do that. Add the missing permission to it in Settings → Integrations.SCOPE_MISSING(The ERP sees this.) Tick the missing permission with Change.
This integration token has expired. Create a new one in Settings → Integrations and update the ERP.TOKEN_EXPIRED(The ERP sees this.) Make a new token and put it in the ERP.