Get product details
get_productFetch a product by code to view available sizes, fabrics, per-variant prices, and design details before adding it to the cart.
Instructions
Get one product by its code: available sizes, fabrics, the price of each size+fabric variant, and the design's 'about' text. Call it before add_to_cart when the human hasn't picked a size yet or may want another fabric — a search card doesn't list them. code is the code field of a search_products card (the end of its /p/ url); add_to_cart then takes the numeric good_id, which this result also returns. Read-only; an unknown code returns error 'product not found'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Product code from search_products results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| code | No | ||
| about | No | Design description text (may be null). | |
| error | No | Present when the product was not found. | |
| image | No | ||
| price | No | ||
| sizes | No | ||
| theme | No | ||
| title | No | ||
| fabrics | No | ||
| good_id | No | ||
| product | No | ||
| currency | No | ||
| variants | No | Price per size+fabric combination. |