Flavours Partner API
Branch

Detail Branch

GET
/api/v2/branches/{branchId}

Get details of a specific branch by its ID.

Authorization

API-TOKEN
API-TOKEN<token>

Your partner API key. Send it in the API-TOKEN header on every request.

In: header

Path Parameters

branchId*string

Query Parameters

includes*array<>

Header Parameters

X-API-Version*string

API contract version to target. See the Changelog for what changed in each version.

Default"2.0.0"
Value in"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.flavours.sa/dev/api/v2/branches/excepturi?includes=non" \  -H "X-API-Version: 2.3.0"
{
  "meta": {
    "code": 200,
    "status": "success",
    "message": "Branch retrieved successfully."
  },
  "data": {
    "id": "716ba96a-6dc2-4fe9-93a4-fbba01d9f1fc",
    "market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
    "name_en": "Schumm Group",
    "name_ar": "Schumm Group",
    "address": "92436 Hahn Loop Suite 070\nNew Kaylabury, MN 39810-1806",
    "latitude": -84.094158,
    "longitude": 54.574491,
    "is_active": true,
    "created_at": 1792593332209,
    "updated_at": 1792593332209,
    "deleted_at": null,
    "expired_at": null,
    "is_online": false,
    "code": "BR-808909",
    "level": null,
    "shift": null,
    "days": {
      "SUN": 0,
      "MON": 0,
      "TUE": 0,
      "WED": 0,
      "THU": 0,
      "FRI": 0,
      "SAT": 0
    },
    "location": null,
    "plans": [],
    "schedules": [],
    "out_of_stock_products": [],
    "market": {
      "id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
      "sector_id": 15,
      "name_en": "Wisoky-Feest",
      "name_ar": "Wisoky-Feest",
      "description_en": null,
      "description_ar": null,
      "logo_img": "https://via.placeholder.com/200x200.png/009955?text=business+logo+facilis",
      "cover_img": "https://via.placeholder.com/200x200.png/009999?text=business+cover+amet",
      "email": "[email protected]",
      "phone_prefix": "967",
      "phone_number": "7856586642",
      "crn": "033-466-2828",
      "tax_number": "66596607090",
      "created_by": null,
      "email_verified_at": 1792593329562,
      "phone_verified_at": 1792593329562,
      "created_at": 1792593329465,
      "updated_at": 1792593329465,
      "deleted_at": null,
      "is_active": true,
      "merchant_id": null,
      "reseller_id": null,
      "slug": "wisoky-feest",
      "code": "ENT-0000000001",
      "links": {
        "website": null,
        "instagram": null,
        "youtube": null,
        "x": null,
        "call_center": null
      },
      "phone": "7856586642",
      "setting": null
    },
    "setting": null,
    "waiting_orders": [],
    "process_orders": [],
    "canceled_orders": [],
    "completed_orders": []
  }
}
{
  "meta": {
    "code": 401,
    "status": "error",
    "message": "Unauthenticated."
  },
  "data": null
}
{
  "meta": {
    "code": 403,
    "status": "error",
    "message": "Unauthorized."
  },
  "data": null
}
{
  "meta": {
    "code": 404,
    "status": "error",
    "message": "Resource not found."
  },
  "data": null
}
{
  "meta": {
    "code": 500,
    "status": "error",
    "message": "Internal server error."
  },
  "data": null
}