Retrieve a Price
GET
/v1/prices/:id
Retrieves the price with the given ID.
curl "https://api.lemonsqueezy.com/v1/prices/1" \
-H 'Accept: application/vnd.api+json' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer {api_key}'
Returns
Returns a Price object.
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/prices/1"
},
"data": {
"type": "prices",
"id": "1",
"attributes": {
"variant_id": 1,
"category": "subscription",
"scheme": "graduated",
"usage_aggregation": null,
"unit_price": 999,
"unit_price_decimal": null,
"setup_fee_enabled": false,
"setup_fee": null,
"package_size": 1,
"tiers": [
{
"last_unit": 2,
"unit_price": 10000,
"unit_price_decimal": null,
"fixed_fee": 1000
},
{
"last_unit": "inf",
"unit_price": 1000,
"unit_price_decimal": null,
"fixed_fee": 1000
}
],
"renewal_interval_unit": "year",
"renewal_interval_quantity": 1,
"trial_interval_unit": "day",
"trial_interval_quantity": 30,
"min_price": null,
"suggested_price": null,
"tax_code": "eservice",
"created_at": "2023-05-24T14:15:06.000000Z",
"updated_at": "2023-06-24T14:44:38.000000Z"
},
"relationships": {
"variant": {
"links": {
"related": "https://api.lemonsqueezy.com/v1/prices/1/variant",
"self": "https://api.lemonsqueezy.com/v1/prices/1/relationships/variant"
}
}
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/prices/1"
}
}
}