With Curl we can confirm as following: curl -ks -X PUT --header "Content-Type: application/json" -d '{"status":"CONFIRMED"}' https://212.51.146.241:8100/md/ela/downloads/9c0e8433-f5e9f20/status --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXXX"
The response XML Transmission Reference has to be taken from curl -kvL -O --resolve --location --request GET "https://212.51.146.241:8100/md/ela/downloads?limit=500" --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXX"
Important: the invoice XML Transmission Reference the application receives after sending the invoice XML is not the same like the response XML Transmission Reference you get when accessing md/ela/downloads?limit=500.
To confirm a response XML Transmission Reference you need the response XML Transmission Reference from md/ela/downloads?limit=500. The doctors GLN is found in the invoice Response XML.
To be able to associate the response XML Transmission Reference you need to only download the files that belong to the doctor's GLN
The doctor's GLN is in the Tag to -> <invoice:transport ... to="2099988889941">
Once confirmed, the response XML Transmission Reference is gone from the Medidata Server, you can no longer find it with curl -kvL -O --resolve --location --request GET "https://212.51.146.241:8100/md/ela/downloads/7c81e183-26e6-47c4-9134-a36dd01494c6" --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXXX"
curl -ks -X PUT --header "Content-Type: application/json" -d '{"status":"CONFIRMED"}' https://212.51.146.241:8100/md/ela/downloads/9c0e8433-f5e9f20/status --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXXX"
curl -kvL -O --resolve --location --request GET "https://212.51.146.241:8100/md/ela/downloads?limit=500" --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXX"
md/ela/downloads?limit=500
.md/ela/downloads?limit=500
. The doctorsGLN
is found in the invoice Response XML.GLN
GLN
is in the Tagto
-><invoice:transport ... to="2099988889941">
curl -kvL -O --resolve --location --request GET "https://212.51.146.241:8100/md/ela/downloads/7c81e183-26e6-47c4-9134-a36dd01494c6" --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXXX"