---
title: "Príručka integrácie s BigCommerce"
description: "Kompletná príručka integrácie Tajo s Vaším obchodom BigCommerce pre synchronizáciu údajov o zákazníkoch, vernostné programy a marketingovú automatizáciu"
url: https://tajo.io/sk/docs/ecommerce-platforms/bigcommerce/
markdown: https://tajo.io/sk/docs/ecommerce-platforms/bigcommerce.md
lang: sk-SK
robots: noindex
---

Požiadajte o skorý prístup

Zadajte svoje meno a pracovnú e-mailovú adresu. Pošleme vám odkaz na potvrdenie žiadosti o prístup k Tajo.

# Príručka integrácie s BigCommerce

Táto príručka Vás prevedie integráciou Tajo s Vaším obchodom BigCommerce, aby ste naplno využili zapojenie zákazníkov, vernostné programy a marketingovú automatizáciu.

## Prehľad

Integrácia Tajo s BigCommerce Vám umožní:

- **Synchronizovať údaje o zákazníkoch** automaticky z Vášho obchodu BigCommerce
- **Sledovať objednávky a produkty** pre personalizovaný marketing
- **Prevádzkovať vernostné programy** s bodmi, úrovňami a odmenami
- **Automatizovať marketingové kampane** cez Brevo (e-mail, SMS, WhatsApp)
- **Segmentovať zákazníkov** podľa nákupného správania a zapojenia
- **Podporovať prevádzku s viacerými obchodmi** v rámci jedného účtu

## Predpoklady

Skôr než začnete s integráciou, uistite sa, že máte:

- **Obchod BigCommerce** na ľubovoľnom pláne (Standard, Plus, Pro alebo Enterprise)
- **Účet Tajo** s aktívnym predplatným
- **Účet Brevo** (voliteľne, pre marketingovú automatizáciu)
- **Prístupové údaje k API obchodu** (účet API s príslušnými rozsahmi)

## Krok 1: Nainštalujte aplikáciu Tajo

### Z BigCommerce App Marketplace

1. Prejdite do svojho ovládacieho panela BigCommerce
2. Otvorte **Apps → Marketplace**
3. Vyhľadajte „Tajo“
4. Kliknite na **Get This App**
5. Skontrolujte oprávnenia a kliknite na **Install**
6. Podľa sprievodcu nastavením prepojte svoj účet Tajo

### Konfigurácia API

Po inštalácii nastavte prístup k API:

```json
{
  "api_credentials": {
    "client_id": "your_client_id",
    "client_secret": "your_client_secret",
    "access_token": "your_access_token",
    "store_hash": "your_store_hash"
  },
  "scopes": [
    "store_v2_customers",
    "store_v2_orders",
    "store_v2_products",
    "store_cart",
    "store_checkout"
  ]
}
```

## Krok 2: Nastavte synchronizáciu údajov

### Nastavenia synchronizácie zákazníkov

Nastavte, ktoré údaje o zákazníkoch sa majú synchronizovať:

```json
{
  "sync_settings": {
    "customers": {
      "enabled": true,
      "sync_frequency": "real-time",
      "fields": [
        "email",
        "first_name",
        "last_name",
        "phone",
        "company",
        "customer_group_id",
        "store_credit",
        "addresses",
        "date_created"
      ]
    },
    "orders": {
      "enabled": true,
      "sync_frequency": "real-time",
      "include_products": true,
      "include_shipping": true,
      "include_coupons": true
    },
    "products": {
      "enabled": true,
      "sync_frequency": "hourly",
      "include_variants": true,
      "include_images": true,
      "include_custom_fields": true
    }
  }
}
```

### Konfigurácia webhookov

Tajo registruje tieto webhooky BigCommerce:

| Webhook | Účel |
| --- | --- |
| `store/customer/created` | Synchronizácia nových zákazníkov do Tajo a Brevo |
| `store/customer/updated` | Udržiavanie profilov zákazníkov aktuálnych |
| `store/order/created` | Sledovanie nákupov, pripisovanie vernostných bodov |
| `store/order/statusUpdated` | Spúšťanie kampaní podľa stavu objednávky |
| `store/cart/created` | Sledovanie košíka kvôli opusteniu |
| `store/cart/updated` | Aktualizácia sekvencií pre opustené košíky |
| `store/product/updated` | Udržiavanie katalógu produktov synchronizovaného |

### Podpora viacerých obchodov

Pre BigCommerce Enterprise s viacerými obchodmi:

```json
{
  "multi_storefront": {
    "enabled": true,
    "storefronts": [
      {
        "channel_id": 1,
        "name": "Main Store",
        "loyalty_program": "default"
      },
      {
        "channel_id": 2,
        "name": "Wholesale",
        "loyalty_program": "b2b_program"
      },
      {
        "channel_id": 3,
        "name": "International",
        "loyalty_program": "global_program"
      }
    ],
    "sync_across_channels": true
  }
}
```

## Krok 3: Nastavte vernostný program

### Konfigurácia bodového systému

```javascript
const pointsConfig = {
  // Points per dollar spent
  purchasePoints: {
    enabled: true,
    rate: 1, // 1 point per $1
    roundingMode: 'floor'
  },

  // Bonus actions
  bonusPoints: {
    accountCreation: 100,
    firstPurchase: 200,
    reviewSubmitted: 50,
    referralMade: 500,
    birthdayBonus: 100,
    newsletterSignup: 25
  },

  // Customer group multipliers
  customerGroupMultipliers: {
    'Retail': 1.0,
    'VIP': 1.5,
    'Wholesale': 0.5,
    'Platinum': 2.0
  }
};
```

### Vernostné úrovne

```javascript
const loyaltyTiers = [
  {
    name: 'Bronze',
    minPoints: 0,
    benefits: [
      '1 point per $1 spent',
      'Birthday bonus points',
      'Member-only promotions'
    ]
  },
  {
    name: 'Silver',
    minPoints: 1000,
    benefits: [
      '1.25x points multiplier',
      'Free shipping on orders $50+',
      'Early access to sales'
    ]
  },
  {
    name: 'Gold',
    minPoints: 5000,
    benefits: [
      '1.5x points multiplier',
      'Free shipping on all orders',
      'Exclusive product access',
      'Priority support'
    ]
  },
  {
    name: 'Platinum',
    minPoints: 15000,
    benefits: [
      '2x points multiplier',
      'Free express shipping',
      'VIP experiences',
      'Dedicated account manager'
    ]
  }
];
```

## Krok 4: Správa B2B zákazníkov

### Firemné účty

BigCommerce podporuje B2B funkcie, ktoré sa integrujú s Tajo:

```javascript
const b2bConfig = {
  companyAccounts: {
    enabled: true,
    syncCompanyData: true,
    fields: [
      'company_name',
      'tax_id',
      'credit_limit',
      'payment_terms',
      'price_list'
    ]
  },

  // B2B-specific loyalty rules
  b2bLoyalty: {
    orderVolumeBonus: {
      threshold: 10000,
      bonusMultiplier: 1.5
    },
    reorderPoints: {
      enabled: true,
      rate: 0.5 // 0.5 points per $1 on reorders
    }
  }
};
```

### Integrácia skupín zákazníkov

```javascript
// Map BigCommerce customer groups to Tajo segments
const customerGroupMapping = {
  'Retail': {
    tajoSegment: 'retail_customers',
    loyaltyTier: 'Bronze',
    emailList: 'retail_newsletter'
  },
  'Wholesale': {
    tajoSegment: 'wholesale_customers',
    loyaltyTier: 'Silver',
    emailList: 'wholesale_updates'
  },
  'VIP': {
    tajoSegment: 'vip_customers',
    loyaltyTier: 'Gold',
    emailList: 'vip_exclusive'
  }
};
```

## Krok 5: Záchrana opustených košíkov

### Sledovanie košíka

```javascript
// BigCommerce cart webhook handler
async function handleCartWebhook(event) {
  const cart = await bigcommerce.carts.get(event.data.cartId);

  if (!cart.customer_id && !cart.email) {
    return; // Can't track without identity
  }

  await tajo.carts.track({
    customerId: cart.customer_id,
    email: cart.email,
    cartId: cart.id,
    items: cart.line_items.physical_items.map(item => ({
      productId: item.product_id,
      variantId: item.variant_id,
      title: item.name,
      quantity: item.quantity,
      price: item.sale_price || item.list_price,
      image: item.image_url
    })),
    totalPrice: cart.cart_amount,
    currency: cart.currency.code,
    checkoutUrl: cart.redirect_urls?.checkout_url
  });
}
```

### Záchranná sekvencia

```json
{
  "abandoned_cart_sequence": {
    "trigger": {
      "event": "cart_abandoned",
      "delay": "1 hour"
    },
    "messages": [
      {
        "delay": "1 hour",
        "channel": "email",
        "template": "cart_reminder_1",
        "subject": "You left something behind!"
      },
      {
        "delay": "24 hours",
        "channel": "email",
        "template": "cart_reminder_2",
        "subject": "Your cart is waiting - 10% off inside"
      },
      {
        "delay": "72 hours",
        "channel": "sms",
        "template": "cart_sms_final"
      }
    ],
    "exit_conditions": [
      "order_completed",
      "cart_emptied",
      "unsubscribed"
    ]
  }
}
```

## Krok 6: Marketingová automatizácia

### Segmenty zákazníkov

```javascript
const bigcommerceSegments = [
  // Purchase behavior
  {
    name: 'First-Time Buyers',
    conditions: { orders_count: 1 }
  },
  {
    name: 'Repeat Customers',
    conditions: { orders_count: { $gte: 2 } }
  },
  {
    name: 'High-Value Customers',
    conditions: { total_spent: { $gte: 1000 } }
  },

  // Customer groups
  {
    name: 'Wholesale Accounts',
    conditions: { customer_group: 'Wholesale' }
  },

  // Engagement
  {
    name: 'At-Risk Customers',
    conditions: {
      last_order_date: { $lt: '-90 days' },
      orders_count: { $gte: 2 }
    }
  }
];
```

### Automatizované kampane

```javascript
// Order status change triggers
bigcommerce.webhooks.on('store/order/statusUpdated', async (event) => {
  const order = await bigcommerce.orders.get(event.data.orderId);
  const customer = await tajo.customers.getByEmail(order.billing_address.email);

  switch (event.data.status.new_status) {
    case 'Shipped':
      await brevo.trackEvent(customer.email, 'order_shipped', {
        orderId: order.id,
        trackingNumber: order.tracking_number,
        carrier: order.shipping_carrier
      });
      break;

    case 'Completed':
      // Award loyalty points
      const points = calculatePoints(order, customer);
      await tajo.loyalty.awardPoints(customer.id, points);

      // Trigger review request after 14 days
      await brevo.scheduleEvent(customer.email, 'review_request', {
        orderId: order.id,
        products: order.products
      }, { delay: '14 days' });
      break;
  }
});
```

## Krok 7: Analytika

### Metriky dashboardu

```javascript
const dashboardMetrics = {
  customers: {
    total: await tajo.analytics.count('customers'),
    byChannel: await tajo.analytics.groupBy('customers', 'channel_id'),
    newThisMonth: await tajo.analytics.count('customers', {
      created_at: { $gte: 'this_month' }
    })
  },

  revenue: {
    total: await tajo.analytics.sum('orders.total'),
    byChannel: await tajo.analytics.groupBy('orders', 'channel_id', {
      aggregate: 'sum',
      field: 'total'
    }),
    averageOrderValue: await tajo.analytics.avg('orders.total')
  },

  loyalty: {
    activeMembers: await tajo.analytics.count('loyalty_members'),
    pointsIssued: await tajo.analytics.sum('points.awarded'),
    redemptionRate: await tajo.analytics.pointsRedemptionRate()
  }
};
```

## Riešenie problémov

### Limity požiadaviek API

```javascript
// Implement rate limiting
async function bigcommerceApiCall(endpoint, options, retries = 3) {
  for (let i = 0; i < retries; i++) {
    try {
      const response = await fetch(endpoint, options);

      if (response.status === 429) {
        const retryAfter = response.headers.get('X-Rate-Limit-Time-Reset-Ms');
        await sleep(parseInt(retryAfter) || Math.pow(2, i) * 1000);
        continue;
      }

      return response;
    } catch (error) {
      if (i === retries - 1) throw error;
    }
  }
}
```

### Overovanie webhookov

```javascript
// Verify BigCommerce webhook signature
function verifyWebhook(payload, signature, secret) {
  const expected = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('base64');

  return crypto.timingSafeEqual(
    Buffer.from(expected),
    Buffer.from(signature)
  );
}
```

## Ďalšie kroky

1. **[Nastavte integráciu s Brevo](https://tajo.io/sk/docs/platform-integration/tajo-brevo-integration)** pre e-mailové a SMS kampane
2. **[Nastavte webhooky](https://tajo.io/sk/docs/webhook-configuration/setup-guide)** pre udalosti v reálnom čase
3. **[Vytvorte segmenty zákazníkov](https://tajo.io/sk/docs/contact-management)** pre cielený marketing
4. **[Zostavte e-mailové šablóny](https://tajo.io/sk/docs/messaging-api)** pre automatizované kampane

## Podpora

- **Podpora integrácie**: [support@tajo.io](mailto:support@tajo.io)
- **Dokumentácia BigCommerce**: [developer.bigcommerce.com](https://developer.bigcommerce.com/)
- **Referencia API**: [docs.tajo.io/api](https://tajo.io/sk/docs/endpoints/rest-api)
- **Kontaktujte podporu**: [/sk/contact](https://tajo.io/sk/contact)
