Salla Docs
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
  • Report Builder
  • App Onboarding
  • Communication Apps
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
  • Report Builder
  • App Onboarding
  • Communication Apps
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Branches
  • 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
      • Create Order
      • Relocate Order Stock
      • External Orders
      • List Orders
      • Order Details
      • Create Drafted Order
      • Update Order
      • Duplicate Order
      • Order Actions
    • Order Status
      • Update Order Status
      • Create Custom Order Status
      • List Order Statuses
      • Order Status Details
      • Update Custom Order Status
      • Update Bulk Orders Statuses
      • Sort Orders Statuses
    • Order Histories
      • List Order Histories
      • Create Order History
    • Order Options
      • Create Order Option
      • Update Order Option
      • List Order Options
      • Delete Order Options
      • Order Option Details
    • Order Invoice
      • Create Invoice
      • List Invoices
      • Invoice Details
      • Send Order Invoice
      • Create Order Invoice
    • Order Items
      • List Order Items
      • Create Order Item
      • Update Order Item
      • Delete Order Item
    • Order Reservations
      • List Order Reservations
    • Order Assignment
      • List Auto Assignment Rules
      • Update Auto Assignment Rule
      • Create Auto Assignment Rules
      • Order Assigned Employees Details
    • Products
      • Create Product
      • List Products
      • Product Details
      • Update Product
      • Delete Product
      • Change Product Status
      • Product Details By SKU
      • Update Product By SKU
      • Delete Product By SKU
      • Update Product Price By SKU
      • Update Bulk Product Prices
      • Import Products
      • Bulk Product Actions
    • Product Images
      • Attach Image by SKU
      • Attach Video by SKU
      • Attach Youtube Video
      • Attach Image
      • Update Image
      • Delete Image
    • Product Tags
      • Create Product Tag
      • List Product Tags
    • Digitals Product
      • Attach Digital Code
      • Attach Digital File
      • Delete Digital File
    • Product Options
      • Create Product Option
      • Product Option Details
      • Update Product Option
      • Delete Product Option
    • Product Option Values
      • Create Product Option Value
      • Product Option Value Details
      • Update Product Option Value
      • Delete Product Option Value
    • Product Quantity
      • Update Bulk Quantities
      • List Product Quantities
      • List Quantity Change Reasons
      • List Quantity Audit
    • Product Variants
      • List Product Variants
      • Product Variant Details
      • Update Product Variant
      • Update Product Variant Quantity
    • Product Option Templates
      • List Option Templates
      • Option Template Details
      • Delete Option Template
      • Update Option Template
      • Create Option Template
    • Store Scopes
      • List Store Scopes
      • Store Scope Details
    • Brands
      • Create Brand
      • List Brands
      • Brand Details
      • Update Brand
      • Delete Brand
    • Categories
      • Create Category
      • List Categories
      • Category Details
      • Update Category
      • Delete Category
      • Category Children
      • Categories Search
      • List Category Products
    • Customers
      • Create Customer
      • List Customers
      • Customer Details
      • Update Customer
      • Delete Customer
      • Ban Customer
      • Un-Ban customer
      • Import Customers
    • Customer Groups
      • Create Customer Group
      • List Customer Groups
      • Add Customers To Group Customer
      • Update Default Customer Group
      • Update Customer Group
      • Delete Customer Group
    • Customer Wallet
      • Deposit to Wallet
      • Withdraw from Wallet
    • Abandoned Carts
      • List Abandoned Carts
      • Abandoned Cart Details
    • Special Offers
      • Create Special Offer
      • List Special Offers
      • Special Offer Details
      • Update Special Offer
      • Delete Special Offer
      • Change Special Offer Status
    • Affiliates
      • Create Affiliate
      • List Affiliates
      • Affiliate Details
      • List Affiliate Links
      • Update Affiliate
      • Delete Affiliate
    • Coupons
      • Create Coupon
      • List Coupons
      • Coupon Details
      • Update Coupon
      • Delete Coupon
      • List Coupon Codes
    • Reviews
      • List Reviews
      • Review Details
      • Update Review
    • Feedbacks
      • List Feedbacks
      • Feedback Details
      • Update Feedback
      • Store Feedback
      • Feedback Reply
      • Update Feedback Reply
    • Branches
      • Create Branch
        POST
      • List Branches
        GET
      • Branch Details
        GET
      • Update Branch
        PUT
      • Delete Branch
        DELETE
    • Branches Allocations
      • List Branches Allocations
      • Create Branches Allocations
      • Update Branches Allocations
      • Delete Branches Allocations
      • Branch Allocation Details
      • Allocation Branch Settings
    • Shipments
      • Create Shipment
      • List Shipments
      • Update Shipment Details
      • Shipment Details
      • Cancel Shipment
      • Return Shipment
      • Shipment Tracking
    • Shipping Companies
      • Create Shipping Company
      • Shipping Company Options
      • List Shipping Companies
      • Shipping Company Details
      • Update Shipping Company
      • Delete Shipping Company
      • List Estimate Rates
    • Shipping Zones
      • Create Shipping Zone
      • List Shipping Zones
      • Shipping Zone Details
      • Update Shipping Zone
      • Delete Shipping Zone
    • Shipping Routes
      • Routes List
      • Route Details
      • Create Route
      • Update Route
      • Default Route
      • Delete Route
    • Shipping Delivery Promises
      • List Delivery Promises
      • Delivery Promise Details
      • Update Delivery Promise
    • Countries
      • List Countries
      • Country Details
    • Cities
      • List Cities
    • Districts
      • List Districts
    • Settings
      • Settings List
      • Update Setting Slug
      • Setting Details
    • Exports
      • Export Orders
      • Exports Logs
      • List Export Templates
      • Create Export Template
      • Update Export Template
      • Delete Export Template
      • List Export Columns
      • Export Customers
      • Export Custom URLs
      • Export Products
    • Transactions
      • List Transactions
      • Transaction Details
      • Print Transaction Invoice
      • Update Transaction
    • Payments
      • Available Payment Methods
      • List Banks
      • Payment Bank Details
    • Currencies
      • Activate Currencies
      • List Currencies
      • List Available Currencies
    • Taxes
      • Create Tax
      • List Taxes
      • Tax Details
      • Update Tax
      • Delete Tax
    • Merchant
      • User Information Details
      • Store Information
    • SEO
      • List SEO Settings
      • Update SEO Settings
    • DNS Records
      • List DNS Records
      • Create DNS Record
      • Delete DNS Record
    • Languages
      • Add Language
      • List Languages
      • Update Language
    • Employees
      • List Employees
    • Advertisements
      • Create Advertisement
      • List Advertisements
      • Advertisement Details
      • Update Advertisement
      • Delete Advertisement
    • Webhooks
      • Register Webhook
      • Update Webhook
      • List Active Webhooks
      • List Events
      • Deactivate Webhook
    • Custom URLs
      • Import Custom URLs
    • Loyalty Points
      • Customer Loyalty Points
      • Update Customer Loyalty Points
    • Branch Delivery Zones
      • List Branch Delivery Zones
      • Branch Delivery Zone Details
      • Create Branch Delivery Zone
      • Update Branch Delivery Zone
      • Delete Branch Delivery Zone
  • Webhooks - Store Events
    • Shippings
    • Brand
    • Product
    • Category
    • Store
    • Special Offer
    • Cart
    • Shipments
    • Miscellaneous
    • Invoice
    • Order
    • Customer
    • Communication Webhooks
  1. Branches

Update Branch

Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
PUT
https://api.salla.dev/admin/v2
/branches/{branch}
Last modified:2026-04-16 15:25:25
This endpoint allows you to update branch details by passing the branch as a path parameter.
Scopes
branches.read_write- Branchs Read & Write

Request

Path Params

Body Params application/json

Example
{
    "name": "فرع الرئيسي ",
    "additional_number": "2356",
    "address_description": "7124 طريق الأمير سلطان بن عبدالعزيز، العليا، الرياض 12211، السعودية",
    "building_number": "1245",
    "branch_code": "BR-6789",
    "city_id": 566146469,
    "country_id": 1473353380,
    "region_id": 566146469,
    "district_id": 238193309,
    "postal_code": "23341",
    "street": "الرياضه",
    "type": "branch",
    "shippable": true,
    "pickable": true,
    "pos": true,
    "external_reference": "ASD123",
    "location": "24.6888248, 46.68632700000001",
    "users": [
        1615959792
    ],
    "short_address": "FGJU8765",
    "local": "الزمرد",
    "preparation_time": "30 دقيقة",
    "cod_cost": 20,
    "always_open": false,
    "order_while_closed": true,
    "preparation_time_range": {
        "from": {
            "value": 2,
            "unit": "minute"
        },
        "to": {
            "value": 15,
            "unit": "minute"
        }
    },
    "safety_stock": 10,
    "working_hours": {
        "saturday": {
            "enabled": "on",
            "from": [
                "07:00"
            ],
            "to": [
                "18:00"
            ]
        },
        "sunday": {
            "enabled": "on",
            "from": [
                "07:00"
            ],
            "to": [
                "18:00"
            ]
        },
        "monday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "tuesday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "wednesday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "thursday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "friday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        }
    },
    "is_cod_available": false,
    "contacts": {
        "phone": "+966555555555",
        "telephone": "+966555555555",
        "whatsapp": "+966555555555",
        "phone_country_code": "SA",
        "whatsapp_country_code": "SA"
    },
    "translations": {
        "ar": {
            "name": "فرع الرئيسي ",
            "address_description": "7124 طريق الأمير سلطان بن عبدالعزيز، العليا، الرياض 12211، السعودية",
            "street": "الرياضه"
        }
    }
}

Request Code 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 PUT 'https://api.salla.dev/admin/v2/branches/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "فرع الرئيسي ",
    "additional_number": "2356",
    "address_description": "7124 طريق الأمير سلطان بن عبدالعزيز، العليا، الرياض 12211، السعودية",
    "building_number": "1245",
    "branch_code": "BR-6789",
    "city_id": 566146469,
    "country_id": 1473353380,
    "region_id": 566146469,
    "district_id": 238193309,
    "postal_code": "23341",
    "street": "الرياضه",
    "type": "branch",
    "shippable": true,
    "pickable": true,
    "pos": true,
    "external_reference": "ASD123",
    "location": "24.6888248, 46.68632700000001",
    "users": [
        1615959792
    ],
    "short_address": "FGJU8765",
    "local": "الزمرد",
    "preparation_time": "30 دقيقة",
    "cod_cost": 20,
    "always_open": false,
    "order_while_closed": true,
    "preparation_time_range": {
        "from": {
            "value": 2,
            "unit": "minute"
        },
        "to": {
            "value": 15,
            "unit": "minute"
        }
    },
    "safety_stock": 10,
    "working_hours": {
        "saturday": {
            "enabled": "on",
            "from": [
                "07:00"
            ],
            "to": [
                "18:00"
            ]
        },
        "sunday": {
            "enabled": "on",
            "from": [
                "07:00"
            ],
            "to": [
                "18:00"
            ]
        },
        "monday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "tuesday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "wednesday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "thursday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        },
        "friday": {
            "enabled": "on",
            "from": [
                "00:00"
            ],
            "to": [
                "23:00"
            ]
        }
    },
    "is_cod_available": false,
    "contacts": {
        "phone": "+966555555555",
        "telephone": "+966555555555",
        "whatsapp": "+966555555555",
        "phone_country_code": "SA",
        "whatsapp_country_code": "SA"
    },
    "translations": {
        "ar": {
            "name": "فرع الرئيسي ",
            "address_description": "7124 طريق الأمير سلطان بن عبدالعزيز، العليا، الرياض 12211، السعودية",
            "street": "الرياضه"
        }
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "success": true,
    "data": {
        "id": 999858679,
        "name": "فرع الرئيسي - الرياض",
        "status": "active",
        "is_default": true,
        "location": {
            "lat": "24.6888248",
            "lng": " 46.68632700000001"
        },
        "short_address": "JCMA3429",
        "street": "الرياضه",
        "address_description": "7124 طريق الأمير سلطان بن عبدالعزيز، العليا، الرياض 12211، السعودية",
        "additional_number": "6558",
        "fulfillment_center": {
            "id": 1473353380,
            "external_reference": "ASD123"
        },
        "building_number": "3429",
        "local": "العمل",
        "postal_code": "23341",
        "contacts": {
            "phone": "+966555555555",
            "telephone": "+966555555555",
            "whatsapp": "+966555555555"
        },
        "preparation_time": "30 دقيقة",
        "is_open": true,
        "closest_time": null,
        "users": [
            {
                "id": 1615959792,
                "name": "test user"
            }
        ],
        "working_hours": [
            {
                "name": "السبت",
                "times": [
                    {
                        "from": "07:00",
                        "to": "18:00"
                    }
                ]
            },
            {
                "name": "الأحد",
                "times": [
                    {
                        "from": "07:00",
                        "to": "18:00"
                    }
                ]
            },
            {
                "name": "الإثنين",
                "times": [
                    {
                        "from": "00:00",
                        "to": "23:00"
                    }
                ]
            },
            {
                "name": "الثلاثاء",
                "times": [
                    {
                        "from": "00:00",
                        "to": "23:00"
                    }
                ]
            },
            {
                "name": "الأربعاء",
                "times": [
                    {
                        "from": "00:00",
                        "to": "23:00"
                    }
                ]
            },
            {
                "name": "الخميس",
                "times": [
                    {
                        "from": "00:00",
                        "to": "23:00"
                    }
                ]
            },
            {
                "name": "الجمعة",
                "times": [
                    {
                        "from": "00:00",
                        "to": "23:00"
                    }
                ]
            }
        ],
        "is_cod_available": true,
        "is_stock": true,
        "type": "branch",
        "cod_cost": 20,
        "branch_code": "BR-6789",
        "region": {
            "id": 1473353380,
            "name": "منطقة الرياض",
            "code": "RD"
        },
        "pickable": true,
        "shippable": true,
        "pos": true,
        "has_delivery_zone": false,
        "always_open": false,
        "order_while_closed": true,
        "safety_stock": 10,
        "preparation_time_range": {
            "from": {
                "value": 2,
                "unit": "minute"
            },
            "to": {
                "value": 15,
                "unit": "minute"
            }
        },
        "country": {
            "id": 1473353380,
            "name": "السعودية",
            "name_en": "Saudi Arabia",
            "code": "SA",
            "mobile_code": "+966",
            "capital": null
        },
        "city": {
            "id": 1473353380,
            "name": "الرياض",
            "name_en": "Riyadh",
            "country_id": 1473353380
        },
        "district": {
            "id": 1473353380,
            "name": "العمل",
            "name_en": "Al Amal"
        }
    }
}
🟠404Not Found
🟠422Error Validation
🟠401Unauthorized
Modified at 2026-04-16 15:25:25
Previous
Branch Details
Next
Delete Branch