Duplicate a field

You can duplicate a field and add it to the same document or to another document of the transaction. To do so, send a request to POST /v1/transactions/{transaction_id}/documents/{document_id}/fields and pass the field you want to copy in via copy_from argument:

Curl
https://api.universign.com/v1/transactions/tx_DwYGle91EQZA/documents/doc_4dn/fields \
-d copy_from=fld_a998 

A new field is created with the same parameters as the copied one. However, it is possible to modify the name, position, consents and type parameters. Simply pass the wanted values as arguments. For example:

curl
https://api.universign.com/v1/transactions/tx_DwYGle91EQZA/documents/doc_4dn/fields\  
-d copy_from=fld_a998 \
-d type=visa
-d name=myOtherField

In the above request, a new field is created based on field fld_a998 but with a different field name and a different consent text.

Important: In case you copy a field to another document of the transaction, ensure the target document has at least the same number of pages than the field’s position. Otherwise, you must pass the field position’s arguments:

Curl
https://api.universign.com/v1/transactions/{transaction_id}/documents/{document_id}/fields \
-d copy_from=fld_a998 \
-d type=signature \
-d page=1 \
-d x=250 \
-d y=95

Important: You cannot pass the copy_from argument with the following field types:

  • checkbox_group,
  • checkbox,
  • radio_group,
  • radiobutton,
  • dropdown.

Add dropdown list fields
Move a field
Developer tools
Guides
Services
API reference