Sales return create issue

Sales return create issue

Hi  every one.

Call the API to create a salesreturn, but receive an error message saying 'Invalid value passed for salesord_id'. However, the salesord_id parameter is not included in the API documentation. What should I do?

  1. {
        "salesreturn_number": "RMA-00001",
        "date": "2025-03-31",
        "reason": "slfja",
        "location_id": "6196575000000091158",
        "line_items": [
            {
                "item_id": "6196575000000097003",
                "quantity": 1,
                "salesorder_item_id": "6196575000000097003",
                "location_id": "6196575000000091158"
            }
        ]
    }