- 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
Update Branch
Production
Production
PUT
https://api.salla.dev/admin/v2/branches/{branch}
Branches
Last modified:2025-02-02 12:23:10
branch
as a path parameter.Scopes
branches.read_write
- Branchs Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
branch
integer
required
Body Params application/json
name
string
optional
status
enum<string>
optional
Allowed values:
activeinactive
city_id
number
optional
country_id
number
optional
List of countries can be found here.
location
string
optional
cod_cost
string
optional
is_cod_available
boolean
optional
type
string
optional
is_default
boolean
optional
address_description
string
optional
additional_number
string
optional
building_number
string
optional
street
string
optional
local
string
optional
postal_code
string
optional
contacts
object
optional
phone
string
optional
whatsapp
string
optional
telephone
string
optional
preparation_time
string
optional
working_hours
object
optional
sunday
object
optional
sunday
, monday
, tuesday
, wednesday
, thursday
, friday
, saturday
Example
{
"name": "Riyadh",
"city_id": 1473353380,
"country_id": 1473353380,
"location": "37.78044939,-97.8503951",
"cod_cost": "15",
"is_cod_available": true,
"type": "branch",
"is_default": "on",
"address_description": "Dahran Old St",
"street": "Mubarraz",
"local": "Al-Hasa",
"postal_code": "7111",
"contacts": {
"phone": "+201099999999",
"whatsapp": "+201099999999",
"telephone": "+201099999999"
},
"preparation_time": "01:30",
"working_hours": {
"sunday": {
"enabled": "on",
"from": [
"08:00",
"19:00"
],
"to": [
"17:00",
"23:30"
]
}
}
}
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 PUT 'https://api.salla.dev/admin/v2/branches/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Riyadh",
"city_id": 1473353380,
"country_id": 1473353380,
"location": "37.78044939,-97.8503951",
"cod_cost": "15",
"is_cod_available": true,
"type": "branch",
"is_default": "on",
"address_description": "Dahran Old St",
"street": "Mubarraz",
"local": "Al-Hasa",
"postal_code": "7111",
"contacts": {
"phone": "+201099999999",
"whatsapp": "+201099999999",
"telephone": "+201099999999"
},
"preparation_time": "01:30",
"working_hours": {
"sunday": {
"enabled": "on",
"from": [
"08:00",
"19:00"
],
"to": [
"17:00",
"23:30"
]
}
}
}'
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
object (Branch)
optional
id
number
required
name
string
required
status
enum<string>
required
Allowed values:
activeinactive
location
object
required
street
string
required
address_description
string
required
additional_number
string
required
building_number
string
required
local
string
required
postal_code
string
required
contacts
object
required
preparation_time
string
required
is_open
boolean
required
open
or closed
closest_time
string | null
required
working_hours
array [object {2}]
required
branch.type is "branch"
is_cod_available
boolean
required
is_default
boolean
required
type
enum<string>
required
branch
or warehouse
Allowed values:
branchwarehouse
cod_cost
string
required
country
object (Country)
required
city
object (City)
required
Example
{
"status": 200,
"success": true,
"data": {
"id": 1846327032,
"name": "مركز الجمال",
"status": "active",
"location": {
"lat": "30.0778",
"lng": "31.2852"
},
"street": "الرحمة",
"address_description": "123 شارع الرحمة",
"additional_number": "6666",
"building_number": "6666",
"local": "omm",
"postal_code": "66666",
"contacts": {
"phone": "+966508265874",
"whatsapp": "+966508265874",
"telephone": "012526886"
},
"preparation_time": "6",
"is_open": true,
"closest_time": "09:00",
"working_hours": [
{
"name": "السبت",
"times": [
{
"from": "09:00",
"to": "23:55"
}
]
},
{
"name": "الأحد",
"times": [
{
"from": "09:00",
"to": "23:55"
}
]
},
{
"name": "الإثنين",
"times": [
{
"from": "09:00",
"to": "23:55"
}
]
},
{
"name": "الثلاثاء",
"times": [
{
"from": "09:00",
"to": "23:55"
}
]
},
{
"name": "الأربعاء",
"times": [
{
"from": "09:00",
"to": "23:55"
}
]
},
{
"name": "الخميس",
"times": [
{
"from": "09:00",
"to": "23:55"
}
]
},
{
"name": "الجمعة",
"times": [
{
"from": "19:00",
"to": "23:55"
}
]
}
],
"is_cod_available": true,
"is_default": true,
"type": "branch",
"cod_cost": "5.00",
"country": {
"id": 1723506348,
"name": "مصر",
"name_en": "Egypt",
"code": "EG",
"mobile_code": "+20"
},
"city": {
"id": 1355786303,
"name": "CAIRO",
"name_en": "CAIRO",
"country_id": 19384793843
}
}
}
🟠404Not Found
🟠422Error Validation
🟠401Unauthorized
Modified at 2025-02-02 12:23:10