API referenceMenu sections

Menu sections

1 operation. Every schema and example on this page is generated from the platform contract.

Set which services one menu section is served at.

The section default: every dish in the section that has no serving times of its own is served at these services. One atomic write (set_menu_section_service_periods RPC) replaces the section across every card, so a section can never be half-moved from Breakfast to Lunch. Idempotent. Writes one audit row and broadcasts a menu_item_updated realtime event.

Request body

store_idstring · uuidrequired

Store whose menu section to set (also authorises the merchant).

sectionstringrequired

One of the merchant's own menu sections (`menu_items.category`), matched case- and whitespace-insensitively. An unknown section is 422 MENU_SECTION_NOT_FOUND.

service_period_idsarray of string · uuidrequired

Every service this section is served at, replacing its current set across ALL cards at once. An empty array takes the section off every card, so its dishes (those without their own serving times) are served all day.

Response, 200

sectionstringrequired

The section's canonical name, as the menu spells it.

service_period_idsarray of stringrequired
curl -X PUT "https://www.membber.com/api/v1/menu-sections/service-periods" \
  -H "Authorization: Bearer $MEMBBER_TOKEN" \
  -H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
  -H "Content-Type: application/json" \
  -d '{
    "store_id": "6659c139-0000-4000-8000-d0c500000066",
    "section": "<section>",
    "service_period_ids": [
      "af7d3b4f-0000-4000-8000-d0c5000000af"
    ]
  }'
Response, 200
{
  "section": "<section>",
  "service_period_ids": [
    "af7d3b4f-0000-4000-8000-d0c5000000af"
  ]
}
WhatsApp
Book a Call
Start Free