Skip to main content

Get Product

Retrieve a specific product from your easycart store.

Request

GET /products/{id}

Path Parameters

ParameterTypeRequiredDescription
idstringYesProduct UUID

Example Request

curl -X GET "https://cart.easy.tools/api/v1/products/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

Success Response (200)

Returns a single product with its variants.

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "published",
"name": "Premium Coffee Beans",
"description": "High-quality arabica coffee beans from Colombia",
"image_url": "https://example.com/images/coffee-beans.jpg",
"checkout_url": "https://cart.easy.tools/checkout/550e8400-e29b-41d4-a716-446655440000",
"currency": "usd",
"variants": [
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"type": "one_time",
"recurring_options": null,
"name": "250g Package",
"amount": 1999
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"type": "recurring",
"recurring_options": {
"interval": "monthly",
"interval_count": 1
},
"name": "Monthly Subscription - 250g",
"amount": 1799
}
]
}

Response Fields

FieldTypeNullableDescription
idstringNoUnique identifier for the product (UUID)
statusstringNoProduct status (e.g., "published" or "draft")
namestringNoProduct name
descriptionstringYesProduct description
image_urlstringYesURL to the product image
checkout_urlstringNoDirect checkout URL for the product
currencystringNoISO currency code (e.g., "usd", "eur")
variantsarrayNoList of product variants

Error Responses

Product Not Found (404)

{
"message": "Product with ID <UUID> not found"
}