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.
| Name | Type | Description |
|---|---|---|
block | string | |
storeId | string | |
context | Record<string, string> |
StorefrontSectionRequest
What Storeware posts for one of your [[extensions.sections]], which a merchant placed on a page in the page editor.
| Name | Type | Description |
|---|---|---|
section | string | |
storeId | string | |
context | Record<string, string> |