@DTS Engineer thank you for the answers. Very good to know applicationPrimaryAccountNumber could be either DPAN or MPAN. Is this documented somewhere?
(For some reason we thought that the merchantTokenIdentifier was the same as the MPAN. Are they not the same thing?)