# Find one product translated

`GET /api/products/local/{langCode}/{id}`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `id` (path, string, required)
  Type: string

- `langCode` (path, string, required)
  Type: string

Responses:

- 200: Found product

Content type: application/json

Type: object

Schema: [Product](https://sourcey-gauzy.pages.dev/api-reference/models/product/index.md)

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `enabled` (optional)
  Type: boolean

- `code` (required)
  Type: string

- `imageUrl` (optional)
  Type: string

- `featuredImage` (required)
  Reference: [ImageAsset](https://sourcey-gauzy.pages.dev/api-reference/models/imageasset/index.md); Type: object

- `featuredImageId` (required)
  Type: string

- `productType` (required)
  Reference: [ProductType](https://sourcey-gauzy.pages.dev/api-reference/models/producttype/index.md); Type: object

- `productTypeId` (required)
  Type: string

- `productCategory` (required)
  Reference: [ProductCategory](https://sourcey-gauzy.pages.dev/api-reference/models/productcategory/index.md); Type: object

- `productCategoryId` (required)
  Type: string

- `translations` (required)
  Type: array
  
  Items:
    Reference: [ProductTranslation](https://sourcey-gauzy.pages.dev/api-reference/models/producttranslation/index.md); Type: object

- `variants` (optional)
  Type: array
  
  Items:
    Reference: [ProductVariant](https://sourcey-gauzy.pages.dev/api-reference/models/productvariant/index.md); Type: object

- `optionGroups` (optional)
  Type: array
  
  Items:
    Reference: [ProductOptionGroup](https://sourcey-gauzy.pages.dev/api-reference/models/productoptiongroup/index.md); Type: object

- `invoiceItems` (optional)
  Type: array
  
  Items:
    Reference: [InvoiceItem](https://sourcey-gauzy.pages.dev/api-reference/models/invoiceitem/index.md); Type: object

- `warehouses` (optional)
  Type: array
  
  Items:
    Reference: [WarehouseProduct](https://sourcey-gauzy.pages.dev/api-reference/models/warehouseproduct/index.md); Type: object

- `tags` (required)
  Type: array
  
  Items:
    Reference: [Tag](https://sourcey-gauzy.pages.dev/api-reference/models/tag/index.md); Type: object

- `gallery` (required)
  Type: array
  
  Items:
    Reference: [ImageAsset](https://sourcey-gauzy.pages.dev/api-reference/models/imageasset/index.md); Type: object

- 401: Unauthorized

- 403: Forbidden

- 404: Record not found

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/products/local/string/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/products/local/string/string', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/products/local/string/string',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
