Doesn't this also need something like ``data['transId'] = data.get('transId, data.get('externalCPTransId'))`` ?