When using form_fields_per_document to place signer fields, you can use the custom_fields parameter to merge data into the text fields.
For the form fields, specify "type": "text-merge" as noted in these Field Types and include the "name" as well.
Using the name of the field, pass the data for the field using the custom_fields parameter.
Example cURL parameters: