We have made Refund Lines as a conditional parameter in the Issue Refund API. But it is strongly recommended that you send the return order line when issuing refund.
Return Order with only one Return Order Line
- If the Return Order has only one Return Order Line, you can choose not to add it in the payload. But it is recommended to add the Return Order Line.
- If Return Order Line is not found in the request payload, then the only available Return Order Line for the Return Order will be auto-selected for refund.
Return Order with multiple Return Order Lines –
- If the Return Order has more than one Return Order Line, you must add the required Return Order Line in the payload.
- If Return Order Line is not found in the request payload, the request will result in 400 HTTP error.
For more information, see Issue Refund API in the reference.