Actions14
Mark Returns Received
AI-generatedSummary
Mark specified return records as received in the Miva store, optionally adjusting inventory to return stock for those returns.
Inputs
- Store Code (required) — The Miva store code identifier.
- Return ID Field (required) — Field in input data that contains the return ID values to mark as received.
- Inventory Adjustment — Boolean indicating whether inventory should be returned to stock when marking returns as received; defaults to true.
Output shape
a list containing a single item with a summary of the operation result, including success status, message, counts of processed items and returns, list of return IDs processed, and inventory adjustment flag; or error details if failed.
The node processes all input items, extracting return IDs from the specified field. If no valid return IDs are found, it returns a failure message. On API success, it confirms the returns marked as received; on failure, returns an error message and raw API response. Errors may be caught and returned depending on node configuration.
Examples
Example 1: Marking returns received
Input data contains return IDs in a field defined by 'Return ID Field'. The node is configured with the store code and optionally whether inventory adjustment should occur. The node sends a request to mark these return IDs as received and optionally updates inventory in stock accordingly. The output reports success or failure and details of processed return IDs.