ERP integration, with the fewest permissions.
For the IT team: what the connector reads and writes, with which permissions, and what happens when a write fails. Shown against a sample ERP with the fictional data of Distribuidora Cordal.
Sample ERPA sample ERP built for this demonstration, in memory. It is not any vendor’s product. Its stock comes from the sample catalog and each customer’s balance is sample data.
What the connector may do
Sample datainventory:readRead stockcustomers:readRead the customer's balance and credit limitorders:draft:writeCreate draft orders
What it never does
orders:postConfirm or post ordersinvoices:writeIssue invoicesprices:writeChange pricesrecords:deleteDelete records
Those permissions are not in the connector’s token. A person uses them in the ERP.
Run the integration
A sample quote goes through the connector: stock and credit are checked and the draft order is created. By default the first write loses its answer, to show the retry.
Try a permission the connector does not have
Each button tries a call outside its permissions. The ERP refuses it.
What the audit log keeps
- The date and time of each call, and how long it took.
- The connector that called and the permission it used. The token is not kept.
- Method, path and response status.
- The attempt number and idempotency key of each write.
It keeps no text from customer messages. In this demonstration the log lives only in memory and is cleared on restart.