Dynamic Embedded Headers

Kevin Wilde

Last Update منذ ١١ يومًا

You can pass dynamic values from the storefront into the headers of an APIEase request. This is useful when the external API you are calling expects information such as customer details, session context, or custom identifiers to be included in the headers.


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 headersEmbedded is set to the stringified "headersEmbeddedVar". APIEase looks for a query parameter named headersEmbedded to hold the dynamic embedded header parameters.

Was this article helpful?

0 out of 0 liked this article