Sellavi US API

Modules

Endpoint:https://api.sellavi.com

Create and arrange storefront content blocks and banners. See Modules and banners.


List modules

GET
https://api.sellavi.com
/modules

Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide. Ordered by sort_order, then layout_module_id. Empty lists return 200 with response=[], results=0 and pages=0.

List modules › query Parameters

  • layout_idinteger

    Filter by layout; 0 selects global header/footer modules. Omit for all layouts.

  • positionstring · enum
    Enum values:
    content_top
    content_bottom
    header
    footer
  • pageinteger · min: 1
    Default: 1
  • limitinteger · min: 1 · max: 100
    Default: 10

List modules › Responses

Success

  • successboolean
    Example: true
  • responseobject[]
  • resultsinteger
  • pagesinteger
  • pageinteger
  • per_pageinteger
  • request_idstring

Create module

POST
https://api.sellavi.com
/modules

Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide.

Create module › Request Body

  • layout_idinteger · required

    0 for header/footer; otherwise an existing layout ID belonging to this store.

  • codestring · enum · required

    Must be allowed for the selected layout or global position.

    Enum values:
    homefeaturedcategory
    banners
    category_slide
    product_slide
    embed
    info_slider
    brands
    faq
  • componentstring · enum · required

    layout for a positive layout_id; otherwise must equal position.

    Enum values:
    layout
    header
    footer
  • positionstring · enum · required

    content_top/content_bottom for a layout; header/footer for layout_id 0.

    Enum values:
    content_top
    content_bottom
    header
    footer
  • sort_orderinteger · required
  • settingsobject · required

    Settings for a new module. Requirements depend on code; see the Modules and banners guide. Updates preserve omitted keys and translations; supplied nested lists replace the saved list.

  • bannersobject[]

    For code=banners. New images use banner_image_id=0 and require desktop and mobile CDN URLs. Existing banner omission during an update does not delete it; use the explicit gateway banner delete endpoint.

Create module › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring

Get module

GET
https://api.sellavi.com
/modules/{layout_module_id}

Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide.

Get module › path Parameters

  • layout_module_idinteger · required

    Module ID belonging to the authenticated store.

Get module › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring

Update module

PUT
https://api.sellavi.com
/modules/{layout_module_id}

Requires API permission themesModules. Updates the authenticated store only. Send only changed fields. Omitted module fields, settings and translations keep their saved values; supplied nested settings lists replace that list. Omitted banners are retained, including when banners is []. Read first. Applies immediately to the live store; no version check. See Modules and banners.

Update module › path Parameters

  • layout_module_idinteger · required

    Module ID belonging to the authenticated store.

Update module › Request Body

  • layout_idinteger

    0 for header/footer; otherwise an existing layout ID belonging to this store.

  • codestring · enum

    Must be allowed for the selected layout or global position.

    Enum values:
    homefeaturedcategory
    banners
    category_slide
    product_slide
    embed
    info_slider
    brands
    faq
  • componentstring · enum

    layout for a positive layout_id; otherwise must equal position.

    Enum values:
    layout
    header
    footer
  • positionstring · enum

    content_top/content_bottom for a layout; header/footer for layout_id 0.

    Enum values:
    content_top
    content_bottom
    header
    footer
  • sort_orderinteger
  • settingsobject

    Only settings to change. Omitted map keys and translations keep saved values. A supplied nested list replaces that whole list. Changing code or moving a module can require additional settings valid for the destination.

  • bannersarray

    Existing IDs merge changed fields; new banners use ID 0. IDs must belong to this module and cannot repeat. Omitted banners are retained. Use the explicit gateway DELETE endpoint for removal.

Update module › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring

Delete module

DELETE
https://api.sellavi.com
/modules/{layout_module_id}

Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide. Deleting a banners module also deletes its related banner images through the existing module lifecycle.

Delete module › path Parameters

  • layout_module_idinteger · required

    Module ID belonging to the authenticated store.

Delete module › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring

Partially update module

PATCH
https://api.sellavi.com
/modules/{layout_module_id}

Requires API permission themesModules. Updates the authenticated store only. Send only changed fields. Omitted module fields, settings and translations keep their saved values; supplied nested settings lists replace that list. Omitted banners are retained, including when banners is []. Read first. Applies immediately to the live store; no version check. See Modules and banners.

Partially update module › path Parameters

  • layout_module_idinteger · required

    Module ID belonging to the authenticated store.

Partially update module › Request Body

  • layout_idinteger

    0 for header/footer; otherwise an existing layout ID belonging to this store.

  • codestring · enum

    Must be allowed for the selected layout or global position.

    Enum values:
    homefeaturedcategory
    banners
    category_slide
    product_slide
    embed
    info_slider
    brands
    faq
  • componentstring · enum

    layout for a positive layout_id; otherwise must equal position.

    Enum values:
    layout
    header
    footer
  • positionstring · enum

    content_top/content_bottom for a layout; header/footer for layout_id 0.

    Enum values:
    content_top
    content_bottom
    header
    footer
  • sort_orderinteger
  • settingsobject

    Only settings to change. Omitted map keys and translations keep saved values. A supplied nested list replaces that whole list. Changing code or moving a module can require additional settings valid for the destination.

  • bannersarray

    Existing IDs merge changed fields; new banners use ID 0. IDs must belong to this module and cannot repeat. Omitted banners are retained. Use the explicit gateway DELETE endpoint for removal.

Partially update module › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring

Reorder or move modules

POST
https://api.sellavi.com
/modules/order_change

Requires API permission themesModules. Access is restricted to the authenticated store. Listed modules come first; unlisted modules in supplied positions retain relative order afterwards. For a move from another layout also send layout_module_id and include it in the order. Destination must allow the module. Changing layouts clears old related_ids. Affects the live store. See Store design.

Reorder or move modules › Request Body

  • layout_idinteger · required

    Destination layout ID; 0 for global header/footer modules.

  • sorted_modulesobject · required

    Use content_top/content_bottom for layouts or header/footer for global modules. No ID may repeat. Listed modules come first; unlisted modules in each supplied position retain their relative order afterwards. Omitted positions are unchanged.

  • layout_module_idinteger · min: 1

    For a move from another layout. Also include this ID in sorted_modules. Changing layouts clears the old settings.related_ids.

Reorder or move modules › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring

Delete one banner image

DELETE
https://api.sellavi.com
/modules/{layout_module_id}/banners/{banner_image_id}

Requires API permission themesModules. Access is restricted to the authenticated store. Permanently removes the selected banner belonging to this module/store. Other banners remain. Affects the live store; CSS/JS snapshots cannot undo it. No request body or confirmed field is used by this REST endpoint. See Store design.

Delete one banner image › path Parameters

  • layout_module_idinteger · min: 1 · required

    Existing ID belonging to the authenticated store.

  • banner_image_idinteger · min: 1 · required

    Existing ID belonging to the authenticated store.

Delete one banner image › Responses

Success

  • successboolean
    Example: true
  • responseobject
  • request_idstring