SubmitDocument Method

Purpose

Use the SubmitDocument method to send the document you want FormXtract to read and extract data from.

End Point

PROD: https://websvcs.quikforms.com/rest/quikformxtract/v1000/documents

Description

The SubmitDocument method enables a customer to send a document to Quik! FormXtract to read the data off of the form.

This method accepts a document in multi-page TIF or PDF format. A document may contain one or more pages, representing one or more forms. For best practices, it is recommended to only send one form (e.g the document matching the form in the Quik! Form library) by splitting your original document into it’s requisite parts.

NOTE: If splitting a document is not feasible, it’s ok, just submit the original document and let FormXtract do it’s best.

How To Track Split Documents in FormXtract

If a document contains multiple forms, as many transactions often do, the most efficient way to use FormXtract is to submit one form at a time. However, by doing this you may need to reassemble the individual forms back into a single document once the data has been extracted.

To track your split document, there are two optional parameters to send: DocumentUNID and DocumentOrder. The DocumentUNID is your unique document identifier (e.g. a file name or transaction ID, etc.). The DocumentOrder is the original order each split document has in the original file.

For example, if your document is a New Account Form, a Transfer Form and an Order Ticket, represented by a transaction ID of ABC123, then your API calls would consist of:

  1. FormXtract Call #1 - New Account Form

    1. DocumentUNID = ABC123

    2. DocumentOrder = 1

  2. FormXtract Call #2 - Transfer Form

    1. DocumentUNID = ABC123

    2. DocumentOrder = 2

  3. FormXtract Call #3 - Order Ticket

    1. DocumentUNID = ABC123

    2. DocumentOrder = 3

 

Splitting a document into it’s individual forms helps avoid data problems when a form package contains multiple copies of the same form (e.g. 3 transfer forms sent to Quik! FormXtract at the same time may be difficult to know which pages belong together if the sort order of the pages is not perfect).

While FormXtract will process any number of forms bundled together in a single request, splitting documents into individual requests will yield the best results.

10-Minute Delay

Requests to the SubmitDocument process are automatically delayed for 10 minutes to allow customers 10 minutes to Cancel the request if needed.

Request

To send a form to FormXtract, the customer will first get an AuthToken from the REST Authentication service. To call the SubmitDocument method send the AuthToken and the document file in a base64 string.

Optionally, the customer can include a DocumentFileName, DocumentUNID and DocumentOrder values to be used by the customer to associate multiple SubmitDocument requests together upon return of the data from FormXtract.

IMPORTANT! The response from the SubmitDocument method will include a SubmitDocumentTransID that represents the submitted document in FormXtract - this value MUST BE SAVED in your system for future calls of the FormXtract API.

 

Parameter

Type

Required

Description

Parameter

Type

Required

Description

AuthToken

String

Yes

OAuth token to authorize the API call

Document

Base64 string

Yes

PDF or TIF file to be uploaded

DocumentFileName

String

No

Quik! will automatically assign the SubmitDocTransID as the file name unless one is provided by the customer in which case the file name will be the SubmitDocTransID + DocumentFileName.

DocumentUNID

String

No

Customer-provided ID that can be used to link multiple submitted documents together (i.e. a form package).

DocumentOrder

Number

No

A numeric value representing the order of the documents in a DocumentUNID so the customer can reassemble the document data once returned by Quik!.

Sample Request

URL: https://websvcs.quikforms.com/rest/quikformxtract/v1000/documents

Method: POST

Content-type: application/json

Body:

{     "Document": "JVBERi0xLjcKJeLjz9MKOTU4IDAgb2JqCjw...",     "DocumentFileName" : "TestFileName",     "DocumentUNID": "d166d440-4482-4b9b-8b8c-5e480bd5fe1c",     "DocumentOrder": 0 }

 

Response

The response from the SubmitDocument API will include a unique transaction ID from Quik! (SubmitDocumentTransID) and any error responses, including a success message.

Parameter

Type

Description

Parameter

Type

Description

SubmitDocumentTransID

Integer

Unique identifier for the submitted document

IMPORTANT! Save this transaction ID in your system as it is required to get the extracted data or perform any other calls in this API.

ErrorCode

String

Error code if the operation failed:

0 = Successfully submitted

5 = Documented rejected due to not being valid or supported file type

7 = Exceeds maximum number of pages per period

ErrorMessage

String

Error message if the operation failed.

File could not be validated as a PDF or TIF and was therefore rejected by the system.

 

Sample Response

{     "ResultData": {         "SubmitDocTransID": 43     },     "ErrorCode": 0,     "Message": "",     "Errors": null }

 

 

Related pages

For help regarding Quik! Forms and the Quik! API
Email: support@quikforms.com | Phone: (877) 456-QUIK