Skip to main content

supplyDeletePurchaseOrder

DEPRECATED

Use supplyArchivePurchaseOrders instead. This mutation will be removed in the future.

Deletes one or more purchase orders.

This mutation processes deletions asynchronously in the background. The response includes a process ID that can be used to track the operation status.

Authentication

Requires the supply:delete_po permission.

Asynchronous Processing

Since this operation can affect multiple purchase orders, it runs in the background. If any purchase order fails to delete, you will receive a notification with details about which orders could not be deleted and the reasons.

Business Rules

  • Purchase orders must exist and belong to your brand.
  • Purchase orders cannot be deleted if they were already deleted previously.

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 was already deleted**: One or more purchase orders were previously deleted.
supplyDeletePurchaseOrder(
input: DeletePurchaseOrderInput!
): AsynchronousActionResponse @deprecated

Arguments

supplyDeletePurchaseOrder.input ● DeletePurchaseOrderInput! non-null input

Parameters for DeletePurchaseOrder

Type

AsynchronousActionResponse object

Asynchronous action response type