List stores with the Lemon Squeezy API
Lists the stores of the user by name, with domain, currency, total sales and revenue in cents. The id of a store goes in the store relationship of Create customer, Create discount and Create checkout. Only the first 10 come back.
- Identifier
- lemon_squeezy_list_stores
The request
POST https://connect.reportei.com/api/tools/lemon_squeezy_list_stores/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {}
}Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.
Parameters
This tool takes no arguments.
Supported connections
Your customer connects their Lemon Squeezy account once, with one of the modes below. The same connection serves every tool of the toolkit.
API key
Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.
The response
On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.
Ready for AI agents
This tool's input is a JSON Schema, available at GET /api/tools/lemon_squeezy_list_stores. It becomes your agent's tool definition with no conversion.
Other Lemon Squeezy tools
- List productsGETLists the products of every store of the user by name, with status, price range, buy_now_url and store_id. Only the first 10 come back; meta.page.total has the count. List product variants returns the variants that checkouts and discounts use.
- List product variantsGETLists the variants of a product with price in cents, subscription interval, free trial and status. The id of a variant goes in Create checkout and in the variants of Create discount. Only the first 10 come back.
- List ordersGETLists the 10 newest orders of every store of the user, with order_number, buyer name and email, status, totals in cents, refunds and receipt URL. Older orders are only reachable by id in Get order; meta.page.total has the count.
- Get orderGETReturns an order: order_number, buyer, status, currency, subtotal, discount, tax, total and refunded amount in cents, the first order item and the receipt URL.
- List customersGETLists the 10 newest customers of every store of the user, with name, email, marketing status (subscribed, unsubscribed, archived, requires_verification, invalid_email or bounced), MRR and total revenue in cents. meta.page.total has the count.
- Create customerPOSTCreates a customer in a store and returns it. The fields go inside data, as JSON:API: type, attributes with name and email, and the store in relationships.
- Update customerPATCHChanges a customer and returns it. The fields go inside data, as JSON:API, with the same id as customer_id. Only the attributes sent change; status archived stops the marketing emails.
- List subscriptionsGETLists the 10 newest subscriptions of every store of the user, with product, variant, customer email, status (on_trial, active, paused, past_due, unpaid, cancelled or expired), renews_at, ends_at and order_id. meta.page.total has the count.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
