katana_public_api_client.api.supplier.create_supplier¶
katana_public_api_client.api.supplier.create_supplier
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a supplier
Creates a new supplier object.
Parameters:
-
body(CreateSupplierRequest) –Request payload for creating a new supplier with contact information and addresses Example: {'name': 'Premium Kitchen Supplies Ltd', 'currency': 'USD', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'comment': 'Primary supplier for kitchen equipment and utensils', 'addresses': [{'line_1': '1250 Industrial Blvd', 'line_2': 'Suite 200', 'city': 'Chicago', 'state': 'IL', 'zip': '60601', 'country': 'US'}]}.
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 | Supplier | None–Union[DetailedErrorResponse, ErrorResponse, Supplier]
Source code in katana_public_api_client/api/supplier/create_supplier.py
asyncio_detailed(*, client, body)
async
¶
Create a supplier
Creates a new supplier object.
Parameters:
-
body(CreateSupplierRequest) –Request payload for creating a new supplier with contact information and addresses Example: {'name': 'Premium Kitchen Supplies Ltd', 'currency': 'USD', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'comment': 'Primary supplier for kitchen equipment and utensils', 'addresses': [{'line_1': '1250 Industrial Blvd', 'line_2': 'Suite 200', 'city': 'Chicago', 'state': 'IL', 'zip': '60601', 'country': 'US'}]}.
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 | Supplier]–Response[Union[DetailedErrorResponse, ErrorResponse, Supplier]]
Source code in katana_public_api_client/api/supplier/create_supplier.py
sync(*, client, body)
¶
Create a supplier
Creates a new supplier object.
Parameters:
-
body(CreateSupplierRequest) –Request payload for creating a new supplier with contact information and addresses Example: {'name': 'Premium Kitchen Supplies Ltd', 'currency': 'USD', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'comment': 'Primary supplier for kitchen equipment and utensils', 'addresses': [{'line_1': '1250 Industrial Blvd', 'line_2': 'Suite 200', 'city': 'Chicago', 'state': 'IL', 'zip': '60601', 'country': 'US'}]}.
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 | Supplier | None–Union[DetailedErrorResponse, ErrorResponse, Supplier]
Source code in katana_public_api_client/api/supplier/create_supplier.py
sync_detailed(*, client, body)
¶
Create a supplier
Creates a new supplier object.
Parameters:
-
body(CreateSupplierRequest) –Request payload for creating a new supplier with contact information and addresses Example: {'name': 'Premium Kitchen Supplies Ltd', 'currency': 'USD', 'email': 'orders@premiumkitchen.com', 'phone': '+1-555-0134', 'comment': 'Primary supplier for kitchen equipment and utensils', 'addresses': [{'line_1': '1250 Industrial Blvd', 'line_2': 'Suite 200', 'city': 'Chicago', 'state': 'IL', 'zip': '60601', 'country': 'US'}]}.
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 | Supplier]–Response[Union[DetailedErrorResponse, ErrorResponse, Supplier]]