{"ok":true,"participating":true,"confirm_from_merchant":"https://ipath.example.myshopify.com/apps/agentfriendly/verify","query":{"domain":"ipath.example.myshopify.com","name":null},"store":{"name":"IPATH","shop_domain":"ipath.example.myshopify.com","discount_pct":15,"founding_member":true},"trust":{"verify_participation_from_merchant":"Confirm the store advertises participation from ITS OWN domain at https://{shop_domain}/apps/agentfriendly/verify (served by the merchant's installed app), not only from this directory.","require_user_consent":"Disclose to the user and get explicit per-purchase consent before attaching the Agent ID. Never attach it silently.","discount_visible_before_checkout":true,"no_speculative_attachment":"The Agent ID does nothing on non-participating stores; never attach it 'just in case'.","data_shared":["agent_id","shop_domain","order_total"],"data_purpose":"Apply the merchant's discount and credit the shopper's reward points. Nothing else."},"apply":{"method":"shopify_cart_attribute","cart_attribute":"agent_id","documented_api":"https://shopify.dev/docs/api/ajax/reference/cart#post-cart-update-js","description":"After confirming participation from the merchant's own domain AND getting the user's consent, set this cart attribute as part of the normal checkout. The store's AgentFriendly app applies the discount (visible in the cart total before payment) and logs the purchase for points.","snippet":"await fetch(\"/cart/update.js\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({attributes:{agent_id:\"<YOUR_AGENT_ID>\"}})});"},"register_agent":"https://agentfriendly.shop/register"}