Square

Solutions & Tools to Grow Your Business

Integrate the Square API with the Discord API

Setup the Square API trigger to run a workflow which integrates with the Discord API. Pipedream's integration platform allows you to integrate Square and Discord remarkably fast. Free for developers.

Create Customer with Square API on New Message (Instant) from Discord API
Discord + Square
 
Try it
Create Invoice with Square API on New Message (Instant) from Discord API
Discord + Square
 
Try it
Create Order with Square API on New Message (Instant) from Discord API
Discord + Square
 
Try it
Send Invoice with Square API on New Message (Instant) from Discord API
Discord + Square
 
Try it
Create Customer with Square API on Message Deleted (Instant) from Discord API
Discord + Square
 
Try it
Catalog Item Updated from the Square API

Emit new event every time a catalog item is updated. See the docs

 
Try it
New Message (Instant) from the Discord API

Emit new event for each message posted to one or more channels in a Discord server

 
Try it
Message Deleted (Instant) from the Discord API

Emit new event for each message deleted

 
Try it
New Command Received (Instant) from the Discord API

Emit new event for each command posted to one or more channels in a Discord server

 
Try it
New Guild Member (Instant) from the Discord API

Emit new event for each new member added to a guild

 
Try it
Create Customer with the Square API

Creates a new customer for a business. Must provide at least one of the following: Given Name, Family Name, Company Name, Email Address, or Phone Number. See the docs.

 
Try it
Create Invoice with the Square API

Creates a draft invoice for an order. You must send (publish) the invoice before Square can process it. See the documentation.

 
Try it
Create Order with the Square API

Creates a new order that can include information about products for purchase. See docs here.

 
Try it
Send Message with the Discord API

Send a simple message to a Discord channel

 
Try it
Send Message (Advanced) with the Discord API

Send a simple or structured message (using embeds) to a Discord channel

 
Try it

Overview of Square

The Square API, provided by Square Inc., is a powerful tool for creating
integrations with in-store, online, and mobile payments.

The Square API allows apps to access functions such as:

  • Credit and debit card payments
  • Digital wallets
  • Gift cards
  • Subscriptions
  • Point of sale
  • Ordering & Delivery

It provides developers with the capability to build powerful, secure, and easy
to use applications that integrate with Square’s suite of products and
services. In addition, the API allows developers to quickly build, customize,
and iterate on their Square integrations.

Examples of what you can build using the Square API:

  • Mobile apps and websites for accepting payments
  • ECommerce sites
  • Mobile POS systems
  • Subscription services
  • In-store checkout systems
  • Online invoicing
  • Payment processing for loyalty programs
  • Cloud-based inventory and reporting tools
  • API endpoints for customer and staff management

Connect Square

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    square: {
      type: "app",
      app: "square",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: "post",
      url: `https://connect.squareup.com/oauth2/token/status`,
      headers: {
        Authorization: `Bearer ${this.square.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Discord

The Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use Pipedream workflows to perform common Discord actions, or write your own code against the Discord API.

Connect Discord

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord: {
      type: "app",
      app: "discord",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
        "accept": `application/json`,
      },
    })
  },
})