Retrieve a Product
GET
/v1/products/:id
Retrieves the product with the given ID.
curl "https://api.lemonsqueezy.com/v1/products/1" \
-H 'Accept: application/vnd.api+json' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer {api_key}'
Returns
Returns a Product object.
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/products/1"
},
"data": {
"type": "products",
"id": "1",
"attributes": {
"store_id": 1,
"name": "Lemonade",
"slug": "lemonade",
"description": "<p>Lorem ipsum...</p>",
"status": "published",
"status_formatted": "Published",
"thumb_url": "https://app.lemonsqueezy.com/storage/media/1/1c40f227-aed5-4321-9ffc-62f37a06c9a0.jpg",
"large_thumb_url": "https://app.lemonsqueezy.com/storage/media/1/1c40f227-aed5-4321-9ffc-62f37a06c9a0.jpg",
"price": 999,
"price_formatted": "$9.99",
"from_price": null,
"to_price": null,
"pay_what_you_want": false,
"buy_now_url": "https://my-store.lemonsqueezy.com/checkout/buy/0a841cf5-4cc2-4bbb-ae5d-9529d97deec6",
"from_price_formatted": null,
"to_price_formatted": null,
"created_at": "2021-05-27T12:54:47.000000Z",
"updated_at": "2021-07-14T11:25:24.000000Z",
"test_mode": false
},
"relationships": {
"store": {
"links": {
"related": "https://api.lemonsqueezy.com/v1/products/1/store",
"self": "https://api.lemonsqueezy.com/v1/products/1/relationships/store"
}
},
"variants": {
"links": {
"related": "https://api.lemonsqueezy.com/v1/products/1/variants",
"self": "https://api.lemonsqueezy.com/v1/products/1/relationships/variants"
}
}
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/products/1"
}
}
}