Use the POST /environments/{{envID}}/templates/transaction/contents operation to create a transaction template that specifies the transaction information and provides a variable for the one-time passcode.

The body of the request specifies the locale property to identify the language for the content. In thi use case, this value is the environment’s default language.

The content property defines the message text the end user receives to complete the transaction. In this use case, the message is Approve this transfer of ${sum} ${currency} to ${recipient}, by entering this OTP: ${otp}. The ${sum}, ${currency}, and ${recipient} variable values in the transaction approval text are encoded in the request JWT, which is created in Step 15.

The deliveryMethod property specifies the MFA device type that receives the transaction approval request. In this use case, SMS is the delivery method.