Panelr

Get Bouquets

GET ?action=get_bouquets

The bouquets a customer may choose from. How they are shaped depends on the service: one running a playlist editor groups them by live/vod/series, one talking straight to a panel returns a flat list. A store can run both at once, so every service reports its own mode under plugins.

Add &plugin_id= to ask about one service. With exactly one service connected the top-level mode and bouquets are also filled in, so existing integrations keep working unchanged; with several, mode is per_plugin and you should read plugins. Every bouquet carries its plugin_id, so a store with several services can divide one flat list per service and send each line only its own service's share (update_bouquets refuses bouquets from another service).

Request Parameters

FieldTypeRequiredDescription
plugin_idintegerOptionalOnly this service's bouquets

Response Fields

FieldTypeDescription
pluginsarrayOne entry per service: plugin_id, plugin_name, mode, bouquets. Read this when the store has more than one service.
modestringeditor, panel, none, or per_plugin when several services are connected and each has its own
bouquetsobject|arrayGrouped by category in editor mode, flat array in panel mode, empty when mode is none or per_plugin

Bouquet Object

FieldTypeDescription
idintegerBouquet ID
namestringInternal bouquet name
display_namestringCustomer-facing display name — falls back to name if not set
categorystring|nulllive, vod, or series — editor mode only
sort_orderintegerDisplay sort order
plugin_idinteger|nullThe service this bouquet belongs to. Only send a bouquet to a line on the same service — the ids mean nothing to another panel.

Response — Editor Mode

{
  "success": true,
  "data": {
    "mode": "editor",
    "bouquets": {
      "live": [{"id": 1, "name": "Sports", "display_name": "Sports", "category": "live", "sort_order": 1}],
      "vod": [],
      "series": []
    }
  },
  "error": null
}

Response — Panel Mode

{
  "success": true,
  "data": {
    "mode": "panel",
    "bouquets": [{"id": 1, "name": "Sports", "display_name": "Sports", "category": null, "sort_order": 1}]
  },
  "error": null
}