I’m trying to do a refund import according to this article
with a csv looking like this
But instead of using a csv upload – I want to upload the data using a xml or http request with the data insertion api https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/data-insertion-api/index.md
The upload works, but the outcome is that the event 100 and evar 50 are not connected and the event is also not connected to the orginal order so e.g. not connected to s.products.
How does a correct xml or http request has to look to get the same outcome as the described process of the article using the csv upload?
Instead of using Data Insertion API, you would rather want to use Data Source API which would correspond to the same functionality using FTP.Please ref: https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/data-sources-api/index.md.
The Data Insertion API actually is meant to upload data as a server call just like that on the site and would not help your case here.