Skip to content
Portalby Webisoft®Book a demo

Learn

A REST API and webhooks for your ERP

Connect your ERP to Portal, then create an API key under Developers. Your systems call one versioned REST API for customers, products, prices, orders, quotes, invoices, payments and shipments, and receive signed webhooks when they change.

01How it works

The idea.

Every ERP has its own API, or none, with its own authentication, limits and version changes. Each app you build on it inherits all of that.

Portal puts one REST API in front of whichever ERP you run. Resources include customers, contacts, products, prices, orders, quotes, returns, invoices, payments, shipments, intake, approvals and workflows. Every request carries a dated Portal-Version header, so your code keeps working when the API changes. POST requests accept an Idempotency-Key, so a retried order is never placed twice. Writes reach the ERP through the same command queue as the portal itself.

Webhooks tell your systems when an order, quote or return is created, confirmed or rejected, a shipment is updated, an approval is created or decided, or a message is triaged. Each delivery is signed with HMAC-SHA256 and retried for about three days if your endpoint fails.

02Steps

Set it up.

  1. Connect your ERP to Portal

    An admin opens Setup, ERP, ERP system, chooses the ERP and fills in its settings: an address and API credentials for cloud ERPs, or a Connect button for ERPs that sign in with OAuth. Test connection confirms Portal can read it. ERPs that run on your own servers use the On-site connector instead, covered in its own tutorial.

  2. Create an API key

    In Developers, API keys, choose Create secret key, which acts with your permissions, or Create restricted key, which gets only the scopes you tick. You can limit a key to IP addresses and set its own rate limit. The key is shown once.

  3. Call the API

    Send requests to /v1/ with an Authorization bearer header and the Portal-Version header. The OpenAPI description is at /v1/openapi.json. The default account limits are 100 reads and 50 writes per second.

  4. Add a webhook endpoint

    In Developers, Webhooks, choose Add endpoint, enter a public HTTPS address and pick the events. Copy the signing secret, which is shown once, and use Send a test event to check your receiver.

  5. Build against the test sandbox

    Developers, Test sandbox copies your customers, catalog, prices and stock onto a demo ERP, so test keys can place orders without touching your real ERP.

03By ERP

Pick your ERP.

04FAQ

Questions, answered.

Is the API the same for every ERP?

Yes. Your code talks to Portal's API; Portal handles each ERP's own API or agent behind it.

How are webhooks secured?

Each delivery has a Portal-Signature header with a timestamp and an HMAC-SHA256 signature made with your endpoint's secret. Only public HTTPS endpoints are accepted.

Can a key do anything an admin can?

No. Admin permissions such as users, keys and connector settings are never granted to a key, and a key never has more access than the person who made it.