Connect Salla Store to Odoo ERP
Connect Salla store via OAuth, configure 29 webhook event topics, sync branch inventory, and handle refunds.
Salla OAuth Connection Steps
Connect your Salla store using the official Salla Partners OAuth authorization flow:
- Open your ERP Link dashboard and select your target workspace.
- Go to Connect Store and choose the Salla tab (
/app/connect-store/salla). - Click Connect Salla.
- You are redirected to Salla's authorization portal (
accounts.salla.sa/oauth2/auth). - Sign in as store owner and authorize the integration app.
- The system returns you to ERP Link with encrypted stored credentials.
Salla uses **single-use refresh tokens**. ERP Link implements an atomic mutex lock during token exchanges to prevent race conditions during concurrent webhook bursts.
Salla Scopes & Contexts
Required scopes include:
offline_access— Allows background token refresh without requiring manual merchant login.orders.read_write— Read orders and update fulfillment/shipping status.products.read_write— Read catalog and push branch inventory adjustments.customers.read— Resolve customer identities in Odoo.
29 Subscribed Webhooks & Dual-Path Auth
ERP Link registers 29 distinct webhook topics covering:
- Orders & Status:
order.created,order.updated,order.status.updated. - Payments & Logistics:
order.payment.updated,order.shipping.address.updated. - Returns & Refunds:
order.refunded. - Catalog & Stock:
product.created,product.updated,product.deleted.
Dual-Path Ingress Authentication:
Our webhook ingress verifies authenticity through two validated strategies:
- Native Salla HMAC-SHA256 signature verification.
- Derived workspace HKDF header verification (
X-ERP-Webhook-Secret).
Salla Branch Inventory Sync
Salla supports granular multi-branch stock levels. When inventory moves in Odoo:
- ERP Link calls Salla's bulk quantities API (
quantities/bulk). - The exact store branch mapped to the source Odoo warehouse is adjusted without disturbing unrelated store locations.
Salla Troubleshooting
- "invalid_grant" error during token refresh:
* *Cause:* A secondary authorization invalidated the single-use refresh token.
* *Resolution:* Click Reconnect in ERP Link's Salla connection tab.
- Skipped status on `app.uninstalled` event:
* *Explanation:* Expected safe behavior. The engine marks this event skipped to protect your historical accounting records.
Encountered an issue applying this guide?
Open a support ticket to have our engineering desk inspect logs directly.