# ProductById
Get a product's details
Retrieve the full details of a single ecommerce product by its unique ID. The response includes the product name, price, SKU, URL, image URLs (original and thumbnails), categories, stock level, meta information, creation and modification timestamps, and deletion status. Returns a `404` error if no product matches the provided ID.
- Catalog: `Brevo`
- Schema: `Ecommerce`
This is a read-only table function. The Sendinblue API may not support changing the data or the Invantive UniversalSQL driver for Sendinblue does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Sendinblue API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `ProductById`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `id` | `` | ☑ | | Product ID |
## Columns of Table Function
The columns of the table function `ProductById` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `alternativePrice` | `double` | | ☐ | Alternative price of the product |
| `brand` | `varchar2(128)` | | ☐ | Brand of the product |
| `createdAt` | `varchar2` | Creation Date | ☐ | Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) |
| `description` | `varchar2(3000)` | Description | ☐ | Description of the product |
| `id` | `varchar2` | ID | ☐ | Product ID for which you requested the details |
| `imageUrl` | `varchar2` | | ☐ | Absolute URL to the cover image of the product |
| `isDeleted` | `char` | | ☐ | Product deleted from the shop's database but not from Brevo |
| `metaInfo` | `varchar2` | | ☐ | Meta data of product such as description, vendor, producer, stock level, etc. |
| `modifiedAt` | `varchar2` | Modified Date | ☐ | Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) |
| `name` | `varchar2` | Name | ☐ | Name of the product for which you requested the details |
| `parentId` | `varchar2` | | ☐ | Parent product id of the product |
| `price` | `double` | | ☐ | Price of the product |
| `s3Original` | `varchar2` | | ☐ | S3 url of original image |
| `s3ThumbAnalytics` | `varchar2` | | ☐ | S3 thumbnail url of original image in 120x120 dimension for analytics section |
| `s3ThumbEditor` | `varchar2` | | ☐ | S3 thumbnail url of original image in 600x400 dimension for editor section |
| `sku` | `varchar2` | | ☐ | Product identifier from the shop |
| `stock` | `decimal` | | ☐ | Current stock value of the product from the shop's database |
| `url` | `varchar2` | URL | ☐ | URL to the product |