The Store Object

Everything in Lemon Squeezy belongs to a store. Each store is billed separately.


A store can have many Products, Orders, Subscriptions and License Keys.

Attributes

name

The name of the store.


slug

The slug used to identify the store.


domain

The domain of the store, either in the format {slug}.lemonsqueezy.com or a custom domain.


url

The fully-qualified URL for the store (e.g. https://{slug}.lemonsqueezy.com or https://customdomain.com when a custom domain is set up).


avatar_url

The URL for the store avatar.


plan

The current billing plan for the store (e.g. fresh, sweet).


country

The ISO 3166-1 two-letter country code for the store (e.g. US, GB, etc).


country_nicename

The full country name for the store (e.g. United States, United Kingdom, etc).


currency

The ISO 4217 currency code for the store (e.g. USD, GBP, etc).


total_sales

A count of the all-time total sales made by this store.


total_revenue

A positive integer in cents representing the total all-time revenue of the store in USD.


thirty_day_sales

A count of the sales made by this store in the last 30 days.


thirty_day_revenue

A positive integer in cents representing the total revenue of the store in USD in the last 30 days.


created_at

An ISO 8601 formatted date-time string indicating when the object was created.


updated_at

An ISO 8601 formatted date-time string indicating when the object was last updated.

{
  "type": "stores",
  "id": "1",
  "attributes": {
    "name": "My Store",
    "slug": "my-store",
    "domain": "my-store.lemonsqueezy.com",
    "url": "https://my-store.lemonsqueezy.com",
    "avatar_url": "https://app.lemonsqueezy.com/storage/avatars/stores/1/czTkMkDm4Vfb8PZehb5c29XFCm9JZyJx0AjEZP7s.png",
    "plan": "fresh",
    "country": "US",
    "country_nicename": "United States",
    "currency": "USD",
    "total_sales": 1,
    "total_revenue": 999,
    "thirty_day_sales": 0,
    "thirty_day_revenue": 0,
    "created_at": "2024-05-24T14:15:06.000000Z",
    "updated_at": "2024-06-15T10:03:14.000000Z"
  }
}

Was this page helpful?