Light Mode
Update Branch
PUT
/branches/{branch}Last modified: 25 days ago
This endpoint allows you to update branch details by passing the branch
as a path parameter.
Request
Path Params
branch
integer
required
The Branch ID. List of Branch IDs can be found here.
Body Params application/json
No schema defined
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
Responses
Success(200)
Not Found(404)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
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": null,
"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
}
}
}
Last modified: 25 days ago