katana_public_api_client.api.purchase_order.update_purchase_order¶
katana_public_api_client.api.purchase_order.update_purchase_order
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update a purchase order
Updates the specified purchase order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdatePurchaseOrderRequest) –Request payload for updating an existing purchase order's details, status, and line items Example: {'order_no': 'PO-2024-0156-REVISED', 'expected_arrival_date': '2024-02-20T00:00:00Z', 'status': 'PARTIALLY_RECEIVED', 'additional_info': 'Delivery delayed due to weather - updated schedule'}.
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 | Union[OutsourcedPurchaseOrder, RegularPurchaseOrder] | None–Union[DetailedErrorResponse, ErrorResponse, Union['OutsourcedPurchaseOrder', 'RegularPurchaseOrder']]
Source code in katana_public_api_client/api/purchase_order/update_purchase_order.py
asyncio_detailed(id, *, client, body)
async
¶
Update a purchase order
Updates the specified purchase order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdatePurchaseOrderRequest) –Request payload for updating an existing purchase order's details, status, and line items Example: {'order_no': 'PO-2024-0156-REVISED', 'expected_arrival_date': '2024-02-20T00:00:00Z', 'status': 'PARTIALLY_RECEIVED', 'additional_info': 'Delivery delayed due to weather - updated schedule'}.
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 | Union[OutsourcedPurchaseOrder, RegularPurchaseOrder]]–Response[Union[DetailedErrorResponse, ErrorResponse, Union['OutsourcedPurchaseOrder', 'RegularPurchaseOrder']]]
Source code in katana_public_api_client/api/purchase_order/update_purchase_order.py
sync(id, *, client, body)
¶
Update a purchase order
Updates the specified purchase order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdatePurchaseOrderRequest) –Request payload for updating an existing purchase order's details, status, and line items Example: {'order_no': 'PO-2024-0156-REVISED', 'expected_arrival_date': '2024-02-20T00:00:00Z', 'status': 'PARTIALLY_RECEIVED', 'additional_info': 'Delivery delayed due to weather - updated schedule'}.
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 | Union[OutsourcedPurchaseOrder, RegularPurchaseOrder] | None–Union[DetailedErrorResponse, ErrorResponse, Union['OutsourcedPurchaseOrder', 'RegularPurchaseOrder']]
Source code in katana_public_api_client/api/purchase_order/update_purchase_order.py
sync_detailed(id, *, client, body)
¶
Update a purchase order
Updates the specified purchase order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdatePurchaseOrderRequest) –Request payload for updating an existing purchase order's details, status, and line items Example: {'order_no': 'PO-2024-0156-REVISED', 'expected_arrival_date': '2024-02-20T00:00:00Z', 'status': 'PARTIALLY_RECEIVED', 'additional_info': 'Delivery delayed due to weather - updated schedule'}.
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 | Union[OutsourcedPurchaseOrder, RegularPurchaseOrder]]–Response[Union[DetailedErrorResponse, ErrorResponse, Union['OutsourcedPurchaseOrder', 'RegularPurchaseOrder']]]