Manage products, orders, customers, categories, coupons and brands in Salla, the Saudi e-commerce platform.
Salla ships in the w6w first-party pack. It declares 31 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.sallaSalla is a Saudi e-commerce platform that lets merchants run an online store. This app covers the Salla Merchant API (api.salla.dev/admin/v2): products (including lookup by SKU and availability changes), orders (list, details, status changes, history notes), customers, categories, brands, discount coupons and the store’s own details.
Every path, verb, query parameter and body field was read on 2026-10-06 from Salla’s own OpenAPI pages at docs.salla.dev and its guides, plus a live check of the Instatus page at status.salla.com.
Three details are easy to get wrong: a 401 can mean a missing OAuth scope rather than a bad token; refresh tokens rotate and are single-use, so a second use revokes the whole grant; and per_page is capped at 60 with a plan-dependent rate limit.
Three routes to the same 31 actions. The Workflow tab is generated from Salla's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
category-update Update a category. Salla's reference lists `name` as required on update. Needs the `categories.read_write` scope.
coupon-create Create a single coupon. Group and marketer coupons need their extra documented fields via Additional fields. Needs the `marketing.read_write` scope.
coupon-update Update a coupon. Only the fields you send change. Needs the `marketing.read_write` scope.
customer-create Create a customer. Email and mobile number are unique per store. Needs the `customers.read_write` scope.
customer-list List the store's customers. Customer endpoints have their own limit of 500 requests per 10 minutes. Needs the `customers.read` scope.
customer-update Update a customer. Only the fields you send change. Needs the `customers.read_write` scope.
order-get Fetch one order with its items, customer, shipping and payment. Needs the `orders.read` scope.
order-history-create Add a note to an order's history. Needs the `orders.read_write` scope.
order-history-list List the status history of an order. Needs the `orders.read` scope.
order-status-list List the store's order statuses, including custom sub-statuses. Needs the `orders.read` scope.
order-status-update Move an order to a predefined status (`slug`) or a custom sub-status (`status_id`). Needs the `orders.read_write` scope.
product-change-status Set a product's availability to sale, out of stock or hidden. Needs the `products.read_write` scope.
product-create Create a product. Product types other than `product` need further documented fields via Additional fields. Needs the `products.read_write` scope.
product-get-by-sku Fetch one product by its SKU. Needs the `products.read` scope.
product-list List the store's products, filtered by keyword (name or SKU), status or category. Needs the `products.read` scope.
product-update Update a product. Only the fields you send change. Needs the `products.read_write` scope.
store-info-get Fetch the store's own details: name, plan, status, currency, domain and default branch. Needs the `settings.read` scope.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Salla's real ids.
{
"manifestVersion": "2",
"name": "salla-example",
"steps": [
{
"id": "brand-get",
"uses": {
"app": "io.w6w.salla",
"action": "brand-get",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"brand_id": "<brand_id>"
}
}
]
}brand-get brand-list category-create category-get category-list +26 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Salla, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Salla. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "brand-get",
payload: {
brand_id: "<value>",
// with: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action brand-get --payload '{"brand_id":"<value>"}' Give an AI agent Salla — without giving it Salla's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.salla#brand-get",
"input": {
"brand_id": "<brand_id>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Salla connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Salla's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Salla itself is MIT, and the runtime that executes it is source-available (FSL).
Salla declares its own checks, so its health is a property of the app rather than something the host guesses at.
Status of the `Merchant APIs` component on Salla's Instatus page (status.salla.com). The storefront, dashboard and website components are unrelated to this API and are ignored.
Requests remaining in the current minute, read off X-RateLimit-Limit / X-RateLimit-Remaining / X-RateLimit-Reset on a GET /store/info.