katana_public_api_client.api.price_list.create_price_list¶
katana_public_api_client.api.price_list.create_price_list
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a price list
Creates a new price list.
Parameters:
-
body(CreatePriceListRequest) –Request payload for creating a new price list with market- specific pricing configurations and time-based validity Example: {'name': 'Premium Customer Pricing', 'currency': 'USD', 'is_default': False, 'markup_percentage': 25.0, 'start_date': '2024-01-01T00:00:00Z', 'end_date': '2024-12-31T23:59:59Z'}.
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:
-
DetailedErrorResponse | ErrorResponse | PriceList | None–Union[DetailedErrorResponse, ErrorResponse, PriceList]
Source code in katana_public_api_client/api/price_list/create_price_list.py
asyncio_detailed(*, client, body)
async
¶
Create a price list
Creates a new price list.
Parameters:
-
body(CreatePriceListRequest) –Request payload for creating a new price list with market- specific pricing configurations and time-based validity Example: {'name': 'Premium Customer Pricing', 'currency': 'USD', 'is_default': False, 'markup_percentage': 25.0, 'start_date': '2024-01-01T00:00:00Z', 'end_date': '2024-12-31T23:59:59Z'}.
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[DetailedErrorResponse | ErrorResponse | PriceList]–Response[Union[DetailedErrorResponse, ErrorResponse, PriceList]]
Source code in katana_public_api_client/api/price_list/create_price_list.py
sync(*, client, body)
¶
Create a price list
Creates a new price list.
Parameters:
-
body(CreatePriceListRequest) –Request payload for creating a new price list with market- specific pricing configurations and time-based validity Example: {'name': 'Premium Customer Pricing', 'currency': 'USD', 'is_default': False, 'markup_percentage': 25.0, 'start_date': '2024-01-01T00:00:00Z', 'end_date': '2024-12-31T23:59:59Z'}.
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:
-
DetailedErrorResponse | ErrorResponse | PriceList | None–Union[DetailedErrorResponse, ErrorResponse, PriceList]
Source code in katana_public_api_client/api/price_list/create_price_list.py
sync_detailed(*, client, body)
¶
Create a price list
Creates a new price list.
Parameters:
-
body(CreatePriceListRequest) –Request payload for creating a new price list with market- specific pricing configurations and time-based validity Example: {'name': 'Premium Customer Pricing', 'currency': 'USD', 'is_default': False, 'markup_percentage': 25.0, 'start_date': '2024-01-01T00:00:00Z', 'end_date': '2024-12-31T23:59:59Z'}.
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[DetailedErrorResponse | ErrorResponse | PriceList]–Response[Union[DetailedErrorResponse, ErrorResponse, PriceList]]