Product preview tools
All tool areas. Each tool acts within your access.
Product preview
get_product_preview_link
Get a link, good for 1 hour, to a product's booking page as guests will see it, whether or not it's on sale (a draft, on sale, or archived): read-only, with a banner saying it's a preview, and no way to hold or book. Takes the product and, when it's offered at more than one location, the location to show. Give the link to the person who asked, never to a guest: a draft stays hidden from guests without it.
Reads · Members of an organization · Needs products:read
Input
productIdThe product's id, from list_products
locationIdThe location whose booking page to show; left out, the product's only location
Output
urlThe preview page's address, with its signed token
expiresAtWhen the link stops working (1 hour after it was made)