# Lemon Squeezy integrations: orders

> Generate an order invoice, update a subscription and create a customer in Lemon Squeezy, and start a workflow when Lemon Squeezy sends “Order created”.

**Canonical page:** https://tray.ai/connectors/lemon-squeezy-integrations/
**Categories:** Finance
**Connects through:** HTTP Connector

## Overview

Lemon Squeezy is a merchant of record for selling software and digital products, handling checkout, subscriptions, license keys, global sales tax and payouts for the seller. Tray.ai connects to Lemon Squeezy through the HTTP Connector, so your workflows can call the Lemon Squeezy API alongside the rest of your stack.

## Use cases

### Orders

Read and create orders in Lemon Squeezy from any Tray.ai workflow. The Lemon Squeezy API covers calls such as list orders and retrieve an order.

- List orders
- Retrieve an order
- Generate an order invoice

### Subscriptions

Read, update, and delete subscriptions in Lemon Squeezy from any Tray.ai workflow. The Lemon Squeezy API covers calls such as list subscriptions and retrieve a subscription.

- List subscriptions
- Retrieve a subscription
- Update a subscription

### Customers

Read, create, and update customers in Lemon Squeezy from any Tray.ai workflow. The Lemon Squeezy API covers calls such as list customers and retrieve a customer.

- List customers
- Retrieve a customer
- Create a customer

### Checkouts

Read and create checkouts in Lemon Squeezy from any Tray.ai workflow. The Lemon Squeezy API covers calls such as create a checkout and retrieve a checkout.

- Create a checkout
- Retrieve a checkout
- List checkouts

### Discounts

Read, create, and delete discounts in Lemon Squeezy from any Tray.ai workflow. The Lemon Squeezy API covers calls such as list discounts and create a discount.

- List discounts
- Create a discount
- Delete a discount

### License keys

Read and update license keys in Lemon Squeezy from any Tray.ai workflow. The Lemon Squeezy API covers calls such as list license keys and update a license key.

- List license keys
- Update a license key
- Activate a license key

## Challenges Tray.ai solves

### Keeping Lemon Squeezy credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Lemon Squeezy credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Lemon Squeezy API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Lemon Squeezy API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Lemon Squeezy?

Yes. Tray.ai connects to Lemon Squeezy through the HTTP Connector, which calls the Lemon Squeezy API directly. Any call the Lemon Squeezy API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Lemon Squeezy?

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

### Can I get a dedicated Lemon Squeezy connector?

Lemon Squeezy runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Lemon Squeezy connector from the Lemon Squeezy API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
