Skip to content
Plug&Pay logo

Connectors / E-commerce · HTTP Connector

Plug&Pay integration and API

Create an order, create a product and create a subscription in Plug&Pay. Connect Plug&Pay to the rest of your e-commerce stack with Tray.ai.

What can you do with Plug&Pay on Tray.ai?

Plug&Pay is a checkout and payments platform for selling digital products, subscriptions and memberships online, with order management, affiliate sellers and tax handling. Tray.ai connects to Plug&Pay through the HTTP Connector, so your workflows can call the Plug&Pay API alongside the rest of your stack.

  • List orders each day and record the sales in your accounting system.
  • Create a product for each new course added to your learning platform.
  • Get a subscription when a billing question reaches your help desk so the agent sees its status.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.plugandpay.com

Set it up

Connect Plug&Pay to Tray.ai

Each step uses Plug&Pay's own API details, from its documentation.

Save Plug&Pay's API token

Save the token Plug&Pay issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.plugandpay.com as the base URL. Or paste a cURL example from Plug&Pay's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List orders”

It's one of 20 documented actions, under Orders. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Get an order” and “Create an order” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Plug&Pay

Connect Plug&Pay with HubSpot and Xero

Each one uses actions and events from Plug&Pay's own API documentation.

Add Plug&Pay buyers to HubSpot

When

On a schedule

Then

  1. List orders placed since the last run
  2. Create or update each buyer as a contact in HubSpot

With HubSpot

Record Plug&Pay orders as sales invoices in Xero

When

On a schedule

Then

  1. List orders placed since the last run
  2. Create a sales invoice in Xero for each order

With Xero

Apps you can build on Plug&Pay data

Internal tools your team can build with an AI assistant, each one using Plug&Pay calls from its API documentation.

Order lookup

Lists orders and their details so support can find a customer's order and update it.

Subscription tracker

Lists subscriptions by product so a team can see active members and update a subscription.

Checkout manager

Lists checkouts with their products and lets marketing update a checkout.

Give your AI agents Plug&Pay tools

Build an MCP server on Plug&Pay in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List orders
  • List products
  • List subscriptions
  • List checkouts
  • Get an order
  • Create an order
  • Update an order
  • Delete an order

What the Plug&Pay API covers

4 resources and 20 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Orders

  • List orders
  • Get an order
  • Create an order
  • Update an order
  • Delete an order

Products

  • List products
  • Get a product
  • Create a product
  • Update a product
  • Delete a product

Subscriptions

  • List subscriptions
  • Get a subscription
  • Create a subscription
  • Update a subscription
  • Delete a subscription

Checkouts

  • List checkouts
  • Get a checkout
  • Create a checkout
  • Update a checkout
  • Delete a checkout

Checked against Plug&Pay's own documentation on 2026-10-22

github.com/plug-and-pay/sdk-php/wiki

Frequently asked questions

What can a Tray.ai workflow do in Plug&Pay?

The Plug&Pay API documents 20 actions across 4 resources (Orders, Products, Subscriptions, Checkouts). For example: List orders; List products; List subscriptions. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Plug&Pay?

The Plug&Pay API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Plug&Pay working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.