Create
DevelopingPOST
/branchesValidation
Field | Type | Rule | Description |
---|---|---|---|
market_id |
string |
required |
Id from Market model |
name_en |
string |
required |
|
name_ar |
string |
nullable |
|
address |
string |
required |
|
latitude |
numeric |
required |
|
longitude |
numeric |
required |
Request
Body Params application/json
market_id
string
required
name_en
string
required
name_ar
string
required
address
string
required
latitude
number
required
longitude
number
required
Example
{
"market_id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
"longitude": -73.935242,
"latitude": 40.73061,
"address": "2081 Sally Stravenue, Port Christinaberg",
"name_ar": "Port Christinaberg",
"name_en": "Port Christinaberg"
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
code
integer
required
status
string
required
message
string
required
data
object
required
id
string
required
market_id
string
required
name_en
string
required
name_ar
string
required
address
string
required
latitude
number
required
longitude
number
required
is_active
boolean
required
created_at
integer
required
updated_at
integer
required
deleted_at
null
required
expired_at
integer
required
waiting_orders_count
string
required
process_orders_count
string
required
completed_orders_count
string
required
canceled_orders_count
string
required
market
object
required
setting
object
required
schedules
array[string]
required
out_of_stock_products
array[string]
required
Example
{
"meta": {
"code": 200,
"status": "success",
"message": "Create Success"
},
"data": {
"id": "6d38f931-7d26-4c36-a929-cd8f37eb1554",
"market_id": "5d4196d7-355a-48ef-9c50-add58cc440f1",
"name_en": "Port Christinaberg",
"name_ar": "Port Christinaberg",
"address": "2081 Sally Stravenue, Port Christinaberg",
"latitude": 40.73061,
"longitude": -73.935242,
"is_active": false,
"created_at": 1698599116117,
"updated_at": 1698599116117,
"deleted_at": null,
"expired_at": 1698599116127,
"waiting_orders_count": "0",
"process_orders_count": "0",
"completed_orders_count": "0",
"canceled_orders_count": "0",
"market": {
"id": "5d4196d7-355a-48ef-9c50-add58cc440f1",
"sector_id": 1,
"name_en": "First Restaurant",
"name_ar": "First Restaurant",
"description_en": "Ut maxime commodi natus id tenetur ullam. Repudiandae aut quia est perspiciatis facilis dolores repellendus ea eum. Iusto occaecati libero ea voluptas dolore qui qui maxime quod. Eum ut vel possimus sunt doloribus saepe repellendus et.",
"description_ar": "العظمى إستيلاء الأوروبية، حين عل. هو وبعد قتيل، العالمي ولم, يونيو مساعدة التاريخ، وصل تم. بـ سكان الجو اليابان تحت, يتم لأداء تكتيكاً قُدُماً ان. نفس موالية الجنوبي ما, أضف تم غضون أسابيع وقوعها،. وبدون ميناء الأمريكية فقد عل, قتيل، معارضة ضرب عن, دول وبعض لفرنسا تزامناً ثم. أي أدوات استبدال جعل. يكن لغات مشروط من.",
"logo_img": null,
"cover_img": null,
"email": "[email protected]",
"phone_prefix": "966",
"phone": "579112767",
"crn": null,
"tax_number": "12345611",
"created_by": null,
"email_verified_at": null,
"phone_verified_at": null,
"created_at": 1680271006362,
"updated_at": 1683019078189,
"deleted_at": null
},
"setting": {
"id": 66,
"market_id": "5d4196d7-355a-48ef-9c50-add58cc440f1",
"branch_id": "6d38f931-7d26-4c36-a929-cd8f37eb1554",
"is_kitchen_active": true,
"subscription_type": null,
"is_pay_later": false
},
"schedules": [],
"out_of_stock_products": []
}
}
Last modified: 3 months ago