Yotpo - Loyalty & Referrals

Yotpo is an eCommerce marketing platform with the most advanced solutions for customer reviews, visual marketing, loyalty, referrals, and SMS marketing.

Go to site
Explore
/
Apps
/
Yotpo - Loyalty & Referrals

Yotpo - Loyalty & Referrals API Integrations

Build and run workflows using the Yotpo - Loyalty & Referrals API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    yotpo_loyalty_referrals: {
      type: "app",
      app: "yotpo_loyalty_referrals",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://loyalty.yotpo.com/api/v2/campaigns`,
      headers: {
        "Content-Type": `application/json`,
        "x-guid": `${this.yotpo_loyalty_referrals.$auth.guid}`,
        "x-api-key": `${this.yotpo_loyalty_referrals.$auth.api_key}`,
      },
    })
  },
})

Authentication

Yotpo - Loyalty & Referrals uses API keys for authentication. When you connect your Yotpo - Loyalty & Referrals account, Pipedream securely stores the keys so you can easily authenticate to Yotpo - Loyalty & Referrals APIs in both code and no-code steps.

Yotpo uses a combination of your guid and api_key to authenticate requests. You can find your authentication credentials in the Settings page of your Loyalty admin account.