{"id":5400,"date":"2026-06-15T14:08:47","date_gmt":"2026-06-15T05:08:47","guid":{"rendered":"https:\/\/storecrm.com\/help\/setting\/line-flex-validation\/"},"modified":"2026-09-09T16:20:20","modified_gmt":"2026-09-09T07:20:20","slug":"line-flex-validation","status":"publish","type":"post","link":"https:\/\/storecrm.com\/help\/en\/setting\/line-flex-validation\/","title":{"rendered":"LINE Flex Message validation when saving"},"content":{"rendered":"<p class=\"wp-block-paragraph\">When you save a LINE message containing a Flex Message in StoreCRM, its format is checked automatically to confirm that it can be sent to the LINE API. This feature lets you correct JSON and link errors when saving and reduces delivery failures.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Open the settings screen<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In StoreCRM, open [Messages] \u2192 [LINE].<\/li>\n\n\n\n<li>Click [Create LINE message] or edit an existing LINE message.<\/li>\n\n\n\n<li>Enter a name and message content, and add or edit a Flex Message.<\/li>\n\n\n\n<li>Click [Save].<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1440\" height=\"1000\" src=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-edit-screen-20260903.png\" alt=\"Flex Message (JSON) open on the StoreCRM LINE message edit screen\" class=\"wp-image-6097\" srcset=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-edit-screen-20260903.png 1440w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-edit-screen-20260903-300x208.png 300w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-edit-screen-20260903-1024x711.png 1024w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-edit-screen-20260903-768x533.png 768w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-edit-screen-20260903-18x12.png 18w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><figcaption class=\"wp-element-caption\">On the LINE message creation or edit screen, select [Flex Message (JSON)] as the message type.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">LINE API validation requires a valid LINE channel access token or a configured LINE channel ID and channel secret. If LINE is not configured, complete LINE setup first and confirm a test send.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is checked when saving<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whether the entire LINE message data is an array<\/li>\n\n\n\n<li>Whether the Flex Message content is a valid JSON object<\/li>\n\n\n\n<li>Whether the Flex Message structure conforms to LINE specifications<\/li>\n\n\n\n<li>Whether URLs in URI actions, images, and other components are non-empty and use a supported format<\/li>\n\n\n\n<li>Whether the LINE API accepts the message after template tags are replaced with sample validation values<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">URI actions support <code>http:<\/code>, ,<code>https:<\/code>, ,<code>line:<\/code>, ,<code>tel:<\/code>, ,<code>mailto:<\/code> . For component URLs such as images, <code>url<\/code> must use <code>http:<\/code> or <code>https:<\/code> .<code>javascript:<\/code> and URLs without a scheme are not supported.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1440\" height=\"1000\" src=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-json-preview-20260903.png\" alt=\"Flex Message JSON edit tab and live preview on the right\" class=\"wp-image-6099\" srcset=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-json-preview-20260903.png 1440w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-json-preview-20260903-300x208.png 300w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-json-preview-20260903-1024x711.png 1024w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-json-preview-20260903-768x533.png 768w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-json-preview-20260903-18x12.png 18w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><figcaption class=\"wp-element-caption\">In the [JSON] tab, edit the Flex Message structure and check its appearance in the live preview on the right.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Use template tags in URLs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">During save validation, StoreCRM template tags that are replaced at delivery time are substituted with safe sample values.<code>[customer_name]<\/code> is a display tag. Use separate tags intended for URLs.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Tags<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>[tracking_number]<\/code><\/td><td>This outputs display text such as \u201cTracking number: 12345.\u201d Do not use it as a URL parameter.<\/td><\/tr><tr><td><code>[tracking_number_raw]<\/code><\/td><td>This outputs only the tracking number. Use it when inserting the tracking number into a URL such as a shipment tracking link.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1036\" height=\"270\" src=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-template-tags-20260903.png\" alt=\"Flex Message JSON URL and Tracking number (number only) in the template tag list\" class=\"wp-image-6101\" srcset=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-template-tags-20260903.png 1036w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-template-tags-20260903-300x86.png 300w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-template-tags-20260903-1024x295.png 1024w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-template-tags-20260903-768x221.png 768w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-template-tags-20260903-18x5.png 18w\" sizes=\"(max-width: 1036px) 100vw, 1036px\" \/><figcaption class=\"wp-element-caption\">To insert a tracking number in a URL, copy [Tracking number (number only)] from the template tag list.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">If an error appears when saving<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Review the displayed error. Flex Message format errors may include system details.<\/li>\n\n\n\n<li>Confirm that the Flex Message JSON is a valid JSON object.<\/li>\n\n\n\n<li>Check the structure with LINE Flex Message Simulator.<\/li>\n\n\n\n<li>Check URI actions and image URLs for empty values, unsupported schemes, and spaces.<\/li>\n\n\n\n<li>If a display tag is used in a URL, replace it with a URL-specific tag.<\/li>\n\n\n\n<li>After making corrections, click [Save] again and confirm the completion message and navigation to the details screen.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"1000\" src=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-save-error-20260903.png\" alt=\"LINE API Flex Message format error displayed on the save screen\" class=\"wp-image-6103\" srcset=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-save-error-20260903.png 1440w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-save-error-20260903-300x208.png 300w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-save-error-20260903-1024x711.png 1024w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-save-error-20260903-768x533.png 768w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-save-error-20260903-18x12.png 18w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><figcaption class=\"wp-element-caption\">If a format error appears when saving, use the system details to correct the JSON or links.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">If an invalid link is found during a test send<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Even a message that was saved successfully can produce an empty URL or unsupported scheme after actual customer or order data is inserted into template tags. During a test send, StoreCRM validates the final Flex Message immediately before delivery. If an invalid link or structure is found, delivery stops and is shown as failed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"1000\" src=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-server-validation-error-20260903.png\" alt=\"Invalid link error displayed during a LINE message test send\" class=\"wp-image-6105\" srcset=\"https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-server-validation-error-20260903.png 1440w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-server-validation-error-20260903-300x208.png 300w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-server-validation-error-20260903-1024x711.png 1024w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-server-validation-error-20260903-768x533.png 768w, https:\/\/storecrm.com\/help\/wp-content\/uploads\/2026\/06\/main-storecrm-en-line-flex-server-validation-error-20260903-18x12.png 18w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><figcaption class=\"wp-element-caption\">If a link is invalid after actual data is inserted, the test send stops and displays the error.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Review the delivery failure, correct the relevant links, template tags, and Flex Message structure, save the message, and run another test send under the same conditions.<\/p>\n\n\n<!-- sprint34-help:line-test-markers:start -->\n\n<h2 class=\"wp-block-heading\">Distinguish LINE test sends from normal deliveries<\/h2>\n\n\n<p class=\"wp-block-paragraph\">For a LINE test send, \u201c\u3010\u30c6\u30b9\u30c8\u9001\u4fe1\u30fb\u958b\u59cb\u3011\u201d and \u201c\u3010\u30c6\u30b9\u30c8\u9001\u4fe1\u30fb\u7d42\u4e86\u3011\u201d are sent as separate messages before and after the content. \u201c\u3010\u30c6\u30b9\u30c8\u9001\u4fe1\u30fb\u5931\u6557\u3011\u201d may appear when the content cannot be sent. These labels are added only to test sends and do not appear in normal deliveries.<\/p>\n\n<!-- sprint34-help:line-test-markers:end -->\n\n<!-- sprint34-help:line-resource-slots:start -->\n\n\n\n<h2 class=\"wp-block-heading\">Use product and collection slots<\/h2>\n\n\n<p class=\"wp-block-paragraph\">In a LINE Flex Message, you can configure slots that are filled with products or collections at delivery time. A slot can use a fixed product or collection, or a product or collection supplied by a scenario or Campaign Automation.<\/p>\n\n\n<p class=\"wp-block-paragraph\">StoreCRM validates the slots, links, and Flex Message structure when the message is saved and test-sent. In the preview, tapping an empty area without a configured link does not navigate anywhere. If a save error appears, check the slot source and URL.<\/p>\n\n<!-- sprint34-help:line-resource-slots:end -->\n\n\n\n\n<h2 class=\"wp-block-heading\">Related pages<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/storecrm.com\/help\/en\/setting\/template-tags\/\">Template tags available in email and LINE messages<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/storecrm.com\/help\/en\/setting\/line\/\" data-type=\"post\" data-id=\"2533\">Explanation of how to link Shopify and official LINE accounts and how to do it.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/storecrm.com\/help\/en\/setting\/recommend\/\" data-type=\"post\" data-id=\"5294\">Send email and LINE messages using recommendations<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"StoreCRM\u3067LINE\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4fdd\u5b58\u3059\u308b\u3068\u304d\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306bFlex Message\u304c\u3042\u308b\u5834\u5408\u306f\u3001LIN [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,67,69],"tags":[],"class_list":["post-5400","post","type-post","status-publish","format-standard","hentry","category-setting","category-scenario","category-mail"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/posts\/5400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/comments?post=5400"}],"version-history":[{"count":10,"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/posts\/5400\/revisions"}],"predecessor-version":[{"id":6669,"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/posts\/5400\/revisions\/6669"}],"wp:attachment":[{"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/media?parent=5400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/categories?post=5400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/storecrm.com\/help\/en\/wp-json\/wp\/v2\/tags?post=5400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}