Deposco - Cancel Order Lines for a Sales Order

Cancels an entire Deposco sales order, selected order lines, or a partial quantity for selected order lines.

Deposco - Cancel Order Lines for a Sales Order

Cancel an entire Deposco sales order, selected order lines, or a partial quantity for selected order lines.

This action requires a Deposco module connection and affects data in Deposco.

Inputs

NameTypeRequiredDescription
Order IDNumberYesID of the requested order header. This is the internal Deposco identifier of the sales order, for example the order's self.id value returned by the Deposco - Get Order action.
Order LinesListYesArray of order lines with quantities to cancel for the order. Each item is an object with orderLine, which references the order line, and canceledPackQuantity, which is the quantity to cancel for that order line. Example: [{"orderLine": {"id": 123}, "canceledPackQuantity": 1}].

Outputs

NameTypeDescription
Success?BooleanWhether the cancellation request was successful.
OrderObjectThe updated sales order returned by Deposco after the cancellation.
Raw DataObjectRaw response data returned by the Deposco API.
ErrorStringError message if the API call failed.

Run the action

  1. Add the Deposco module connection required by this action.
  2. Get the internal Deposco sales order ID, for example from the Order output of the Deposco - Get Order action.
  3. Enter the internal Deposco order ID in Order ID.
  4. Build the Order Lines list with each order line reference and the quantity to cancel.
  5. Run the action.
  6. Check Success? to confirm whether the cancellation completed.
  7. Use Order to read the updated sales order returned by Deposco.
  8. Check Error when Success? is false.

Cancellation rules

The order must usually have one of these statuses:

  • New
  • Hold
  • Ready for Fulfillment
  • Wave Built
  • Back Ordered

An entire order can also be canceled from Draft. A partial quantity can also be canceled from Partially Released when there are backordered quantities.

Notes

  • Use the internal Deposco order ID, not the Shopify order number.
  • Use Order Lines to specify which lines and quantities to cancel.
  • Use Raw Data for troubleshooting or when you need fields that are not mapped to dedicated outputs.
  • This action affects the external Deposco system, so confirm the order ID and order line quantities before running it.