supplyUnarchivePurchaseOrders
Restores one or more previously archived purchase orders.
This mutation recovers purchase orders that were archived, 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 archived. Only archived 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 archived**: One or more purchase orders are not in an archived state and cannot be restored.
supplyUnarchivePurchaseOrders(
input: UnarchivePurchaseOrdersInput!
): AsynchronousActionResponse
Arguments
supplyUnarchivePurchaseOrders.input ● UnarchivePurchaseOrdersInput! non-null input
Parameters for UnarchivePurchaseOrders
Type
AsynchronousActionResponse object
Asynchronous action response type