PV API Service

<back to all web services

ESignDocumentCreateAndStoreRequest

POST a new ESign Document Creation request for a Practice or Clinic given a particular DocumentTemplatePK and its Root Storage ID and the passed DocumentSettings. The API will construct an actual instance of the PDF and store into into temporary DocStorage. It will then return a FileToken ID that will allow its download and transfer into permanent storage after patient merge operations.

The following routes are available for this service:
POST, OPTIONS/ESignAPI/ESignDocument/{Practice}/{ClinicPk}/{DocumentTemplatePk}/{StorageRootId}
POST, OPTIONS/ESignAPI/ESignDocument/{Practice}/{ClinicPk}/{DocumentTemplatePk}/{StorageRootId}/{IsPracticeDocumentTemplate}

To override the Content-type in your clients HTTP Accept Header, append ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/ESignDocumentCreateAndStoreRequest HTTP/1.1 
Host: api.practicevelocity.com 
Content-Type: application/xml
Content-Length: length

<ESignDocumentCreateAndStoreRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PV.ESign.DataModel.RequestResponse">
  <ClinicPk>00000000-0000-0000-0000-000000000000</ClinicPk>
  <DocumentInserts>
    <DocumentInserts>
      <Key>String</Key>
      <Value>String</Value>
    </DocumentInserts>
  </DocumentInserts>
  <DocumentTemplatePk>00000000-0000-0000-0000-000000000000</DocumentTemplatePk>
  <IsPracticeDocumentTemplate>false</IsPracticeDocumentTemplate>
  <Practice>String</Practice>
  <StorageRootId>0</StorageRootId>
</ESignDocumentCreateAndStoreRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ESignDocumentCreateAndStoreResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PV.ESign.DataModel.RequestResponse">
  <FileSize>0</FileSize>
  <FileToken>00000000-0000-0000-0000-000000000000</FileToken>
  <NumberOfPages>0</NumberOfPages>
</ESignDocumentCreateAndStoreResponse>