katana_public_api_client.api.purchase_order.receive_purchase_order¶
katana_public_api_client.api.purchase_order.receive_purchase_order
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Receive a purchase order
If you receive the items on the purchase order, you can mark the purchase order as received. This will update the existing purchase order rows quantities to the quantities left unreceived and create a new rows with the received quantities and dates. If you want to mark all rows as received and the order doesn't contain batch tracked items, you can use PATCH /purchase_orders/id endpoint. Reverting the receive must also be done through that endpoint.
Parameters:
-
body(Union[PurchaseOrderReceiveRow, list[PurchaseOrderReceiveRow]]) –Request payload for recording the receipt of purchase order items at the facility Example: [{'purchase_order_row_id': 501, 'quantity': 150, 'received_date': '2024-02-15T10:00:00Z'}, {'purchase_order_row_id': 502, 'quantity': 75, 'received_date': '2024-02-15T10:00:00Z'}].
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:
-
Any | DetailedErrorResponse | ErrorResponse | None–Union[Any, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/purchase_order/receive_purchase_order.py
asyncio_detailed(*, client, body)
async
¶
Receive a purchase order
If you receive the items on the purchase order, you can mark the purchase order as received. This will update the existing purchase order rows quantities to the quantities left unreceived and create a new rows with the received quantities and dates. If you want to mark all rows as received and the order doesn't contain batch tracked items, you can use PATCH /purchase_orders/id endpoint. Reverting the receive must also be done through that endpoint.
Parameters:
-
body(Union[PurchaseOrderReceiveRow, list[PurchaseOrderReceiveRow]]) –Request payload for recording the receipt of purchase order items at the facility Example: [{'purchase_order_row_id': 501, 'quantity': 150, 'received_date': '2024-02-15T10:00:00Z'}, {'purchase_order_row_id': 502, 'quantity': 75, 'received_date': '2024-02-15T10:00:00Z'}].
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[Any | DetailedErrorResponse | ErrorResponse]–Response[Union[Any, DetailedErrorResponse, ErrorResponse]]
Source code in katana_public_api_client/api/purchase_order/receive_purchase_order.py
sync(*, client, body)
¶
Receive a purchase order
If you receive the items on the purchase order, you can mark the purchase order as received. This will update the existing purchase order rows quantities to the quantities left unreceived and create a new rows with the received quantities and dates. If you want to mark all rows as received and the order doesn't contain batch tracked items, you can use PATCH /purchase_orders/id endpoint. Reverting the receive must also be done through that endpoint.
Parameters:
-
body(Union[PurchaseOrderReceiveRow, list[PurchaseOrderReceiveRow]]) –Request payload for recording the receipt of purchase order items at the facility Example: [{'purchase_order_row_id': 501, 'quantity': 150, 'received_date': '2024-02-15T10:00:00Z'}, {'purchase_order_row_id': 502, 'quantity': 75, 'received_date': '2024-02-15T10:00:00Z'}].
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:
-
Any | DetailedErrorResponse | ErrorResponse | None–Union[Any, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/purchase_order/receive_purchase_order.py
sync_detailed(*, client, body)
¶
Receive a purchase order
If you receive the items on the purchase order, you can mark the purchase order as received. This will update the existing purchase order rows quantities to the quantities left unreceived and create a new rows with the received quantities and dates. If you want to mark all rows as received and the order doesn't contain batch tracked items, you can use PATCH /purchase_orders/id endpoint. Reverting the receive must also be done through that endpoint.
Parameters:
-
body(Union[PurchaseOrderReceiveRow, list[PurchaseOrderReceiveRow]]) –Request payload for recording the receipt of purchase order items at the facility Example: [{'purchase_order_row_id': 501, 'quantity': 150, 'received_date': '2024-02-15T10:00:00Z'}, {'purchase_order_row_id': 502, 'quantity': 75, 'received_date': '2024-02-15T10:00:00Z'}].
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[Any | DetailedErrorResponse | ErrorResponse]–Response[Union[Any, DetailedErrorResponse, ErrorResponse]]