How it works
The catalogue is organised in categories, translated to the session’s culture. Read them with Get all categories, pick the one that matches the occasion, and build the landing page on the matching slice of the catalogue. Search active products returns the full active catalogue; each product carries itscategory, so the occasion filter is yours to apply.
The examples send the
X-API-KEY header introduced in the Quick start. Replace {sessionId} with your session.Build the occasion page
Fetch the catalogue and keep the products of the occasion’s category:Make it feel like a gift
Pre-fill the gift options for the occasion when the guest adds to the cart: a suggested personal message (“Happy Mother’s Day!”) incomment and the beneficiary’s email for direct delivery. On Indirect products, set hidePrice on by default (a Direct voucher always shows its value). The full options are covered in Voucher for a friend.
Tips
- One page per occasion. A stable URL per occasion (
/gifts/mothers-day) builds search ranking year after year, and gives ads and emails a precise destination. - Say that delivery is instant. Late buyers are a large share of gift traffic; “delivered by email in minutes” removes their last objection.
- Show the validity. Each product carries its validity period (
365.00:00:00is one year); displaying “valid one year” reassures buyers that the beneficiary has time.
Related
Get all categories
The catalogue’s categories, in the session’s culture.
Add a cart item
The cart call that carries the gift options.