Document Post in One Big API Call

In the event a single transaction is required, we will have one transaction consisting of 3 parts.

The first part of the transaction is the authentication information. Signority APIs use HTTP basic access authentication method. HTTP basic access authentication requires an extra parameter in the request header which will be formatted as the Base64 code of “username:password” where username and password are the credentials you would use to log into your Signority account. HTTP basic access authentication requires a HTTP header name ‘Authorization’ and the authorization type would be ‘Basic’. In the following case, we use username and password as our credentials, the header should look as follows.

Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
An example of this in Java can be seen below:

The second part would be to include any files that are necessary for the document. These files should be posted as a parameter of the request that’s sent to the Signority server. An example of this in java can be seen below:

Finally, the last part of the transaction is the metadata (JSON object of the document with all its details). This revisits all of the JSON objects created earlier and combines them into one JSON object at the same time.