Dynamic Embedded Body

Kevin Wilde

Last Update 11 dagen geleden

You can pass dynamic values from the storefront into the body of a request using embedded parameters. This is useful when you want to include customer-specific or page-specific data inside a JSON body sent to an external API.


Dynamic embedded parameters are added as query parameters to calls made to APIEase from custom liquid in your storefront.


Example Javascript Snippet:

In the above javascript snippet we see that bodyEmbedded is set to the stringified "bodyEmbeddedVar". APIEase looks for a query parameter named bodyEmbedded to hold the dynamic embedded body parameters.

Was this article helpful?

0 out of 0 liked this article