A refund is not exporting to Xero; the error message is: “line_items must have one or more records.” How can this issue be resolved?
The error “line_items must have one or more records” when attempting to export a refund to Xero typically occurs because the refund wasn't processed through Shopify's standard refund process or the order was modified in a way that affects the refund. These modifications prevent automatic processing. The refund needs to be manually added to your Xero account.