First-party app
Salla Salla

Salla

Manage products, orders, customers, categories, coupons and brands in Salla, the Saudi e-commerce platform.

stable Commerce & Payments

About

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.

App id
io.w6w.salla
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Commerce & Payments

Overview

Salla 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.

Build with Salla

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.

Get Brand

brand-get

Fetch one brand by ID. Needs the `brands.read` scope.

List Brands

brand-list

List the store's brands. Needs the `brands.read` scope.

Create Category

category-create

Create a category. Needs the `categories.read_write` scope.

Delete Category

category-delete

Delete a category by ID. Needs the `categories.read_write` scope.

Get Category

category-get

Fetch one category by ID. Needs the `categories.read` scope.

List Categories

category-list

List the store's categories. Needs the `categories.read` scope.

Update Category

category-update

Update a category. Salla's reference lists `name` as required on update. Needs the `categories.read_write` scope.

Create Coupon

coupon-create

Create a single coupon. Group and marketer coupons need their extra documented fields via Additional fields. Needs the `marketing.read_write` scope.

Delete Coupon

coupon-delete

Delete a coupon by ID. Needs the `marketing.read_write` scope.

Get Coupon

coupon-get

Fetch one coupon by ID. Needs the `marketing.read` scope.

List Coupons

coupon-list

List the store's discount coupons. Needs the `marketing.read` scope.

Update Coupon

coupon-update

Update a coupon. Only the fields you send change. Needs the `marketing.read_write` scope.

Create Customer

customer-create

Create a customer. Email and mobile number are unique per store. Needs the `customers.read_write` scope.

Delete Customer

customer-delete

Delete a customer by ID. Needs the `customers.read_write` scope.

Get Customer

customer-get

Fetch one customer by ID. Needs the `customers.read` scope.

List Customers

customer-list

List the store's customers. Customer endpoints have their own limit of 500 requests per 10 minutes. Needs the `customers.read` scope.

Update Customer

customer-update

Update a customer. Only the fields you send change. Needs the `customers.read_write` scope.

Get Order

order-get

Fetch one order with its items, customer, shipping and payment. Needs the `orders.read` scope.

Add Order Note

order-history-create

Add a note to an order's history. Needs the `orders.read_write` scope.

List Order History

order-history-list

List the status history of an order. Needs the `orders.read` scope.

List Orders

order-list

List orders with Salla's documented filters. Needs the `orders.read` scope.

List Order Statuses

order-status-list

List the store's order statuses, including custom sub-statuses. Needs the `orders.read` scope.

Update Order Status

order-status-update

Move an order to a predefined status (`slug`) or a custom sub-status (`status_id`). Needs the `orders.read_write` scope.

Change Product Status

product-change-status

Set a product's availability to sale, out of stock or hidden. Needs the `products.read_write` scope.

Create Product

product-create

Create a product. Product types other than `product` need further documented fields via Additional fields. Needs the `products.read_write` scope.

Delete Product

product-delete

Delete a product by ID. Needs the `products.read_write` scope.

Get Product

product-get

Fetch one product by ID. Needs the `products.read` scope.

Get Product by SKU

product-get-by-sku

Fetch one product by its SKU. Needs the `products.read` scope.

List Products

product-list

List the store's products, filtered by keyword (name or SKU), status or category. Needs the `products.read` scope.

Update Product

product-update

Update a product. Only the fields you send change. Needs the `products.read_write` scope.

Get Store Information

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>"
      }
    }
  ]
}

Here are some of the things you can do

  • Get Brand

    read
    brand-get
  • List Brands

    search
    brand-list
  • Create Category

    perform
    category-create
  • Get Category

    read
    category-get
  • List Categories

    search
    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.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { 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);
Install the CLI
npm install -g @w6w/cli
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.

What the agent gets

Credentials it can't read

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.

A tool surface scoped to the caller

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.

A durable workflow in one call

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.

Health-aware discovery

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).

Request MCP access

Health checks

Salla declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Salla Merchant API status

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.

quota

API rate-limit headroom

Requests remaining in the current minute, read off X-RateLimit-Limit / X-RateLimit-Remaining / X-RateLimit-Reset on a GET /store/info.