Storeware Docs

Storefront blocks

Answer a request for a block or a section on the shop front.

import { ... } from '@storeware/plugin-sdk';

verifyBlockRequest

Verifies a storefront block request and returns what it asked for.

function verifyBlockRequest(options: VerifyWebhookOptions): Promise<StorefrontBlockRequest & { section?: string; }>

verifySectionRequest

Verifies a section request and returns what it asked for.

function verifySectionRequest(options: VerifyWebhookOptions): Promise<StorefrontSectionRequest>

StorefrontBlockRequest

What Storeware posts to a storefront block endpoint.

NameTypeDescription
blockstring
storeIdstring
contextRecord<string, string>

StorefrontSectionRequest

What Storeware posts for one of your [[extensions.sections]], which a merchant placed on a page in the page editor.

NameTypeDescription
sectionstring
storeIdstring
contextRecord<string, string>

On this page