katana_public_api_client.api.supplier_address.create_supplier_address¶
katana_public_api_client.api.supplier_address.create_supplier_address
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a supplier address
Add an address to an existing supplier. If the new address is the first one, it is assigned as the default. (A Supplier can have only one address for now)
Parameters:
-
body(CreateSupplierAddressRequest) –Request payload for creating a new address for an existing supplier Example: {'supplier_id': 4001, 'line_1': '856 Distribution Center Dr', 'line_2': None, 'city': 'Milwaukee', 'state': 'WI', 'zip': '53218', '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 | SupplierAddress | None–Union[DetailedErrorResponse, ErrorResponse, SupplierAddress]
Source code in katana_public_api_client/api/supplier_address/create_supplier_address.py
asyncio_detailed(*, client, body)
async
¶
Create a supplier address
Add an address to an existing supplier. If the new address is the first one, it is assigned as the default. (A Supplier can have only one address for now)
Parameters:
-
body(CreateSupplierAddressRequest) –Request payload for creating a new address for an existing supplier Example: {'supplier_id': 4001, 'line_1': '856 Distribution Center Dr', 'line_2': None, 'city': 'Milwaukee', 'state': 'WI', 'zip': '53218', '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 | SupplierAddress]–Response[Union[DetailedErrorResponse, ErrorResponse, SupplierAddress]]
Source code in katana_public_api_client/api/supplier_address/create_supplier_address.py
sync(*, client, body)
¶
Create a supplier address
Add an address to an existing supplier. If the new address is the first one, it is assigned as the default. (A Supplier can have only one address for now)
Parameters:
-
body(CreateSupplierAddressRequest) –Request payload for creating a new address for an existing supplier Example: {'supplier_id': 4001, 'line_1': '856 Distribution Center Dr', 'line_2': None, 'city': 'Milwaukee', 'state': 'WI', 'zip': '53218', '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 | SupplierAddress | None–Union[DetailedErrorResponse, ErrorResponse, SupplierAddress]
Source code in katana_public_api_client/api/supplier_address/create_supplier_address.py
sync_detailed(*, client, body)
¶
Create a supplier address
Add an address to an existing supplier. If the new address is the first one, it is assigned as the default. (A Supplier can have only one address for now)
Parameters:
-
body(CreateSupplierAddressRequest) –Request payload for creating a new address for an existing supplier Example: {'supplier_id': 4001, 'line_1': '856 Distribution Center Dr', 'line_2': None, 'city': 'Milwaukee', 'state': 'WI', 'zip': '53218', '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 | SupplierAddress]–Response[Union[DetailedErrorResponse, ErrorResponse, SupplierAddress]]