February 18, 2021

Shopify Flow adds support for liquid filters url_encode and json in HTTP actions

To ensure your HTTP requests are as secure as possible, we’ve added two liquid filters to be used in an HTTP action:

  • You can now use | url_encode to any liquid variables in the path section of the HTTP action URL configuration field. The web server that receives the request must support decoding urls.
  • Add either | url_encode or | json to each template variable that is used in the body section of the HTTP action body configuration field. The web server that receives the request must support decoding URLs or JSON decoding.

Learn more about using these filters to improve your HTTP request security and find examples from the Shopify Help Center.