Miva icon

Miva

Interact with Miva eCommerce API

Create Returns

AI-generated

Summary

Create RMA return records in a Miva store for order line items marked for return in input data.

Inputs

  • Store Code (required) — The Miva store code identifier in which to create returns.
  • Order ID Field (required) — Name of the input data field containing the order ID.
  • Line ID Field (required) — Name of the input data field containing the order line item ID.
  • Create Return Field (required) — Name of the input data boolean field that indicates whether to create a return for each line item (must be true).

Output shape

a list of JSON objects representing success or failure for each return line item created.

Combines input items by order ID and sends grouped returns requests. Returns an array where each element corresponds to a line item processed, including order_id, line_id, and either return_id on success or an error message on failure.

Links

Discussion