Salesforce の apex からの契約送信: x-api-user ヘッダーに指定されたユーザー ID または電子メールが無効です。
Salesforce sending agreement from apex : Invalid user ID or email provided in x-api-user header.
Update - the error was caused because one of the SF fields I was trying to map was not a string, but instead a formula (string). It appears that all SF fields used in merge mapping must be of the string data type.
追記 - マッピングしようとしたSFフィールドの1つが文字列ではなく、数式(文字列)だったため、エラーが発生していました。マージマッピングで使用するSFフィールドはすべて文字列データ型である必要があるようです。