katana_public_api_client.api.customer.create_customer¶
katana_public_api_client.api.customer.create_customer
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a customer
Creates a new customer.
Parameters:
-
body(CreateCustomerRequest) –Request payload for creating a new customer with contact and business information Example: {'name': 'Gourmet Bistro Group', 'first_name': 'Elena', 'last_name': 'Rodriguez', 'company': 'Gourmet Bistro Group Inc', 'email': 'procurement@gourmetbistro.com', 'phone': '+1-555-0125', 'comment': 'Premium restaurant chain - priority orders', 'currency': 'USD', 'reference_id': 'GBG-2024-003', 'category': 'Fine Dining', 'discount_rate': 7.5}.
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:
-
Customer | ErrorResponse | None–Union[Customer, ErrorResponse]
Source code in katana_public_api_client/api/customer/create_customer.py
asyncio_detailed(*, client, body)
async
¶
Create a customer
Creates a new customer.
Parameters:
-
body(CreateCustomerRequest) –Request payload for creating a new customer with contact and business information Example: {'name': 'Gourmet Bistro Group', 'first_name': 'Elena', 'last_name': 'Rodriguez', 'company': 'Gourmet Bistro Group Inc', 'email': 'procurement@gourmetbistro.com', 'phone': '+1-555-0125', 'comment': 'Premium restaurant chain - priority orders', 'currency': 'USD', 'reference_id': 'GBG-2024-003', 'category': 'Fine Dining', 'discount_rate': 7.5}.
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[Customer | ErrorResponse]–Response[Union[Customer, ErrorResponse]]
Source code in katana_public_api_client/api/customer/create_customer.py
sync(*, client, body)
¶
Create a customer
Creates a new customer.
Parameters:
-
body(CreateCustomerRequest) –Request payload for creating a new customer with contact and business information Example: {'name': 'Gourmet Bistro Group', 'first_name': 'Elena', 'last_name': 'Rodriguez', 'company': 'Gourmet Bistro Group Inc', 'email': 'procurement@gourmetbistro.com', 'phone': '+1-555-0125', 'comment': 'Premium restaurant chain - priority orders', 'currency': 'USD', 'reference_id': 'GBG-2024-003', 'category': 'Fine Dining', 'discount_rate': 7.5}.
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:
-
Customer | ErrorResponse | None–Union[Customer, ErrorResponse]
Source code in katana_public_api_client/api/customer/create_customer.py
sync_detailed(*, client, body)
¶
Create a customer
Creates a new customer.
Parameters:
-
body(CreateCustomerRequest) –Request payload for creating a new customer with contact and business information Example: {'name': 'Gourmet Bistro Group', 'first_name': 'Elena', 'last_name': 'Rodriguez', 'company': 'Gourmet Bistro Group Inc', 'email': 'procurement@gourmetbistro.com', 'phone': '+1-555-0125', 'comment': 'Premium restaurant chain - priority orders', 'currency': 'USD', 'reference_id': 'GBG-2024-003', 'category': 'Fine Dining', 'discount_rate': 7.5}.
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[Customer | ErrorResponse]–Response[Union[Customer, ErrorResponse]]