Cart recovery link in Web Pixel API

We are subscribing to the Web Pixel events for our cart tracking functionality. When sending the cart events to our platform we would like to include a cart recovery link, but as I understand it, it is only available in back-end.

Is this true, or can the recovery key be fetched in front-end somehow?

Hi @Voyado

There isn’t a way to fetch the cart recovery key or a cart recovery link directly from the frontend (ie using the Storefront API or Web Pixel events). This is by design, as the recovery link is considered sensitive and is intended to be generated and distributed securely from the backend.

Can you use the abandonment query on the Admin API instead, which has a field for abandonedCheckoutUrl under abandonedCheckoutPayload?

Hi @Liam-Shopify ,

Thank you for confirming. I will check with our dev-team and see if we can route our requests server-side instead to enable this for us.

Out of curiosity, why is it considered sensitive when it has no personal data connection to a user?

Cheers!