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.
Each call records one receipt group: all rows received in the call share one group_id, whatever
their received_date. A partial quantity splits the row; the received part becomes a new row and
the
original row keeps the open remainder. Reverting the order
(PATCH /purchase_orders/{id} with status NOT_RECEIVED) undoes all receipt groups at once; a single
group cannot be reverted.
Parameters:
-
body(list[PurchaseOrderReceiveRow] | 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–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.
Each call records one receipt group: all rows received in the call share one group_id, whatever
their received_date. A partial quantity splits the row; the received part becomes a new row and
the
original row keeps the open remainder. Reverting the order
(PATCH /purchase_orders/{id} with status NOT_RECEIVED) undoes all receipt groups at once; a single
group cannot be reverted.
Parameters:
-
body(list[PurchaseOrderReceiveRow] | 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[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.
Each call records one receipt group: all rows received in the call share one group_id, whatever
their received_date. A partial quantity splits the row; the received part becomes a new row and
the
original row keeps the open remainder. Reverting the order
(PATCH /purchase_orders/{id} with status NOT_RECEIVED) undoes all receipt groups at once; a single
group cannot be reverted.
Parameters:
-
body(list[PurchaseOrderReceiveRow] | 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–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.
Each call records one receipt group: all rows received in the call share one group_id, whatever
their received_date. A partial quantity splits the row; the received part becomes a new row and
the
original row keeps the open remainder. Reverting the order
(PATCH /purchase_orders/{id} with status NOT_RECEIVED) undoes all receipt groups at once; a single
group cannot be reverted.
Parameters:
-
body(list[PurchaseOrderReceiveRow] | 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[Any | DetailedErrorResponse | ErrorResponse]