Product Sync & API

Mirror your online store directly onto Ghazzle

Add one line of code to your active website or send automated REST requests to syndicate products, prices, and stock to Ghana's marketplace.

Supported Integration ModesLive on Ghazzle

JavaScript Embed

Auto Schema.org

Direct REST API

POST /api/syndication/sync

WooCommerce Hook

WordPress Native

Shopify Webhooks

Instant Trigger

Simple Setup

Connect your catalog in 3 easy steps

Designed so any store owner or developer can connect in minutes.

1

Generate Your API Key

Upgrade to Premium, Auto Dealer, or Real Estate, then generate your store API key from your Ghazzle Seller Dashboard.

2

Embed JavaScript or Call REST API

Paste our 1-line script before </body> on your product pages or send HTTP POST requests with your X-Api-Key header.

3

Instant Catalog Sync

Your products, prices, descriptions, and high-resolution images automatically appear in Ghazzle search.

Option 1: One-Line JavaScript Embed

Drop onto your website

The script automatically captures Schema.org JSON-LD product data, pricing, and images without needing custom backend code.

Storefront HTML Embed Snippet

HTML

<!-- Ghazzle Business Product Sync -->
<script>
(function() {
  var GHAZZLE_API_KEY = 'YOUR_API_KEY';
  var GHAZZLE_API_URL = 'https://api.ghazzle.com/api/syndication/sync';
  function syncProduct(product) {
    fetch(GHAZZLE_API_URL, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json', 'X-Api-Key': GHAZZLE_API_KEY },
      body: JSON.stringify(product)
    }).then(function(r) { if (r.ok) console.log('[Ghazzle] Synced:', product.externalProductId); })
      .catch(function(e) { console.warn('[Ghazzle] Sync failed:', e); });
  }
  var schema = document.querySelector('[type="application/ld+json"]');
  if (schema) {
    try {
      var data = JSON.parse(schema.textContent);
      if (data['@type'] === 'Product') {
        syncProduct({
          externalProductId: data.sku || window.location.pathname,
          title: data.name,
          description: data.description,
          price: data.offers ? parseFloat(data.offers.price) : 0,
          imageUrl: data.image
        });
      }
    } catch (e) {}
  }
  window.GhazzleSync = { syncProduct: syncProduct };
})();
</script>

Option 2: Direct REST API

Programmatic control for developers

Send catalog updates directly with HTTP POST requests using your unique X-Api-Key authentication header.

POST /api/syndication/sync

HTTP / JSON

// Direct REST Product Sync Request
POST https://api.ghazzle.com/api/syndication/sync
Headers:
  Content-Type: application/json
  X-Api-Key: ghz_prod_57b12d90e9e4f2a

Body:
{
  "externalProductId": "SKU-10024",
  "title": "Executive Ergonomic Office Chair",
  "description": "High-back mesh swivel chair with lumbar support and adjustable armrests",
  "price": 450.00,
  "imageUrl": "https://yourdomain.com/images/chair.jpg",
  "category": "Furniture",
  "condition": "New",
  "quantity": 10
}

Platform Compatibility

Works with every website and e-commerce platform

Whether you run custom code or standard e-commerce software, sync is simple.

Any Custom HTML / Next.js

Embed the lightweight JS snippet that auto-detects Schema.org product data.

WooCommerce / WordPress

Trigger synchronization on product save with a simple PHP action hook.

Shopify Stores

Forward products/update webhook events directly to the Ghazzle sync API.

Custom Backends (Node, Python, C#)

Standard REST POST requests with your unique X-Api-Key header.

Developer FAQ

Frequently asked questions about Product Sync

Everything you need to know about API keys, endpoints, and data formatting.

Which plans include the Product Sync feature?
Product Sync is available on the Premium plan (GHS 99/mo) with 1 store integration and up to 100 listing syncs per day, and on Specialist plans (Auto Dealer at GHS 299/mo and Real Estate at GHS 249/mo) with unlimited daily syncs.
How does the JavaScript snippet detect product information?
The snippet inspects standard Schema.org JSON-LD structured data (`<script type="application/ld+json">`) already rendered by standard e-commerce templates on product detail pages to extract the title, price, description, SKU, and image URL.
How fast do synchronized products appear on Ghazzle?
Synced products are processed and indexed in near real-time (under 200ms). When a buyer views your product page or when you trigger an API call, the latest details are updated.
What happens when a buyer purchases a synced product?
The buyer completes checkout via Ghazzle with escrow protection (MoMo or card). You receive an instant order notification in your Seller Dashboard with delivery dispatch details.