supplyUndeletePurchaseOrder
Restores one or more previously deleted purchase orders.
This mutation recovers purchase orders that were deleted, restoring them to their previous state. The operation processes recoveries asynchronously in the background. The response includes a process ID that can be used to track the operation status.
Authentication
Requires the supply:undelete_po permission.
Asynchronous Processing
Since this operation can affect multiple purchase orders, it runs in the background. If any purchase order fails to be restored, you will receive a notification with details about which orders could not be recovered and the reasons.
Business Rules
- Purchase orders must exist and belong to your brand.
- Purchase orders must have been previously deleted. Only deleted purchase orders can be restored.
Possible Errors
- **At least one Purchase Order must be specified**: The ids array cannot be empty.
- **Purchase Order not found**: One or more specified purchase orders do not exist.
- **Purchase Order does not belong to this brand**: One or more purchase orders belong to a different brand.
- **Purchase Order is not deleted**: One or more purchase orders are not in a deleted state and cannot be restored.
supplyUndeletePurchaseOrder(
input: UndeletePurchaseOrderInput!
): AsynchronousActionResponse
Arguments
supplyUndeletePurchaseOrder.input ● UndeletePurchaseOrderInput! non-null input
Parameters for UndeletePurchaseOrder
Type
AsynchronousActionResponse object
Asynchronous action response type