When employee information is sent from a third-party system via API, the data will land in MicrOpay's Staged Tables.
A New Employee record is considered an Add record and should have 1 in the iChangeType field in the backend. This then displays in New/Edit Employees as New.
An Edit Employee record that updates an existing employee is considered a Change record and should have 0 in the iChangeType field. This then displays as Edit in New/Edit Employees.
You must send the Add record to MicrOpay first before sending any changes. And you can only send one Add record.
If you send a Change record and the employee doesn't exist or an Add record has not been created in the Staged tables, then the Add record will not be created in MicrOpay and the new Employee will be missing from the New/Edit Employees window.
If the original Add record was rejected and you send a subsequent Add record, it will not be created and the new Employee will be missing from New/Edit Employees.
You can create the employee record manually and then send change records.
