# Ab testing Source: https://docs.tyviso.com/features/ab-testing # A/B Testing The Tyviso platform includes a comprehensive testing suite that lets you test different outcomes. ## What you can test * GWP * GWP * Rewards * UX variations and more ![AB TEST Engage](https://mintcdn.com/tyviso/1TlvFjKals5vFWOy/images/ABTEST-Engage.png?fit=max\&auto=format\&n=1TlvFjKals5vFWOy\&q=85\&s=627d408638fe54a460aa4ad38e5c9397) ## How it works 1. Select the product 2. Set a test duration 3. Allocate traffic to the test 4. Launch ## Traffic logic Traffic is split into segments per second. For example: * 50/50 → 5 segments each * 70/30 → 7 vs 3 segments This will give precise control over the distribution of traffic to the original vs the variation. ![AB TEST](https://mintcdn.com/tyviso/1TlvFjKals5vFWOy/images/ABTEST.png?fit=max\&auto=format\&n=1TlvFjKals5vFWOy\&q=85\&s=f5530e3068448c1fbeab13c507ce4f64) ## Outputs * Performance by variation * Statistical significance * Downloadable dat ![AB TEST STATS](https://mintcdn.com/tyviso/1TlvFjKals5vFWOy/images/ABTESTSTATS.png?fit=max\&auto=format\&n=1TlvFjKals5vFWOy\&q=85\&s=982fdffa83df743c350f9b740a334362) A more detailed guide can be provided upon request. # Cookieless Source: https://docs.tyviso.com/features/cookieless # Cookieless Tracking At Tyviso, we use a cookieless solution that ensures your site tag operates with unparalleled speed, scalability, and security, all while delivering robust conversion tracking without relying on traditional HTTP cookies. That's right, we're 100% cookieless. ## Why * Faster performance * No unnecessary data transfer * Better privacy ## How it works 1. Transaction ID captured from URL 2. Stored in local storage 3. Retrieved on conversion page 4. Attribution completed ## Benefits * No cookie dependency * GDPR friendly * More efficient tracking ![Docs Images (1)](https://mintcdn.com/tyviso/Ekz9zwXlf5SfsurX/images/Docsimages\(1\)-1.png?fit=max\&auto=format\&n=Ekz9zwXlf5SfsurX\&q=85\&s=136e98f2fe3f3a524494079b8c4ab627) A more detailed guide can be provided upon request. # Source: https://docs.tyviso.com/index # Tyviso Documentation Tyviso powers experiences across the Commerce Journey. ## Get Started * [Introduction](/introduction) * [Quick Start](/quick-start) *** ## Integration * [Overview](/integration/overview) * [Web Integration](/integration/web-integration) * [App Integration](/integration/app-integration) * [API Integration](/integration/api-integration) * [GTM Integration](/integration/gtm-setup) * [Affiliate Integration](/integration/affiliate-setup) *** ## Features * [A/B Testing](/features/ab-testing) * [Cookieless Tracking](/features/cookieless) *** ## Platform * [Dashboard](/platform/dashboard) * [UX & Customisation](/platform/ux) # API Integrations Source: https://docs.tyviso.com/integration/api-integration/api-integration This documentation covers the Tyviso Events API — GET and POST requests for Offers, Rewards Events, Gift After Purchase, Giveaways, and more, straight from your website or app. Pull your Tyviso data into your own reporting stack: one API key, one header, JSON or CSV out. > [card] [Authentication](/integration/api-integration/authentication) > > `X-API-Key` — one header on every request. Your key is scoped to your partner ID. > [card] [Endpoints](#endpoint-reference) > > 9 across 4 groups — Offers API, Events, Giveaways, and MyAdvertisers. > [card] [Formats](/integration/api-integration/event-types) > > JSON · CSV — event endpoints accept `format=csv` for spreadsheet pulls. > [card] [Quickstart](/integration/api-integration/quickstart) > > Three steps to your first payload — live in about five minutes. > [!NOTE] > > Every API key maps to a single partner ID, so you only ever see your own data. Nothing here exposes another partner's events. ## Get started > [card] [Quickstart](/integration/api-integration/quickstart) > > If you can run cURL, you can be reading live event data inside five minutes. > [card] [Authentication](/integration/api-integration/authentication) > > How your API key works, and the three headers every request needs. > [card] [Rate Limits & Support](/integration/api-integration/rate-limits) > > What to do before you hit a limit, and how to get help fast. ## Concepts > [card] [Core Objects](/integration/api-integration/core-objects) > > The Offer, Event, and Transaction shapes referenced throughout this reference. > [card] [Event Types](/integration/api-integration/event-types) > > What `type` decides, and which endpoints support which types. > [card] [Errors](/integration/api-integration/errors) > > 401, 404, and 422 — how they behave, and the one gotcha to watch for. ## Endpoint reference > [card] [Offers API](/integration/api-integration/offers-api) > > The full feed behind your hosted Rewards page or widget. > [card] [Events](/integration/api-integration/external-events) > > Reward events, Gift After Purchase events, push-notification widget data. > [card] [Giveaways](/integration/api-integration/giveaways) > > Giveaway flows, code claims, giveaway event history. > [card] [MyAdvertisers](/integration/api-integration/my-advertisers) > > Offers for a specific partner by partner ID. # Authentication Source: https://docs.tyviso.com/integration/api-integration/authentication How your API key works, and the headers every request needs. [← Back to API Integration](/integration/api-integration) Every endpoint in this reference requires authentication. Send your key in the `X-API-Key` header — the same three headers apply everywhere, so they're listed once here rather than repeated on each endpoint page. The one exception is [Get a single use code](/integration/api-integration/offers-api#get-a-single-use-code), which is authenticated with its own token in a `token` header instead of `X-API-Key`. | Header | Value | Notes | | - | - | - | | `X-API-Key` | `` | Required. Scoped to one partner ID. Keep it server-side — never ship it in browser or app code. | | `Accept` | `application/json` | Recommended on every request. | | `Content-Type` | `application/json` | Required on POST requests that send a body. | > [!WARNING] > > A missing or wrong key returns `401` with a short error string — not a JSON validation object. Handle both shapes; see [Errors](/integration/api-integration/errors). # Campaigns Source: https://docs.tyviso.com/integration/api-integration/campaigns Retrieve active offers and trigger campaign push notifications. [← Back to API Integration](/integration/api-integration) Requires authentication — see [Authentication](/integration/api-integration/authentication). ## Get offers GET `/api/v1/campaigns/offers` Returns every offer currently live for your partner ID. Each item is an [Offer object](/integration/api-integration/core-objects) — use it to build your own reward listing, or to find an offer ID to push as a campaign. No query parameters. ```bash cURL theme={null} curl --get "$BASE/api/v1/campaigns/offers" \ --header "X-API-Key: $KEY" \ --header "Accept: application/json" ``` ```javascript JavaScript theme={null} const res = await fetch( `${BASE}/api/v1/campaigns/offers`, { headers: { "X-API-Key": KEY } } ); const { data } = await res.json(); ``` ```json 200 theme={null} { "success": true, "data": [ { "id": "67dd795d86f2741c8842cbf1", "partner": "Advertiser", "partnerLogo": "https://…/logo.png", "ageRestricted": false, "terms": "Offer valid until stocks last.", "title": "50% Discount", "description": "Get 50% off selected products.", "image": "https://…/image.png", "squareImage": "https://…/square.png", "offerInfoButtonDiscount": "50%", "offerDiscountCode": "SUMMER50", "offerDiscountCodeType": "availableAtCheckout", "hasMultipleCodes": false } ] } ``` See [Errors](/integration/api-integration/errors) for the 401 shape. ## Create a campaign POST `/api/v1/campaigns/send` Triggers a push notification for one of your offers. Give us the offer ID; add a `topic` to reach a group of users at once. **Body parameters** **offerId** `string` *required* The offer to notify on. e.g. `"67dd795d86f2741c8842cbf1"` **topic** `string` FCM topic name, to send to multiple users. e.g. `"rewards-updates"` **note** `string` Internal note describing the campaign. ```bash cURL theme={null} curl -X POST "$BASE/api/v1/campaigns/send" \ --header "X-API-Key: $KEY" \ --header "Content-Type: application/json" \ --data '{ "offerId": "67dd795d86f2741c8842cbf1", "note": "Notify users about new rewards", "topic": "rewards-updates" }' ``` ```javascript JavaScript theme={null} await fetch(`${BASE}/api/v1/campaigns/send`, { method: "POST", headers: { "X-API-Key": KEY, "Content-Type": "application/json", }, body: JSON.stringify({ offerId: "67dd795d86f2741c8842cbf1", note: "Notify users about new rewards", topic: "rewards-updates", }), }); ``` ```json 200 theme={null} { "success": true, "data": { "id": "67dd795d86f2741c8842cbf1", "sentAt": "2025-12-15T12:45:00Z" } } ``` See [Errors](/integration/api-integration/errors) for the 401 and 422 shapes. # Core Objects Source: https://docs.tyviso.com/integration/api-integration/core-objects Shared reference for the Offer, Event, and Transaction object shapes. [← Back to API Integration](/integration/api-integration) Three object shapes cover most of the API. Endpoints below reference these rather than repeating the field list. ## The Offer object Returned by MyAdvertisers and Rewards widget data. **Offer fields** **id** `string` Unique identifier of the offer. **partner** `string` The partner brand name associated with the offer. **partnerLogo** `string` URL to the partner's logo image. **ageRestricted** `boolean` Whether the offer is age-restricted. Gate the placement accordingly. **title** `string` Offer title, e.g. "50% Discount". **description** `string` Offer description text. **terms** `string` Offer terms and conditions. Must be displayed with the offer. **image / squareImage** `string` Main image URL and its square variant. **offerInfoButtonDiscount / offerInfoButtonDescription** `string` Discount value and supporting copy for the info button, where set. **offerDiscountCode** `string` The discount code provided by the partner, if any. **offerDiscountCodeType** `string` One of `availableAtClick`, `copyPaste`, `availableAtCheckout`, `dynamic`, `uniqodo`. Determines how the code should be surfaced to the customer. **hasMultipleCodes** `boolean` Whether more than one discount code exists for the offer. ## The Event object **Event fields** **id / type** `string` Event identifier and its type. **timestamp** `integer` Unix time in milliseconds. **host** `string` The site the event happened on. **userId / customUserId** `string` Tyviso's anonymous user ID, plus your own ID where you pass one. **device** `string` e.g. `mobile`. **offerId / partnerId / partnerName** `string` Which offer and partner brand the event relates to. **placement / position** `string / integer` Where in the widget the offer appeared, and its rank. **preview** `boolean` True for internal preview traffic — exclude it from reporting. ## The Transaction object **Transaction fields** **id** `string` Transaction identifier. **referenceId** `string` The click or event this conversion is attributed to. **status** `string` e.g. `pending` until validated. **netCommission** `number` Commission earned on the transaction. **transactionDate / validationDate** `integer` When it happened, and when it was validated — null while pending. **offerId / partnerId / host** `string` Attribution context, as on the Event object. # Errors Source: https://docs.tyviso.com/integration/api-integration/errors How 401, 404, and 422 errors behave across the API. [← Back to API Integration](/integration/api-integration) Errors behave the same way across the whole API, so they live here instead of under every endpoint. > [accordion] 401 — Unauthorised > > The key is missing, malformed, or not recognised. Returns a flat error string. > > ```json theme={null} > { "error": "Invalid API key" } > ``` > [accordion] 404 — Not found > > The partner or resource behind your key has no matching record. > > ```json theme={null} > { "success": false, "error": "partner.not-found" } > ``` > [accordion] 422 — Validation failed > > A required parameter is missing or out of range. `errors` lists each field. > > ```json theme={null} > { > "message": "The type field is required.", > "errors": { "type": ["The type field is required."] } > } > ``` > [!WARNING] > > **Watch out:** some giveaway responses return `200` with `success: false` — an already-claimed offer or an exhausted code pool is a valid outcome, not a failure. Always branch on `success` as well as the status code. # Event Types Source: https://docs.tyviso.com/integration/api-integration/event-types Shared table of event types and where each applies. [← Back to API Integration](/integration/api-integration) The `type` parameter decides both what you get back and the shape it comes in. Query one type per request. | Type | What it means | Available on | | - | - | - | | `pageview` | The page carrying the widget was loaded. Your denominator for view rate. | Rewards · Gift After Purchase | | `view` | An individual offer was seen, with its placement and position. | Rewards · Gift After Purchase · Giveaways | | `click` | A customer engaged with an offer. Same shape as `view`. | Rewards · Gift After Purchase | | `transaction` | A conversion attributed to a click, with commission and validation status. | Rewards · Gift After Purchase | | `claim` | A giveaway code was claimed by a user. | Giveaways | See [Core Objects](/integration/api-integration/core-objects) for the full field breakdown of the Event and Transaction shapes. # Events Source: https://docs.tyviso.com/integration/api-integration/external-events Retrieve reward events, Gift After Purchase events, and push-notification widget data. [← Back to API Integration](/integration/api-integration) Requires an API key — see [Authentication](/integration/api-integration/authentication). ## Rewards events GET `/api/v1/rewards/events` Your Rewards performance data, filtered by event type and date range. The response shape follows `type` — see [Event Types](/integration/api-integration/event-types). **type** `string` *required* One of `view`, `click`, `pageview`, `transaction`. **start\_date** `string` *required* Start of the window, `YYYY-MM-DD`. **end\_date** `string` *required* End of the window, `YYYY-MM-DD`. **format** `string` (default: json) `json` (default) or `csv`. ```bash cURL theme={null} curl --get "$BASE/api/v1/rewards/events" \ -d "type=view" \ -d "start_date=2026-01-01" \ -d "end_date=2026-01-31" \ -d "format=json" \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL(`${BASE}/api/v1/rewards/events`); url.search = new URLSearchParams({ type: "view", start_date: "2026-01-01", end_date: "2026-01-31", format: "json", }); const res = await fetch(url, { headers: { "X-API-Key": KEY }, }); ``` ```json 200-view-or-click theme={null} { "success": true, "data": [ { "id": "67dd795d86f2741c8842cbf1", "type": "view", "timestamp": 1737632793931, "host": "66fbd742051790c97a42284f", "userId": "79be2e40-b1ba-40d5-a28c-87f312f0aa1f", "customUserId": "a9796ca0-d5a1-4eca-95ec-31baf2782fce", "device": "mobile", "partnerName": "Tails.com", "partnerId": "62f0ec618152c98efaa88d2d", "position": 5, "placement": "all", "offerViewTimestamp": 1737632793931, "offerId": "63077e1fd151a6c99ff65477", "preview": false } ] } ``` > [accordion] Other response variants (pageview, transaction) > > ```json 200-pageview theme={null} > { > "success": true, > "data": [ > { > "id": "67dd7b9bb61a300da7261d14", > "type": "pageview", > "host": "644aa8264283a61d0189ab22", > "timestamp": 1737632793931, > "userId": "1daa5cad-c662-4957-8585-37b59cdfd541", > "customUserId": "a9796ca0-d5a1-4eca-95ec-31baf2782fce", > "preview": false > } > ] > } > ``` > > ```json 200-transaction theme={null} > { > "success": true, > "data": [ > { > "id": "1816282031", > "referenceId": "67dd7b9bb61a300da7261d14", > "type": "transaction", > "status": "pending", > "netCommission": 1.87, > "validationDate": null, > "transactionDate": 1742563200000, > "offerId": "6668549895c8efca5ace48f1", > "host": "644aa8264283a61d0189ab22", > "timestamp": 1742562910605, > "partnerId": "63f8aa1bd47e2e477dbf15c3", > "userId": "6c51e0a1-5272-4ab8-ae9a-2b6c5e1cc6b5" > } > ] > } > ``` See [Errors](/integration/api-integration/errors) for error shapes. ## Gift After Purchase events GET `/api/v1/gap/events` The same contract as Rewards events, for your thank-you page placement. Identical parameters and payloads — the only field that differs is the absence of `preview`. Parameters: `type`, `start_date`, `end_date` required; `format` optional (`json` / `csv`). See [Rewards events](#rewards-events) above for the full field breakdown. ```bash cURL theme={null} curl --get "$BASE/api/v1/gap/events" \ -d "type=transaction" \ -d "start_date=2026-01-01" \ -d "end_date=2026-01-31" \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL(`${BASE}/api/v1/gap/events`); url.search = new URLSearchParams({ type: "transaction", start_date: "2026-01-01", end_date: "2026-01-31", }); const res = await fetch(url, { headers: { "X-API-Key": KEY }, }); ``` ```json 200-transaction theme={null} { "success": true, "data": [ { "id": "1816282031", "referenceId": "67dd7b9bb61a300da7261d14", "type": "transaction", "status": "pending", "netCommission": 1.87, "validationDate": null, "transactionDate": 1742563200000, "offerId": "6668549895c8efca5ace48f1", "host": "644aa8264283a61d0189ab22", "timestamp": 1742562910605, "partnerId": "63f8aa1bd47e2e477dbf15c3", "userId": "6c51e0a1-5272-4ab8-ae9a-2b6c5e1cc6b5", "customUserId": "a9796ca0-d5a1-4eca-95ec-31baf2782fce" } ] } ``` ## Rewards widget data POST `/api/v1/rewards/push-notification` Returns the `all` placement from your Rewards widget — the offer set to build a push notification around. Same fields as the [Offer object](/integration/api-integration/core-objects), plus a click-ready `url` and `socialProof` count. No parameters. Returns `404` with `partner.not-found` if no widget is configured. ```bash cURL theme={null} curl -X POST "$BASE/api/v1/rewards/push-notification" \ --header "X-API-Key: $KEY" \ --header "Content-Type: application/json" ``` ```javascript JavaScript theme={null} const res = await fetch( `${BASE}/api/v1/rewards/push-notification`, { method: "POST", headers: { "X-API-Key": KEY } } ); const { data } = await res.json(); ``` ```json 200 theme={null} { "success": true, "data": [ { "id": "67dd795d86f2741c8842cbf1", "partner": "Advertiser", "partnerLogo": "https://…/logo.png", "ageRestricted": false, "terms": "Offer valid until stocks last.", "url": "https://example.com?location=…", "title": "50% Discount", "description": "Get 50% off selected products.", "image": "https://…/image.png", "squareImage": "https://…/square.png", "discountCode": "50%", "offerInfoButtonDescription": "Discount applies at checkout.", "offerDiscountCode": "SUMMER50", "offerDiscountCodeType": "availableAtCheckout", "hasMultipleCodes": false, "socialProof": "8763 Claimed" } ] } ``` See [Errors](/integration/api-integration/errors) for error shapes. # Giveaways Source: https://docs.tyviso.com/integration/api-integration/giveaways Retrieve giveaway flows, claim discount codes, and pull giveaway event history. [← Back to API Integration](/integration/api-integration) Requires an API key — see [Authentication](/integration/api-integration/authentication). ## Get giveaway flow GET `/api/v1/giveaways/flow` Everything needed to render a giveaway yourself: the flow's template, header copy, styling settings, and its offers. Pass a `user` and we record a `view` event for you. **id** `string` *required* The flow ID to retrieve. **user** `string` Your user identifier. When provided, a `view` event is tracked. ```bash cURL theme={null} curl --get "$BASE/api/v1/giveaways/flow" \ -d "id=123" \ -d "user=user-123" \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL(`${BASE}/api/v1/giveaways/flow`); url.search = new URLSearchParams({ id: "123", user: "user-123", }); const res = await fetch(url, { headers: { "X-API-Key": KEY }, }); ``` ```json 200 theme={null} { "success": true, "data": { "id": "123", "name": "Summer giveaway", "template": 1, "headerTemplate": 2, "header": { "title": "", "description": "", "steps": [] }, "settings": { "ctaLabel": "Claim now", "ctaColor": "#ffffff", "ctaBg": "#4AAEAB", "headerBg": "#ffffff", "headerTextColor": "#000000", "sectionTitles": [] }, "logo": "https://…/logo.png", "offers": [ { "id": "69c667633181fd52275838c2", "partner": "Advertiser", "partnerLogo": "https://…/partner-logo.png", "terms": "T&Cs apply. While stocks last.", "title": "Free Gift", "description": "Get your giveaway.", "image": "https://…/image.jpg", "squareImage": "https://…/square.jpg", "heroImage": "https://…/hero.jpg", "offerInfoButtonDescription": "Limited time offer", "expiry": null, "schedule": null } ] } } ``` **Flow object** — `id`/`name` identify the flow; `template`/`headerTemplate` are layout identifiers; `header` holds title, description and a `steps` array; `settings` carries CTA and colour overrides; `offers` are [Offer objects](/integration/api-integration/core-objects) with an added `heroImage`, plus `expiry` and `schedule` (ISO 8601 or null). See [Errors](/integration/api-integration/errors) for error shapes. ## Claim a code GET `/api/v1/giveaways/claim` Claims an available discount code for a giveaway offer and returns it. **user** `string` *required* The user identifier. **offer** `string` *required* The offer ID to claim a code from. > [!NOTE] > > **Frequency logic:** with no `frequency` set on the offer, a user can claim once, ever. With one set, they can claim once per window — `1week`, `1month`, `1year`. ```bash cURL theme={null} curl --get "$BASE/api/v1/giveaways/claim" \ -d "user=user-123" \ -d "offer=123" \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL(`${BASE}/api/v1/giveaways/claim`); url.search = new URLSearchParams({ user: "user-123", offer: "123", }); const { success, data, message } = await (await fetch(url, { headers: { "X-API-Key": KEY }, })).json(); ``` ```json 200-claimed theme={null} { "success": true, "data": { "code": "DEF456" } } ``` > [accordion] 200 — not claimable (three possible outcomes) > > Three outcomes come back as `200` with `success: false`: already claimed, still inside the frequency window, or no codes left. Surface the message to the customer. > > ```json theme={null} > { "success": false, "message": "You have already claimed this offer" } > ``` > > ```json theme={null} > { "success": false, "message": "You can claim again after 2026-04-07T00:00:00+00:00" } > ``` > > ```json theme={null} > { "success": false, "message": "No available codes for this offer" } > ``` See [Errors](/integration/api-integration/errors) for error shapes. ## Giveaway events GET `/api/v1/giveaways/events` Views and claims for your giveaway flows. Paginated at 10,000 events per page, with a maximum seven-day window per request. **type** `string` *required* `view` or `claim`. **start\_date** `string` *required* ISO 8601 — `YYYY-MM-DD` or `YYYY-MM-DDTHH:mm:ssZ`. **end\_date** `string` *required* Same format. Maximum seven days from `start_date`. **page** `integer` (default: 1) Page number. Walk until `current_page` equals `last_page`. ```bash cURL theme={null} curl --get "$BASE/api/v1/giveaways/events" \ -d "type=claim" \ -d "start_date=2026-03-01" \ -d "end_date=2026-03-07" \ -d "page=1" \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL(`${BASE}/api/v1/giveaways/events`); url.search = new URLSearchParams({ type: "claim", start_date: "2026-03-01", end_date: "2026-03-07", page: "1", }); const { data, pagination } = await (await fetch(url, { headers: { "X-API-Key": KEY }, })).json(); ``` ```json 200-claim theme={null} { "success": true, "data": [ { "id": "69c667643181fd52275838c5", "type": "claim", "timestamp": 1774879237696, "user": "user-123", "offer": "69c667633181fd52275838c2" } ], "pagination": { "current_page": 1, "per_page": 10000, "total": 1, "last_page": 1 } } ``` > [accordion] 200 — view > > ```json theme={null} > { > "success": true, > "data": [ > { > "id": "69c667643181fd52275838c4", > "type": "view", > "timestamp": 1774879237696, > "user": "user-123", > "flow": "69c67a3b2e4eb05d94289b3c" > } > ] > } > ``` See [Errors](/integration/api-integration/errors) for error shapes. # MyAdvertisers Source: https://docs.tyviso.com/integration/api-integration/my-advertisers Retrieve offers for a specific partner by partner ID. [← Back to API Integration](/integration/api-integration) Requires an API key — see [Authentication](/integration/api-integration/authentication). ## MyAdvertisers offers GET `/api/v1/my-advertisers/offers` The full list of offers currently set up in the Tyviso Platform for the given partner. Returns [Offer objects](/integration/api-integration/core-objects). **partnerId** `string` *required* The partner ID to retrieve offers for. ```bash cURL theme={null} curl --get "$BASE/api/v1/my-advertisers/offers" \ -d "partnerId=644aa8243533a621322123" \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL( `${BASE}/api/v1/my-advertisers/offers` ); url.searchParams.set("partnerId", partnerId); const res = await fetch(url, { headers: { "X-API-Key": KEY }, }); ``` ```json 200 theme={null} { "success": true, "data": [ { "id": "67dd795d86f2741c8842cbf1", "partner": "Advertiser", "partnerLogo": "https://…/logo.png", "ageRestricted": false, "terms": "Offer valid until stocks last.", "title": "50% Discount", "description": "Get 50% off selected products.", "offerDiscountCode": "SUMMER50", "offerDiscountCodeType": "availableAtCheckout", "hasMultipleCodes": false } ] } ``` See [Errors](/integration/api-integration/errors) for error shapes. # Offers API Source: https://docs.tyviso.com/integration/api-integration/offers-api Retrieve the product offers feed and issue single use codes. [← Back to API Integration](/integration/api-integration) Requires an API key — see [Authentication](/integration/api-integration/authentication). ## Get product offers feed GET `https://tyviso.com/[product]/api?preview=[true/false]&flow=[category]` Returns the full payload used to render your hosted Rewards page or widget: the header template, CTA styling, social-proof configuration, and the live offers for each placement (`hero`, `popular`, `all`). > [!NOTE] > > This is a separate path from the tracking API — it's not a tracking request. **Parameters** **flow** `string` Category of offers to return. **preview** `string` `true` or `false` — preview unpublished offers before they go live. ```bash cURL theme={null} curl --get "https://tyviso.com/[product]/api" \ -d "preview=false" \ -d "flow=category" \ --header "X-API-Key: $KEY" \ --header "Accept: application/json" ``` ```javascript JavaScript theme={null} const url = new URL("https://tyviso.com/[product]/api"); url.search = new URLSearchParams({ preview: "false", flow: "category" }); const res = await fetch(url, { headers: { "X-API-Key": KEY } }); const feed = await res.json(); ``` ```json 200 theme={null} { "headerTemplate": 2, "settings": { "ctaLabel": "Claim now", "ctaColor": "#FFFFFF", "ctaBg": "#4AAEAB", "headerBg": "#FFFFFF", "headerTextColor": "#000000", "sectionTitles": [], "socialProof": { "enabled": false, "socialCta": { "62de5497af4834865468d308": "0 Claimed" }, "stickers": {}, "dynamicSocials": false, "position": "on_image", "displayMode": "exact", "showValue": 0, "fallbackText": "New" } }, "lastcached": 1785844280818, "hero": [], "popular": [], "all": [ { "id": "62de5497af4834865468d308", "partner": "Jimmy's Iced Coffee", "partnerLogo": "https://…/logo-400x200.png", "category": { "name": "Property", "parent": "Finance & Insurance" }, "ageRestricted": false, "terms": "https://…", "url": "https://…", "title": "Get 25% Off Your First Order @ Jimmy's Iced Coffee", "description": "At Jimmy's we know how to make Iced Coffee. Get 25% Off Original, Mocha, Oat & Extra Shot Iced Coffee with free UK delivery.", "image": "https://…/image.jpg", "offerInfoButtonDiscount": "25% Off", "offerInfoButtonDescription": "Refreshing Iced Coffee Delivery Service. Recyclable packaging & free next day delivery. 25% Off code TY-COFFEE25 applied automatically at checkout", "offerInfoButtonCta": "LimitedTimeOffer", "offerDiscountCode": "TY-COFFEE25", "offerDiscountCodeType": "availableAtCheckout", "hasMultipleCodes": false, "cta": "Claim now", "expiry": null } ], "testOffers": [] } ``` **Response fields** **headerTemplate** `integer` Numeric ID of the header layout your widget is using. **settings** `object` CTA copy/colours, header styling, and `socialProof` display rules — render these directly, don't hardcode your own. **hero / popular / all** `object[]` Arrays of [Offer objects](/integration/api-integration/core-objects) for each placement. `all` is your full catalogue; `hero` / `popular` may be empty if unset for your account. **comm / lastcached** `number / integer` Commission share (%) and the epoch ms this feed was last cached. See [Errors](/integration/api-integration/errors) for error shapes. ## Get a single use code GET `https://tyviso.com/rewards/unique-codes` Returns the next unclaimed single use code from your pool and marks it as issued, so each customer receives a unique code. Call it once per customer at the moment you show or send the reward. > [!WARNING] > > This endpoint is authenticated with its own token in a custom `token` header — not the `X-API-Key` used elsewhere in this reference. Ask your Tyviso account manager for it. **Parameters** **id** `string` *required* The offer to draw a code for. Omit it and the response is `not-found`. ```bash cURL theme={null} curl --get "https://tyviso.com/rewards/unique-codes" \ --data-urlencode "id=67dd795d86f2741c8842cbf1" \ --header "token: $TOKEN" \ --header "Accept: application/json" ``` ```javascript JavaScript theme={null} const res = await fetch( `https://tyviso.com/rewards/unique-codes?id=${offerId}`, { headers: { token: TOKEN } } ); const { code } = await res.json(); ``` ```json 200 theme={null} { "code": "SUMMER50-8F3KQ" } ``` **code** `string` The single use code to give the customer. When the pool is exhausted this returns the string `"No more codes available!"` — handle that case in your UI and top up the pool. > [accordion] Other responses (pool empty, errors) > > Pool empty — still a `200`: > > ```json theme={null} > { "code": "No more codes available!" } > ``` > > `not-authorized` — no token, or the token is wrong: > > ```json theme={null} > { "status": "error", "message": "not-authorized" } > ``` > > `not-found` — the `id` parameter is missing: > > ```json theme={null} > { "status": "error", "message": "not-found" } > ``` # Postback & Gruum Source: https://docs.tyviso.com/integration/api-integration/postback Record a conversion or transaction postback against a prior click; Gruum conversion. [← Back to API Integration](/integration/api-integration) Requires an API key — see [Authentication](/integration/api-integration/authentication). > [!NOTE] > > These two endpoints are real and supported, but weren't included in the client-facing HTML reference this page was built from — that source only documented 10 of the 12 live endpoints. They're kept here rather than dropped. ## Save postback transaction GET `/api/v1/postback/crumb` Records a conversion/transaction postback against a prior click. **order** `string` *required* The order ID. **click\_id** `string` *required* The click reference tracking ID. ```bash cURL theme={null} curl --get "$BASE/api/v1/postback/crumb" \ -d "order=ORD-12345" \ -d "click_id=rewards_123..." \ --header "X-API-Key: $KEY" ``` ```javascript JavaScript theme={null} const url = new URL(`${BASE}/api/v1/postback/crumb`); url.search = new URLSearchParams({ order: "ORD-12345", click_id: "rewards_123..." }); const res = await fetch(url, { headers: { "X-API-Key": KEY }, }); ``` ```json 200 theme={null} { "status": "success", "message": "Order saved" } ``` See [Errors](/integration/api-integration/errors) for error shapes. ## Gruum conversion POST `/api/v1/gruum/conversion` Records a Gruum conversion event. ```bash cURL theme={null} curl -X POST "$BASE/api/v1/gruum/conversion" \ --header "X-API-Key: $KEY" \ --header "Content-Type: application/json" ``` ```json 200 theme={null} { "success": true, "data": [{ "id": "67dd795d86f2741c8842cbf1" }] } ``` See [Errors](/integration/api-integration/errors) for error shapes. # Quickstart Source: https://docs.tyviso.com/integration/api-integration/quickstart Three steps to a first live payload, mirroring the tracking.tyviso.com quickstart flow. [← Back to API Integration](/integration/api-integration) Three steps to your first payload. If you can run cURL, you can be reading live event data inside five minutes. **1. Get your API key** Ask your Tyviso account manager. We issue it against your partner ID and confirm your rate limit at the same time. **2. Send it as a header** Add `X-API-Key` to every call. No OAuth flow, no token refresh, no signing. **3. Read the envelope** Successful responses always wrap your data in `{ success, data }`. Check `success` first. ## Your first call — reward views for January ```bash cURL theme={null} curl --get "https://tracking.tyviso.com/api/v1/rewards/events" \ --data-urlencode "type=view" \ --data-urlencode "start_date=2026-01-01" \ --data-urlencode "end_date=2026-01-31" \ --header "X-API-Key: $TYVISO_API_KEY" \ --header "Accept: application/json" ``` ```javascript JavaScript theme={null} const url = new URL("https://tracking.tyviso.com/api/v1/rewards/events"); url.search = new URLSearchParams({ type: "view", start_date: "2026-01-01", end_date: "2026-01-31", }); const res = await fetch(url, { headers: { "X-API-Key": process.env.TYVISO_API_KEY, "Accept": "application/json", }, }); const { success, data } = await res.json(); ``` Next: [Authentication](/integration/api-integration/authentication) for the full header contract, or jump straight to the [endpoint reference](/integration/api-integration#endpoint-reference). # Rate Limits & Support Source: https://docs.tyviso.com/integration/api-integration/rate-limits Shared rate-limit and support-contact page. [← Back to API Integration](/integration/api-integration) ## Rate limiting API calls are rate limited. Your specific limit is set per partner and confirmed when your key is issued. > [!TIP] > > Batch your pulls into daily windows rather than polling in a loop, and back off on any non-200 response before retrying. ## Getting help Your Tyviso account manager is the fastest route for API keys, limit increases, and adding a new placement or flow to your account. When reporting an issue, include the endpoint, the query string, the timestamp, and the full response body — it usually resolves in one reply. # app-integration Source: https://docs.tyviso.com/integration/app-integration # App Integration ## Webview Setup 1. Identify the page of choice for GWP and GAP or create a new page specifically for Rewards 2. Embed our script using the embed method of choice 3. Tyviso renders UX and all the the fun bits, then the rest is history ## Script `` ## Options to embed our tag * Option 1: Using a Tag Manager of your choice such as GTM * Option 2: Using the Tag Manager Plugin (enquire for more details) * Option 3: Embed with the Affiliate Network that you are working with ## Native * Call Tyviso API * Render UI yourself ## API To render the UI yourself, call the [Offers API](/integration/api-integration/offers-api) — see **Get product offers feed** for the endpoint, authentication, and response fields. # Overview Source: https://docs.tyviso.com/integration/overview # Integration Overview Tyviso offers a comprehensive suite of products that integrate seamlessly across web and app environments. Ranging from **Gift with Purchase**, **Gift After Purchase** and **Rewards**, our tools provide secure, customisable capabilities that can be deployed via Tag Manager, a Plugin, or an Affiliate Network. ![Docs Images](https://mintcdn.com/tyviso/vVrk503GCBIbowly/images/Docsimages.png?fit=max\&auto=format\&n=vVrk503GCBIbowly\&q=85\&s=2fc52d5f85dd4ef0332e6ff082d4dff5) ## Integration types ### Web (fastest) * Place our javascript tag into your Tag GTM or similar Tag Manager Platforms and fire within the ` `element * Load a custom UX to create a unique design based on your requirements ### App (Webview) * Use a webview container to ingest the product of choice * Load the Tyviso script within at a moments request * Have a native design that fits in perfectly to your design ### App (Native) - Coming soon *** ## Core flow 1. Users makes their journey 2. Tyviso loads offers via our API 3. User interacts with the offers available to them 4. A Conversion is tracked when an offer is claimed *** ## Deployment speed * Quicker than you can shout out Supercalifragilisticexpialidocious ten times * If you have a specific request, then let us know and we'll be more than happy to accomodate # Web integration Source: https://docs.tyviso.com/integration/web-integration # Web Integration ## Setup 1. Identify the page of choice for GWP and GAP or create a new page specifically for Rewards 2. Embed our script using the embed method of choice 3. Tyviso renders UX and all the the fun bits, then the rest is history ## Script `` ## Options to embed our tag * Option 1: Using a Tag Manager of your choice such as GTM * Option 2: Using the Tag Manager Plugin (enquire for more details) * Option 3: Embed with the Affiliate Network that you are working with ## Output Tyviso attaches to a `` anchor of the page and renders UI. The best part is, we'll be with you every step of the way to get you up and running. # Introduction Source: https://docs.tyviso.com/introduction # Tyviso Documentation Tyviso helps you activate special moments across The Commerce Journey™. Our solution provides **A smarter way to grow revenue per customer.** We do this by adding relevant, brand safe gifts at moments that influence behaviour; before, during, and after checkout. Shoppers feel rewarded, not pressured. Brands see higher conversion, increased spend, and stronger loyalty. Tyviso can be deployed within in minutes using: * A single script * Implemented on Web or App integrations * Utlising API based setups ## What you can do * Launch Rewards, GWP, GAP native experiences * Run A/B tests across placements * Track conversions without cookies * Customise UX based on your requirements ## How it works 1. Deploy the Tyviso script 2. Configure your experience 3. Launch and test 4. Optimise performance Move to Quick Start to get Live. # Dashboard Source: https://docs.tyviso.com/platform/dashboard # Dashboard The dashboard provides you with easy access to all product offerings. Ranging from uploading, managing and launching offers to their respective products to creating a tests that help you decide what will work best for your users. ## Features * View all tests * Edit / pause tests * Create new tests ## Analytics * Performance metrics * Conversion rates * Statistical analysis * Data can be exported. ![Docs Images Dashboard](https://mintcdn.com/tyviso/oObwmkJ6aroKLD0B/images/Docsimages-Dashboard-2.png?fit=max\&auto=format\&n=oObwmkJ6aroKLD0B\&q=85\&s=8ed602464f1edfe5941bd3817ae4d234) # Quick start Source: https://docs.tyviso.com/quick-start # Quick Start Get Tyviso live in minutes and begin The Commerce Journey™ for you. Just follow the steps highlighted in this documentation. ### Step 1 — Identify/ Create a page We have multiple ways that our products can be used and in different areas. What we need from you is to identify the page utilise, which could be all 3. * Gift With Purhcase - Basket or Checkout page * Gift After Purchase - Thank you or Purchase Confirmation page * Rewards - Here we just need to simply create a new page on your site e.g. '/rewards' ## Step 2 — Add the script Simply place this unique script on the relevant page and we'll handle the rest. `` ## Step 3 — Launch Tyviso automatically loads the script when the page is visited and we render your experience of choice. No heavy lifting or dev work required. It can simply be handled via your Tag Manager such as GTM.