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.
Open the settings screen
- In StoreCRM, open [Messages] → [LINE].
- Click [Create LINE message] or edit an existing LINE message.
- Enter a name and message content, and add or edit a Flex Message.
- Click [Save].

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.
What is checked when saving
- Whether the entire LINE message data is an array
- Whether the Flex Message content is a valid JSON object
- Whether the Flex Message structure conforms to LINE specifications
- Whether URLs in URI actions, images, and other components are non-empty and use a supported format
- Whether the LINE API accepts the message after template tags are replaced with sample validation values
URI actions support http:, ,https:, ,line:, ,tel:, ,mailto: . For component URLs such as images, url must use http: or https: .javascript: and URLs without a scheme are not supported.

Use template tags in URLs
During save validation, StoreCRM template tags that are replaced at delivery time are substituted with safe sample values.[customer_name] is a display tag. Use separate tags intended for URLs.
| Tags | Usage |
|---|---|
[tracking_number] | This outputs display text such as “Tracking number: 12345.” Do not use it as a URL parameter. |
[tracking_number_raw] | This outputs only the tracking number. Use it when inserting the tracking number into a URL such as a shipment tracking link. |

If an error appears when saving
- Review the displayed error. Flex Message format errors may include system details.
- Confirm that the Flex Message JSON is a valid JSON object.
- Check the structure with LINE Flex Message Simulator.
- Check URI actions and image URLs for empty values, unsupported schemes, and spaces.
- If a display tag is used in a URL, replace it with a URL-specific tag.
- After making corrections, click [Save] again and confirm the completion message and navigation to the details screen.

If an invalid link is found during a test send
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.

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.
Distinguish LINE test sends from normal deliveries
For a LINE test send, “【テスト送信・開始】” and “【テスト送信・終了】” are sent as separate messages before and after the content. “【テスト送信・失敗】” may appear when the content cannot be sent. These labels are added only to test sends and do not appear in normal deliveries.
Use product and collection slots
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.
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.