> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trypopcorn.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Salla

> Connect your Salla store, see what syncs, sync shipping methods, which events trigger campaigns, and how the Salla App Store subscription applies.

Connect Salla so your AI agent sells from your live Salla catalog, creates orders in Salla with your store's payment methods, tracks orders, and keeps your customer list current. If you subscribe to Popcorn through the Salla App Store, the subscription is applied to this workspace through the same connection.

## Before you start

* A Salla store you can sign in to.
* A Popcorn role that can manage integrations (**Owner** or **Admin**).
* Allow pop-ups for Popcorn: the authorization opens in a pop-up window.

## Connect

**1. Open Integrations**

Go to **Integrations** and click **Connect** on the **Salla** row.

**2. Approve access**

A pop-up opens on Salla. Sign in and approve the access Salla lists for Popcorn (products, orders, customers and store notifications).

**3. Wait for confirmation**

The pop-up closes on its own. Popcorn shows **Salla connected** and the row reads **Connected**. If the pop-up closes without connecting, you see **Couldn't connect to Salla. Try again.** Click **Connect** again.

## What happens when you connect

* Popcorn saves your merchant account and store domain.
* Popcorn subscribes to Salla notifications for product creation, updates and deletion, order updates, and customer creation and updates.
* A full product import and a full customer import start in the background. The row shows **Resyncing products…** until the product import finishes.
* Active [automated campaigns](https://docs.trypopcorn.ai/campaigns/automated-campaigns.md) get their Salla triggers re-registered, so **Reconnect** also repairs campaigns that stopped firing.

> [!NOTE]
>
> If you connected Salla before customer sync existed, click **Reconnect** once. The customer permission is only granted during authorization, and customer import starts after it.

## What syncs

**Products**

* Name, description (formatting removed), images, product link and tags (used as search keywords).
* Prices. When your store applies tax to a product, Popcorn stores the price including tax; the discounted price is the taxed sale price. Otherwise the regular price and sale price are used as they are.
* A product is active in Popcorn when it is on sale in Salla.
* Quantity. A product with unlimited quantity in Salla is treated as always available.
* Variants. Popcorn creates, updates and removes variants to match Salla.
* Salla product custom options are not imported.

**Customers**

* First and last name, mobile number with country code, and email.
* Salla customer groups and tags become customer tags in Popcorn.
* Each imported customer shows **Salla** as its source on the customer profile. See [customers](https://docs.trypopcorn.ai/customers/overview.md).

## Ongoing updates

| Change in Salla | Effect in Popcorn |
| - | - |
| Product created or updated | Added or updated in **Products**, and pushed to your Meta catalog if one is connected. |
| Product deleted | Removed from **Products**. |
| Order updated with payment confirmed | An order the agent created in Salla is marked paid. |
| Customer created or updated | Added or updated in **Customers**. |

To force a fresh import at any time, click **Resync products** on the Salla row. See [Connect your store](https://docs.trypopcorn.ai/integrations/overview.md) for the resync limits.

## Checkout and payment

When the agent completes a sale, Popcorn creates the order in Salla. The confirmation message gives the customer Salla's own order number and the total Salla reports, and the order in Popcorn shows that total and Salla's shipping cost. For a payment link, the customer receives Salla's checkout link for that order. The payment methods offered on the order are the ones your Salla store has active among credit card, mada, bank transfer and cash on delivery.

A new workspace starts with **Cash on delivery** on. Manage the options under **Settings → Payment**; if none is on, the agent doesn't create the order and hands the conversation over. See [shipping and payment](https://docs.trypopcorn.ai/settings/shipping-and-payment.md) and [orders](https://docs.trypopcorn.ai/orders/overview.md).

## Shipping methods

Under **Settings → Shipping**, click **Sync from store** to open **Sync shipping from your store** and import your Salla shipping companies:

* Each company arrives with its fee and its expected delivery time (minimum and maximum days) taken from your Salla shipping zones.
* Coverage is built from your zones: specific cities, whole countries, or every country when a zone covers all countries.
* Choose the methods to sync, adjust each one's fee and delivery time if needed, and click **Sync methods**. Methods already in Popcorn are marked **Already synced**; the others are marked **New**. Methods active in Popcorn but turned off or missing in Salla are listed under "These methods are active in Popcorn AI but turned off or missing in your store." Select them and click **Deactivate** so your agent stops offering them.

## Order tracking

When a customer asks about an order, the agent looks it up in Salla by order number and checks that the customer's phone number matches the order; a mismatch is refused. If the customer quotes Popcorn's own order number (as on **Orders**, "P" and six digits), Popcorn finds the Salla order behind it. With only a phone number, the agent finds the customer in Salla and returns their five most recent orders. Switch on **Track orders** on the agent's **Actions** tab to use this; see [agent capabilities](https://docs.trypopcorn.ai/agents/capabilities.md).

## Events for automated campaigns

These Salla events are available as triggers when you create an [automated campaign](https://docs.trypopcorn.ai/campaigns/automated-campaigns.md):

| Group | Events |
| - | - |
| Orders | **Order Created**, **Order Updated**, **Order Status Updated**, **Order Payment Updated**, **Order Products Updated**, **Order Coupon Updated**, **Order Total Price Updated**, **Order Shipping Address Updated**, **Order Customer Updated**, **Order Cancelled**, **Order Refunded**, **Order Deleted**, **Invoice Created**, **Review Added** |
| Carts | **Abandoned Cart**, **Abandoned Cart Updated**, **Coupon Applied** |
| Customers | **Customer Created**, **Customer Updated** |
| Order shipments | **Order Shipment Creating**, **Order Shipment Created**, **Order Shipment Cancelled**, **Order Return Shipment Creating**, **Order Return Shipment Created**, **Order Return Shipment Cancelled** |
| Shipments | **Shipment Creating**, **Shipment Created**, **Shipment Updated**, **Shipment Cancelled** |

For abandoned-cart messages, Popcorn checks whether that customer has placed an order since the cart was abandoned and skips the message if they have.

## Subscription through the Salla App Store

If you subscribe to a Popcorn plan inside the Salla App Store, Salla notifies Popcorn and the plan is applied to the workspace whose connected Salla store matches:

* Subscription started, renewed, or trial started: the plan becomes active until the end date Salla reports. Popcorn recognises the **Salt** and **Cheese** plans by name; a plan name it does not recognise is treated as the free plan.
* Subscription canceled or expired, trial canceled or expired: the plan ends at the end date Salla reports.

Connect your store in Popcorn before subscribing. Popcorn matches the subscription to your workspace through the connected store, so a subscription event that arrives before the store is connected cannot be applied. See [plans and credits](https://docs.trypopcorn.ai/billing/plans-and-credits.md).

## Related

* [Connect your store](https://docs.trypopcorn.ai/integrations/overview.md)
* [Store health](https://docs.trypopcorn.ai/integrations/commerce-health.md)
* [Troubleshooting](https://docs.trypopcorn.ai/integrations/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.