- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Create Auto Assignment Rules
Production
Production
POST
https://api.salla.dev/admin/v2/orders/assignment/rules
Order Assignment
Last modified:2025-01-30 10:30:12
Scopes
orders.read_write
- Orders Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
user_id
integerÂ
optional
rules
array [object {2}]Â
optional
entity
stringÂ
required
value
stringÂ
required
Example
{
"user_id": 2897329,
"rules": [
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/orders/assignment/rules' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": 2897329,
"rules": [
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
}'
Responses
🟢201Created Successfully
application/json
Body
status
integerÂ
optional
success
booleanÂ
optional
data
object (OrderAutoAssignment)Â
optional
id
integerÂ
required
user_id
integerÂ
required
rules
array [object {2}]Â
required
Example
{
"status": 201,
"success": true,
"data": {
"id": 123123123,
"user_id": 2897329,
"rules": [
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
}
}
🟠401Unauthorized
Modified at 2025-01-30 10:30:12