How to add earning definition to pay run

hello everyone , I have an issue in regard to one of the sage 300  APIs  when creating a new Employee i get the following errors from my postman

 {
                "PropertyName": "RemunerationEarnDefID",
                "PropertyFriendlyName": "Affected Earning Line",
                "ErrorRulesCollection": [
                    {
                        "Message": "The Remuneration Earning Definition must be included in the current Pay Run"
                    }
                ]
            },

How can i Add a Earning Definition to a Pay Run