PV API Service

<back to all web services

GetFileTokenRequest

GET a generated file token for DocStorage.

The following routes are available for this service:
GET/DocStorage/Public/FileToken/{PracticePk}/{ClinicPK}/{UserId}/{FileName}/{FileExtension}
GET/DocStorage/Public/FileToken/{PracticePk}/{ClinicPK}/{UserId}/{FileName}/{FileExtension}/{TokenExpirationDate}
GET/DocStorage/Public/FileToken/{PracticePk}/{ClinicPK}/{UserId}/{FileName}/{FileExtension}/{TokenExpirationDate}/{ExpectedSvcDate}

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/GetFileTokenRequest HTTP/1.1 
Host: api.practicevelocity.com 
Content-Type: application/xml
Content-Length: length

<GetFileTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DocStorage.External.DataModel">
  <ClinicPk>00000000-0000-0000-0000-000000000000</ClinicPk>
  <ExpectedSvcDate>String</ExpectedSvcDate>
  <FileExtension>String</FileExtension>
  <FileName>String</FileName>
  <PracticePk>00000000-0000-0000-0000-000000000000</PracticePk>
  <TokenExpirationDate>String</TokenExpirationDate>
  <UserId>String</UserId>
</GetFileTokenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetFileTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DocStorage.External.DataModel">
  <Token>00000000-0000-0000-0000-000000000000</Token>
</GetFileTokenResponse>