Products

Get product details

Changed on

Returns detailed information about a specific product

get/products/{id_or_slug}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id_or_slug, string required

The resource ID (e.g., "prod_3f9a1c0b7d2e4a6f8b1c3d5e") or slug (e.g., "my-product")

Query parameters

expand, string

Comma-separated relations to expand: reviews

Response

Product details

Product required
id, string required
object, string required
name, string required
slug, string required
status, 'draft' | 'active' | 'archived' required
description, string required
confirmation_message, string nullable required
created_at, string date-time required
updated_at, string date-time required
metadata, object required
body_html, string required
button_cta, string nullable required
url, string required

Deprecated: a product's page lives wherever its site puts it, so build links from your site's own routes.

available_from, string date-time nullable required
available_until, string date-time nullable required
tax_code, string nullable required

Stripe tax code (txcd_XXXXXXXX); null uses the account's default

published_at, string date-time nullable required
reviews_count, integer required
average_rating, number nullable required
seo, union

ID by default, full object when expanded

media_gallery, MediaGalleryItem[] required
price_variants, PriceVariant[] required
reviews, Review[]

Changes

    • info

      added the required property price_variants/items/cross_sells to the response with the status

    • info

      added the required property tax_code to the response with the status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision