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 |
Authorization: Bearer ********************
{
"market_id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
"longitude": -73.935242,
"latitude": 40.730610,
"address": "2081 Sally Stravenue, Port Christinaberg",
"name_ar": "Port Christinaberg",
"name_en": "Port Christinaberg"
}
curl --location --request POST 'https://api.flavours.sa/dev/api/v2/branches' \
--header 'Content-Type: application/json' \
--data-raw '{
"market_id": "b5d70a92-5d2e-4f89-8e52-1827cfbd01f4",
"longitude": -73.935242,
"latitude": 40.730610,
"address": "2081 Sally Stravenue, Port Christinaberg",
"name_ar": "Port Christinaberg",
"name_en": "Port Christinaberg"
}'
{
"meta": {
"code": 0,
"status": "string",
"message": "string"
},
"data": {
"id": "string",
"market_id": "string",
"name_en": "string",
"name_ar": "string",
"address": "string",
"latitude": 0,
"longitude": 0,
"is_active": true,
"created_at": 0,
"updated_at": 0,
"deleted_at": null,
"expired_at": 0,
"waiting_orders_count": "string",
"process_orders_count": "string",
"completed_orders_count": "string",
"canceled_orders_count": "string",
"market": {
"id": "string",
"sector_id": 0,
"slug": null,
"name_en": "string",
"name_ar": "string",
"description_en": "string",
"description_ar": "string",
"logo_img": "string",
"cover_img": null,
"email": "string",
"phone_prefix": "string",
"phone": "string",
"crn": null,
"tax_number": "string",
"created_by": "string",
"email_verified_at": null,
"phone_verified_at": 0,
"created_at": 0,
"updated_at": 0,
"deleted_at": null,
"is_active": true,
"merchant_id": null,
"reseller_id": null,
"setting": {
"id": 0,
"market_id": "string",
"balance": 0,
"income": 0,
"receipt_message_en": null,
"receipt_message_ar": null,
"currency": "string",
"order_num_start": 0,
"is_tax_details": true,
"is_offline_calculate": true,
"country_code": "string",
"country_id": 0,
"subscription_key": "string",
"subscription_option_key": "string"
}
},
"setting": {
"id": 0,
"market_id": "string",
"branch_id": "string",
"is_kitchen_active": true,
"is_pay_later": true,
"invoice_prefix": null,
"zatca_otp": null,
"active_subscription": null
},
"location": null,
"plans": [
"string"
],
"schedules": [
"string"
],
"out_of_stock_products": [
"string"
]
}
}