Core ConceptsIntegrations
Core Concepts

Integrations and Connections

Learn how to connect Better Campaign with third-party services to enhance your travel brand's digital ecosystem and streamline workflows.

curl -X GET https://api.example.com/v1/campaigns \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "campaigns": [
    {
      "id": "camp_123",
      "title": "Bali Adventure",
      "content": "Explore hidden beaches...",
      "active": true
    }
  ]
}

Overview

Better Campaign supports seamless integrations with popular third-party services, enabling you to automate workflows, sync travel content, and enhance booking experiences for your audience. Whether you manage e-commerce stores, automate campaigns via webhooks, or build custom API connections, these tools help you create a connected digital presence.

E-commerce and Booking Integrations

Integrate Better Campaign with e-commerce platforms to automatically pull in travel packages, hotel bookings, and merchandise. This keeps your campaigns updated with live inventory and pricing.

Connect your Shopify store to push campaign links directly to product pages.

Install App

In your Shopify admin, search for "Better Campaign" and install the app.

Authenticate

Enter your Better Campaign API key: YOUR_API_KEY.

Sync Products

Select travel products to sync and enable auto-updates.

Webhook Setup

Webhooks allow Better Campaign to send real-time data to your services when events occur, such as new bookings or campaign launches. Configure them in your dashboard under Settings > Integrations > Webhooks.

Create Webhook

Navigate to webhook settings and click "New Webhook".

path
webhook_urlstring
Required

Your endpoint URL, e.g., https://your-webhook-url.com/webhook.

Select Events

Choose events like campaign.published or booking.confirmed.

Test Delivery

Send a test payload to verify.

Here's a sample incoming webhook payload:

{
  "event": "booking.confirmed",
  "campaign_id": "camp_12345",
  "data": {
    "traveler_name": "Jane Doe",
    "destination": "Bali",
    "checkin": "2024-12-01"
  }
}

Always validate webhook signatures using the X-Signature header to prevent unauthorized requests.

API Connections for Custom Content

Use our REST API to fetch or push custom travel content, such as dynamic itineraries or user-generated stories.

campaignsarray
Required

List of active campaigns with travel details.

idstring

Unique campaign identifier.

Collaboration Tools

Connect with external partners using shared API keys or Slack notifications for seamless teamwork on travel campaigns.

Set up Slack webhooks to notify your team on campaign milestones.

const slack = require('slack-notify');
slack('https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK')
  .send({ text: 'New booking for Bali campaign!' });

Explore our Quickstart for initial setup, then test your first integration.

Was this page helpful?
Built with Documentation.AI

Last updated 1 day ago