Partner APIs let a Salla Partner read and manage their own partner-account data from their own systems, such as scripts, reports, BI tools or backends, without signing in to the Partners Portal.Every Partner API call acts on your partner company, using an access token you create in the Partners Portal. There is no OAuth flow and no merchant consent: the token belongs to your company, and it only reaches your company's data.
Partner API Token Format All calls to the Partner APIs go to https://api.salla.dev/partners/v1 and require an Authorization header in this format: Authorization: Bearer prtapi_<ACCESS_TOKEN>
Sign in to Salla Partners and go to Settings › Connections. Find the Partner API clients section.
2
Create a client
Click Create client. In Create Partner API client, enter a Client name (for example, Reporting service) and choose the Permissions the integration needs: tick a resource, then pick Read or Read and write. Click Create client.
3
Copy the access token
The client opens with its Credentials. Copy the Access token; it starts with prtapi_.
4
Call the API
Send the token in the Authorization header of every Partner API request.
Who can manage API clients?
Only partner users with the Manage company settings permission can see the Partner API clients section and create, edit or delete clients and their tokens. If the section doesn't appear for an account that has this permission, Partner API isn't enabled for your company yet; contact Salla Partners support.
Every request goes to the Partner API base URL with your token. Salla checks the token (401), the client's permissions (403) and the rate limit (429) before the request reaches the service that owns the data, and the answer only ever contains your company's data.
An API client represents one integration (for example, your reporting script). Each client has a name, a set of permissions, and its own access tokens.
Rule
Limit
API clients per company
Up to 5 active clients. Delete an existing client to create a new one.
Client name
Up to 100 characters, unique within your company.
Tokens per client
Up to 2 active tokens: an Access token and a Secondary access token.
Minimum tokens
A client always keeps at least 1 token. To remove the last one, delete the client.
Token format
prtapi_ followed by 48 letters and digits.
Token expiry
Tokens don't expire. They stay valid until you delete them or their client.
Use Show token or Copy token in the client's Credentials to get a token again later. Every time a token is shown or copied, it is recorded in your company's activity log. A few older tokens can't be shown again; for those, generate a secondary token, switch your integration to it, and delete the old one.
A client's tokens keep working until you delete them. The cycle is: create a client → copy its access token → call the API → when it's time to rotate, generate a secondary token → switch your integration → delete the old token, and keep calling with the new one. Rotate on your own schedule, or right away if a token may have leaked; deleting the client revokes all of its tokens at once.
Scopes define what an API client can access. In the portal you pick them as Permissions, per resource: Read or Read and write, grouped by service (Partners Portal, Experts Marketplace, Marketing). In the API they follow the format resource.read or resource.read_write:
GET requests need the read scope (or read_write).
Requests that change data (POST, PUT, PATCH, DELETE) need the read_write scope.
The affiliate endpoints in this section use the Marketing scopes:
Scope
Service
Grants
affiliates.read
Marketing
Read your affiliate links, their terms and their insights.
affiliates.read_write
Marketing
Everything in affiliates.read, plus create links and sub-links (sub-affiliates).
NOTE
More scopes will be added as new Partner API endpoints become available.
IDs such as a link id or an opportunity.id are opaque integers. Don't parse or compute them; pass them back as you received them (for example, a link id as parent_link_id or link_id, an opportunity.id as opportunity_id).
List endpoints use Salla's simple pagination. They accept page (default 1) and per_page (default 15, maximum 60; a larger value is capped, not rejected) and always return a cursor object next to data. There are no totals: request page = cursor.next until it is null.
Amounts are plain numbers, never formatted strings. The currency is given next to them (for example "currency": "SAR" in the insights); earnings and sales are always in SAR.
{"status":403,"success":false,"error":{"code":"insufficient_scope","message":"The access token needs one of these scopes: affiliates.read.","required_scopes":["affiliates.read"]}}
Status
error.code
Description
401
missing_token
No access token was sent, or it isn't a Partner API token (prtapi_…).
401
invalid_token
The token is invalid, expired or revoked. Generate a new token from Settings › Connections.
403
insufficient_scope
The client doesn't have the scope this endpoint needs. error.required_scopes lists the accepted scopes.
403
endpoint_not_accessible
This endpoint isn't available to Partner API clients.
404
page_not_found
The resource doesn't exist or doesn't belong to your partner company.
422
validation_error
A parameter is invalid. error.fields lists the messages per field.
422
parent_link_inactive
The parent link is inactive or expired, so a sub-link can't be created under it.
422
company_not_verified
Your partner company must be verified before it can create links.
422
affiliate_link_restricted
The opportunity doesn't allow this link right now (for example, outside its dates or for this opportunity type).
422
upstream_rejected
A Salla service rejected the request (for example, the coupon could not be created).
429
rate_limited
Too many requests. Wait error.retry_after seconds (also in the Retry-After header) before retrying.
429
request_in_progress
The same request is already being processed. Retry shortly.
502
upstream_error
A Salla service failed. Nothing was created; retry later.
503
auth_unavailable
Partner API authentication is temporarily unavailable. Retry shortly.
504
upstream_timeout
A Salla service didn't answer in time. Nothing was created; retry.
401 responses also include a WWW-Authenticate: Bearer realm="Salla Partner API" header.
Keep your tokens secret
Partner API tokens give access to your partner company's data.
Store them on your server only. Never put them in frontend code, mobile apps or public repositories.
If a token leaks, generate a new one and delete the leaked token right away.