Inserting Into a Document Bundle

Whenever you add a new document to a transaction, it will be positioned at the end of the documents array, meaning it will be the last document presented to the signer. But in some cases, order matters. You can insert a new document into a transaction at a preferred bundle_position by calling the Add Document endpoint and providing the preferred bundle_position value (indexed by 0):

POST /transactions/otxxxxxxx/documents
{
  bundle_position: 0,
  resource: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}