Toggle Section Visibility
visual_effects.sections_order array in the tenant’s customization.
Path Parameters
The tenant ID
Body Parameters
Section identifier to toggle. Common sections:
hero- Hero sectionproducts- Products catalogservices- Services gridabout- About sectiontestimonials- Customer testimonialsfaq- Frequently asked questionscontact- Contact informationpayment_methods- Payment methods displaybranches- Physical branches (Plan 3 only)
Section visibility state.
true to show, false to hide.Response
Operation success status
Error Response
Behavior
- If the section already exists in
sections_order, updates itsvisibleproperty - If the section doesn’t exist, adds it with the specified visibility and assigns the next available order position
- Automatically calls
syncSectionsConfig()to maintain consistency betweensections_orderandsections_config
Save Section Order
Path Parameters
The tenant ID
Body Parameters
Array of section configuration objects
Response
Operation success status
Result message
Error Response
Storage Location
The sections order is stored in:sections_config to maintain consistency.
Toggle Branches Section (Plan 3)
Path Parameters
The tenant ID (must have Plan 3)
Body Parameters
Enable or disable the branches section
Response
Operation success status
Current enabled state
Result message
Error Response
Plan restriction:Storage Location
The branches section visibility is stored in:Section Configuration Reference
Thesections_order and sections_config data structures control both the visibility and ordering of landing page sections.
Sections Order Structure
Available Sections
| Section | Description | Plan Requirements |
|---|---|---|
hero | Main hero section with title and CTA | All plans |
products | Product catalog grid | All plans |
services | Services grid | All plans |
about | About section with text and image | All plans |
testimonials | Customer testimonials | Plan 2+ |
faq | Frequently asked questions | Plan 2+ |
contact | Contact information and form | All plans |
payment_methods | Payment methods display | All plans |
branches | Physical branch locations | Plan 3 only |
cta | Call-to-action banner | Plan 3 only |
Synchronization Behavior
Whensections_order is updated:
- The system saves the array to
customization.visual_effects.sections_order - Calls
syncSectionsConfig()to updatecustomization.sections_config sections_configmaintains individual section visibility flags for backward compatibility
Update Header Top Bar (Plan 2+)
Path Parameters
The tenant ID
Body Parameters
Enable or disable the header top bar
Text content to display in the header top bar
Response
Operation success status
Result message
Error Response
Plan restriction:Storage Location
Update CTA Section (Plan 3)
Path Parameters
The tenant ID (must have Plan 3)
Body Parameters
CTA section title
CTA section subtitle
Button text
Button URL (must be valid URL format)
Response
Operation success status
Result message