katana_public_api_client.api.product.get_product¶
katana_public_api_client.api.product.get_product
¶
Classes¶
Functions¶
asyncio(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
async
¶
Retrieve a product
Retrieves the details of an existing product based on ID.
Parameters:
-
id(int) – -
extend(list[GetProductExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetProductXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | Product | None–ErrorResponse | Product
Source code in katana_public_api_client/api/product/get_product.py
asyncio_detailed(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
async
¶
Retrieve a product
Retrieves the details of an existing product based on ID.
Parameters:
-
id(int) – -
extend(list[GetProductExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetProductXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | Product]–Response[ErrorResponse | Product]
Source code in katana_public_api_client/api/product/get_product.py
sync(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
¶
Retrieve a product
Retrieves the details of an existing product based on ID.
Parameters:
-
id(int) – -
extend(list[GetProductExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetProductXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
ErrorResponse | Product | None–ErrorResponse | Product
Source code in katana_public_api_client/api/product/get_product.py
sync_detailed(id, *, client, extend=UNSET, x_custom_fields_format=UNSET)
¶
Retrieve a product
Retrieves the details of an existing product based on ID.
Parameters:
-
id(int) – -
extend(list[GetProductExtendItem] | Unset, default:UNSET) – -
x_custom_fields_format(GetProductXCustomFieldsFormat | Unset, default:UNSET) –
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[ErrorResponse | Product]–Response[ErrorResponse | Product]