Import the data as it is provided by the REST call and then create a microflow to take that data and copy or move it into the Mendix entities it needs to be in. This is a common use case – rather than try to transform data with an import mapping, get the data into Mendix and then transform it with a microflow that is called after the REST call is completed.