@plentymarkets/shop-api / AiTextBlockErrorCode
Type Alias: AiTextBlockErrorCode ​
AiTextBlockErrorCode =
"TEXT_BLOCK_REJECTED"|"TEXT_BLOCK_MISSING_ITEM_ID"|"HTML_VALIDATION_FAILED"
Defined in: types/api/aiTextBlock.ts:23
Reason the chatbot gives for a failed text block, sent as error.code of its answer. It becomes the key of the thrown ApiError, so the storefront can tell a refusal of the prompt from an unusable result.