# ShopSavvy Retailer Integration Guide

> How retailers get listed and checked out on ShopSavvy: JSON-LD Product markup, Open Graph tags and the Universal Commerce Protocol (UCP), with examples.

*Source: https://shopsavvy.com/for-retailers*

---

## Contents

- Overview: Introduction
- Price Comparison: JSON-LD Structured Data
- Price Comparison: Open Graph Meta Tags
- Price Comparison: Availability Values
- Price Comparison: Testing Your Integration
- UCP Checkout: What is UCP
- UCP Checkout: Discovery Endpoint
- UCP Checkout: Required Endpoints
- UCP Checkout: Session Lifecycle
- UCP Checkout: Security Requirements
- Support: Contact Us

---

## Welcome, Retailers

ShopSavvy is a price comparison platform that helps millions of shoppers find the best deals across tens of thousands of retailers. By integrating with ShopSavvy, your products become discoverable to shoppers actively looking for the best prices.

### Why Integrate with ShopSavvy?

-   **Increased visibility** — Your products appear in price comparison results alongside major retailers
-   **Qualified traffic** — Reach shoppers who are ready to buy and comparing prices
-   **No listing fees** — We extract product data automatically from your website
-   **Better conversion** — With UCP checkout support, customers can complete purchases without leaving our app

### Two Ways to Integrate

1\. Price Comparison

#### Product Data Integration

Add structured data markup to your product pages so we can accurately extract pricing, availability, and product details.

-   JSON-LD structured data (recommended)
-   Open Graph meta tags

2\. Checkout

#### UCP Checkout Integration

Implement the Universal Commerce Protocol to enable seamless checkout directly from shopping agents and apps.

-   Faster checkout experience
-   Higher conversion rates
-   Industry standard protocol

---

## JSON-LD Structured Data

JSON-LD (JavaScript Object Notation for Linked Data) is the recommended way to add structured product data to your pages. It's the format preferred by Google and other search engines for understanding product information.

### Required Fields

| Field | Description |
| --- | --- |
| @type | Must be "Product" |
| name | Product name/title |
| offers.price | Current price (numeric string) |
| offers.priceCurrency | ISO 4217 currency code (e.g., "USD") |
| offers.availability | Stock status URL (see Availability Values) |

### Recommended Fields

| Field | Description |
| --- | --- |
| brand.name | Brand/manufacturer name |
| sku | Your internal SKU |
| gtin | UPC, EAN, or ISBN (12-14 digits) |
| mpn | Manufacturer Part Number |
| image | Product image URL(s) |
| description | Product description |
| offers.url | Canonical product page URL |
| offers.seller.name | Your store/company name |

### Basic Example

Here's a minimal example with all required fields:

```html
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Sony WH-1000XM5 Wireless Headphones",
  "image": "https://yourstore.com/images/sony-xm5.jpg",
  "description": "Industry-leading noise canceling headphones",
  "brand": {
    "@type": "Brand",
    "name": "Sony"
  },
  "sku": "WH1000XM5B",
  "gtin": "027242923782",
  "offers": {
    "@type": "Offer",
    "price": "349.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "url": "https://yourstore.com/sony-wh-1000xm5",
    "seller": {
      "@type": "Organization",
      "name": "Your Store Name"
    }
  }
}
</script>
```

### Full Example

Here's a comprehensive example with all recommended fields:

```html
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Sony WH-1000XM5 Wireless Headphones - Black",
  "image": [
    "https://yourstore.com/images/sony-xm5-1.jpg",
    "https://yourstore.com/images/sony-xm5-2.jpg"
  ],
  "description": "Industry-leading noise canceling with Auto NC Optimizer",
  "brand": {
    "@type": "Brand",
    "name": "Sony"
  },
  "sku": "WH1000XM5B",
  "gtin": "027242923782",
  "mpn": "WH-1000XM5/B",
  "color": "Black",
  "category": "Electronics > Audio > Headphones",
  "offers": {
    "@type": "Offer",
    "price": "349.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition",
    "url": "https://yourstore.com/sony-wh-1000xm5-black",
    "priceValidUntil": "2026-12-31",
    "seller": {
      "@type": "Organization",
      "name": "Your Store Name"
    },
    "shippingDetails": {
      "@type": "OfferShippingDetails",
      "shippingRate": {
        "@type": "MonetaryAmount",
        "value": "0",
        "currency": "USD"
      },
      "deliveryTime": {
        "@type": "ShippingDeliveryTime",
        "handlingTime": {
          "@type": "QuantitativeValue",
          "minValue": "0",
          "maxValue": "1",
          "unitCode": "DAY"
        },
        "transitTime": {
          "@type": "QuantitativeValue",
          "minValue": "1",
          "maxValue": "5",
          "unitCode": "DAY"
        }
      }
    }
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.7",
    "reviewCount": "1523"
  }
}
</script>
```

**Tip:** Place the JSON-LD script tag in the `<head>` section of your product pages, or anywhere in the `<body>`. It won't affect page rendering.

---

## Open Graph Meta Tags

If you already use Open Graph tags for social sharing, you can extend them with product-specific properties. While JSON-LD is preferred, Open Graph tags provide an alternative approach.

### Required Tags

| Tag | Description |
| --- | --- |
| og:title | Product name |
| og:type | Must be "product" |
| product:price:amount | Current price |
| product:price:currency | ISO 4217 currency code |
| product:availability | "in stock", "out of stock", "preorder" |

### Example

```html
<!-- Required Open Graph tags -->
<meta property="og:title" content="Sony WH-1000XM5 Wireless Headphones" />
<meta property="og:type" content="product" />
<meta property="og:url" content="https://yourstore.com/sony-wh-1000xm5" />
<meta property="og:image" content="https://yourstore.com/images/sony-xm5.jpg" />

<!-- Product-specific tags -->
<meta property="product:price:amount" content="349.99" />
<meta property="product:price:currency" content="USD" />
<meta property="product:availability" content="in stock" />
<meta property="product:condition" content="new" />
<meta property="product:brand" content="Sony" />

<!-- Optional but recommended -->
<meta property="product:retailer_item_id" content="WH1000XM5B" />
<meta property="og:description" content="Industry-leading noise canceling headphones" />
```

**Note:** We recommend using JSON-LD as your primary structured data format. Open Graph tags are supported but provide less detail.

---

## Availability Values

Use these standard schema.org URLs for the `offers.availability` field in JSON-LD, or the equivalent text values for Open Graph tags.

### JSON-LD Availability URLs

| Value | When to Use |
| --- | --- |
| https://schema.org/InStock | Item is available for purchase |
| https://schema.org/OutOfStock | Item is currently unavailable |
| https://schema.org/PreOrder | Item can be pre-ordered before release |
| https://schema.org/LimitedAvailability | Limited stock remaining |
| https://schema.org/Discontinued | Item is no longer being sold |
| https://schema.org/BackOrder | Item available but will ship later |

### Open Graph Availability Values

For Open Graph `product:availability`, use these text values:

-   `in stock`
-   `out of stock`
-   `preorder`
-   `available for order`
-   `discontinued`

---

## Testing Your Integration

Before going live, verify your structured data is correctly implemented.

### Google Rich Results Test

Use Google's official testing tool to validate your JSON-LD markup:

[https://search.google.com/test/rich-results](https://search.google.com/test/rich-results)

### Schema.org Validator

For detailed schema.org validation:

[https://validator.schema.org/](https://validator.schema.org/)

### Common Mistakes to Avoid

-   **Missing currency** — Always include `priceCurrency` with the price
-   **Invalid availability URLs** — Use exact schema.org URLs, not custom values
-   **Price as number** — In JSON-LD, price should be a string ("349.99"), not a number
-   **Incorrect GTIN format** — GTINs must be 8, 12, 13, or 14 digits with no spaces or dashes
-   **Stale data** — Ensure price and availability update in real-time with your inventory

### Checklist

-   JSON-LD script present on all product pages
-   Price matches displayed price exactly
-   Availability reflects actual stock status
-   GTIN/UPC included when available
-   Google Rich Results Test passes without errors

---

## What is UCP?

The **Universal Commerce Protocol (UCP)** is an open standard that enables shopping agents and apps to complete purchases directly with retailers through a standardized API. Instead of automating your website's UI, UCP provides a structured way for agents to interact with your checkout system.

### Why Implement UCP?

#### For Your Customers

-   Faster checkout experience
-   No need to re-enter payment details
-   Seamless cross-retailer shopping

#### For Your Business

-   Higher conversion rates
-   Access to agent-driven commerce
-   Reduced cart abandonment

### Who Supports UCP?

UCP is co-developed by leading retailers and payment providers including Target, Walmart, Best Buy, Shopify, Stripe, and Visa. It's designed for the emerging world of AI shopping agents.

### Learn More

For the complete UCP specification, visit [ucp.dev](https://ucp.dev)

---

## Discovery Endpoint

Shopping agents discover your UCP support by fetching a JSON file at a well-known URL on your domain. This file tells agents what capabilities you support and where to send API requests.

### Location

Host your UCP profile at:

`https://yourstore.com/.well-known/ucp`

### Required Fields

| Field | Description |
| --- | --- |
| version | UCP specification version (e.g., "2026-01-11") |
| services.shopping.rest.endpoint | Base URL for your UCP REST API |
| capabilities | Array of supported UCP capabilities |
| payment\_handlers | Supported payment methods (Stripe, etc.) |

### Example Discovery File

```json
{
  "version": "2026-01-11",
  "services": {
    "shopping": {
      "rest": {
        "endpoint": "https://api.yourstore.com/ucp/v1"
      }
    }
  },
  "capabilities": [
    {"name": "dev.ucp.shopping.checkout", "version": "2026-01-11"},
    {"name": "dev.ucp.shopping.fulfillment", "version": "2026-01-11"},
    {"name": "dev.ucp.shopping.discount", "version": "2026-01-11"}
  ],
  "payment_handlers": [
    {
      "id": "stripe",
      "name": "com.stripe",
      "config": {
        "publishableKey": "pk_live_..."
      }
    }
  ]
}
```

### Capabilities

| Capability | Description |
| --- | --- |
| dev.ucp.shopping.checkout | Core checkout functionality (required) |
| dev.ucp.shopping.fulfillment | Shipping options and addresses |
| dev.ucp.shopping.discount | Promo codes and discounts |
| dev.ucp.shopping.order | Post-purchase (tracking, returns) |

---

## Required API Endpoints

Implement these REST endpoints at your UCP API base URL (as specified in your discovery file). All amounts are in minor units (cents for USD).

### Endpoints Overview

| Method | Endpoint | Description |
| --- | --- | --- |
| POST | /checkout-sessions | Create new checkout session |
| GET | /checkout-sessions/{id} | Get session status and details |
| PUT | /checkout-sessions/{id} | Update buyer info, shipping, payment |
| POST | /checkout-sessions/{id}/complete | Complete order and charge payment |
| POST | /checkout-sessions/{id}/cancel | Cancel checkout session |

### Create Checkout Session

Creates a new checkout session with the items to purchase.

```json
// POST /checkout-sessions
// Request
{
  "line_items": [
    {
      "item": { "id": "SKU123", "title": "Sony WH-1000XM5" },
      "quantity": 1
    }
  ],
  "currency": "USD"
}

// Response
{
  "id": "cs_abc123",
  "status": "incomplete",
  "line_items": [
    {
      "id": "li_1",
      "item_id": "SKU123",
      "title": "Sony WH-1000XM5",
      "price": 34999,
      "quantity": 1,
      "image_url": "https://...",
      "totals": { "subtotal": 34999, "total": 34999 }
    }
  ],
  "totals": {
    "subtotal": 34999,
    "discount": 0,
    "fulfillment": 0,
    "tax": 0,
    "total": 34999
  },
  "fulfillment": { "methods": [] },
  "payment_handlers": [
    { "id": "stripe", "name": "com.stripe" }
  ]
}
```

### Update Checkout Session

Add buyer information, select shipping, and attach payment method.

```json
// PUT /checkout-sessions/{id}
// Request
{
  "buyer": {
    "full_name": "Jane Smith",
    "email": "jane@example.com",
    "phone": "+1-555-555-5555"
  },
  "fulfillment": {
    "method_id": "shipping",
    "destination": {
      "address": {
        "street_address": "123 Main St",
        "locality": "Austin",
        "region": "TX",
        "postal_code": "78701",
        "country": "US"
      }
    },
    "selected_option_id": "standard"
  },
  "payment": {
    "instrument": {
      "handler_id": "stripe",
      "credential": {
        "type": "token",
        "token": "tok_..."
      }
    }
  }
}
```

### Complete Checkout

Finalize the order and process payment.

```json
// POST /checkout-sessions/{id}/complete
// Request
{
  "payment_instrument_id": "pi_abc123"
}

// Response (success)
{
  "id": "cs_abc123",
  "status": "completed",
  "order_id": "ORD-12345",
  "totals": { ... }
}

// Response (requires escalation)
{
  "id": "cs_abc123",
  "status": "requires_escalation",
  "continue_url": "https://yourstore.com/checkout/cs_abc123"
}
```

**Note:** All prices are in minor currency units (cents). For example, $349.99 is represented as `34999`.

---

## Session Lifecycle

A UCP checkout session progresses through defined states as the buyer provides information and completes their purchase.

### Session States

| Status | Description |
| --- | --- |
| incomplete | Session created, awaiting buyer info |
| ready\_for\_complete | All info collected, ready to place order |
| complete\_in\_progress | Order is being processed |
| completed | Order placed successfully |
| requires\_escalation | Must complete on retailer website |
| canceled | Session was canceled |

### Typical Flow

1.  1
    
    **Create Session**
    
    Agent sends line items, session created as `incomplete`
    
2.  2
    
    **Update with Buyer Info**
    
    Agent adds name, email, shipping address
    
3.  3
    
    **Select Fulfillment**
    
    Agent chooses shipping method from available options
    
4.  4
    
    **Attach Payment**
    
    Agent provides tokenized payment credential
    
5.  5
    
    **Complete Order**
    
    Agent calls complete, session becomes `completed` with order ID
    

### Escalation

Sometimes an order can't be completed via API (e.g., age verification required, fraud review needed). In these cases, return `requires_escalation` with a `continue_url` where the buyer can finish checkout on your website.

---

## Security Requirements

UCP is designed with security-first principles. Follow these requirements to protect your customers and your business.

### HTTPS Only

All UCP endpoints must be served over HTTPS. The discovery file at `/.well-known/ucp` must also be HTTPS.

### Payment Tokenization

**Never accept raw card numbers.** UCP uses tokenized payment credentials. The agent tokenizes payment data client-side using your payment provider (e.g., Stripe), then sends only the token to your API.

**Important:** Your UCP endpoints should never receive or store actual card numbers, CVVs, or other sensitive payment data. Always use tokens.

### Idempotency Keys

Support idempotency keys via the `Idempotency-Key` header. If a request is retried with the same key, return the original response rather than processing again. This prevents duplicate orders from network retries.

### Request Validation

-   Validate all input data (prices, quantities, addresses)
-   Verify line item prices match your current catalog
-   Reject requests with invalid or expired session IDs
-   Rate limit API requests per session and per IP

### Session Expiry

Checkout sessions should expire after a reasonable time (e.g., 1 hour). Expired sessions should return an error when accessed.

---

## Contact Us

Have questions about integrating with ShopSavvy? We're here to help.

### Already publish a product feed? Share it.

If you already produce a Google Merchant Center–format product feed, you can hand us the URL and we'll ingest your catalog. No code, no integration work — just the feed you already publish.

We don’t list firearms and ammunition, weapons (including tactical knives), tobacco and vapes, adult products, gambling, or drugs and CBD. Those items are skipped, and a catalog that is mostly made of them can’t be carried. [What we list](/for-retailers/share-feed#what-we-list)

[Share your product feed](/for-retailers/share-feed)[See our data partners](/data-partners)

### Get in Touch

For retailer integration questions, partnership inquiries, or technical support:

[business@shopsavvy.com](mailto:business@shopsavvy.com)

#### Already a Partner?

If you're already integrated and need technical support, include your store domain in your email so we can assist you faster.

#### Response Time

We reply to integration inquiries within one business day.
