katana_public_api_client.api.customer_address.create_customer_address¶
katana_public_api_client.api.customer_address.create_customer_address
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a customer address
Creates a new customer address.
Parameters:
-
body(CreateCustomerAddressRequest) –Request payload for creating a new customer address with complete contact and location information Example: {'customer_id': 2003, 'entity_type': 'shipping', 'first_name': 'Maria', 'last_name': 'Garcia', 'company': 'Cafe Central', 'phone': '+1-555-0127', 'line_1': '789 Main Street', 'line_2': 'Unit 5', 'city': 'San Francisco', 'state': 'CA', 'zip': '94102', 'country': 'US', 'is_default': True}.
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:
-
CustomerAddress | DetailedErrorResponse | ErrorResponse | None–Union[CustomerAddress, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/customer_address/create_customer_address.py
asyncio_detailed(*, client, body)
async
¶
Create a customer address
Creates a new customer address.
Parameters:
-
body(CreateCustomerAddressRequest) –Request payload for creating a new customer address with complete contact and location information Example: {'customer_id': 2003, 'entity_type': 'shipping', 'first_name': 'Maria', 'last_name': 'Garcia', 'company': 'Cafe Central', 'phone': '+1-555-0127', 'line_1': '789 Main Street', 'line_2': 'Unit 5', 'city': 'San Francisco', 'state': 'CA', 'zip': '94102', 'country': 'US', 'is_default': True}.
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[CustomerAddress | DetailedErrorResponse | ErrorResponse]–Response[Union[CustomerAddress, DetailedErrorResponse, ErrorResponse]]
Source code in katana_public_api_client/api/customer_address/create_customer_address.py
sync(*, client, body)
¶
Create a customer address
Creates a new customer address.
Parameters:
-
body(CreateCustomerAddressRequest) –Request payload for creating a new customer address with complete contact and location information Example: {'customer_id': 2003, 'entity_type': 'shipping', 'first_name': 'Maria', 'last_name': 'Garcia', 'company': 'Cafe Central', 'phone': '+1-555-0127', 'line_1': '789 Main Street', 'line_2': 'Unit 5', 'city': 'San Francisco', 'state': 'CA', 'zip': '94102', 'country': 'US', 'is_default': True}.
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:
-
CustomerAddress | DetailedErrorResponse | ErrorResponse | None–Union[CustomerAddress, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/customer_address/create_customer_address.py
sync_detailed(*, client, body)
¶
Create a customer address
Creates a new customer address.
Parameters:
-
body(CreateCustomerAddressRequest) –Request payload for creating a new customer address with complete contact and location information Example: {'customer_id': 2003, 'entity_type': 'shipping', 'first_name': 'Maria', 'last_name': 'Garcia', 'company': 'Cafe Central', 'phone': '+1-555-0127', 'line_1': '789 Main Street', 'line_2': 'Unit 5', 'city': 'San Francisco', 'state': 'CA', 'zip': '94102', 'country': 'US', 'is_default': True}.
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[CustomerAddress | DetailedErrorResponse | ErrorResponse]–Response[Union[CustomerAddress, DetailedErrorResponse, ErrorResponse]]