Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Shipping Routes
  • Getting Started
  • Migration to the New API
  • Publish App
  • Change Log
  • Shipping Management
    • Create App
    • App Cycle
    • Setup App
    • Test App
  • Order Fulfilment
    • Create App
    • App Cycle
    • Setup App
    • Test App
  • Shipments
    • Create Shipment
      POST
    • List Shipments
      GET
    • Update Shipment Details
      PUT
    • Shipment Details
      GET
    • Cancel Shipments
      POST
    • Return Shipments
      POST
    • Shipment Tracking
      GET
  • Shipping Companies
    • List Shipping Companies
      GET
    • Shipping Company Details
      GET
  • Shipping Routes
    • Routes List
      GET
    • Route Details
      GET
    • Create Route
      POST
    • Update Route
      PATCH
    • Default Route
      PATCH
    • Delete Route
      DELETE
  1. Shipping Routes

Default Route

Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
PATCH
https://api.salla.dev/admin/v2
/shipping/routes/default
Last modified:2025-07-29 19:13:06
This endpoint allows you to view or update the default shipping route.
You can enable or disable the route, assign shipping companies, and set the selection strategy used at checkout.
This endpoint is accessable only for allowed applications.
Scopes
shipping.read_write - Shipping Read & Write

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "status": true,
    "companies": [
        {
            "id": 12981994637,
            "priority": 1
        }
        ,
        {
            "id": 566146469,
            "priority": 2
        }
    ]
    ,
    "strategy": {
        "type": "manual"
    }
}

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 PATCH 'https://api.salla.dev/admin/v2/shipping/routes/default' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status": true,
    "companies": [
        {
            "id": 12981994637,
            "priority": 1
        }
        ,
        {
            "id": 566146469,
            "priority": 2
        }
    ]
    ,
    "strategy": {
        "type": "manual"
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "success": true,
    "data": {
        "id": 1637823335,
        "name": "المسار الافتراضي",
        "status": true,
        "type": "default",
        "companies": [
            {
                "id": 1298199463,
                "priority": 1,
                "capacity": 0
            },
            {
                "id": 566146469,
                "priority": 2,
                "capacity": 0
            }
        ],
        "strategy": {
            "type": "manual"
        }
    }
}
🟠401Unauthorized
Modified at 2025-07-29 19:13:06
Previous
Update Route
Next
Delete Route