Signing Status

This guide shows you how to retrieve the package and signer status.

Once a package (transaction in the UI) has been created, you can retrieve the signing status of the package or of a particular signer. The following guide demonstrates how to query the signing status of a package and signer using the Java SDK.

The Code

The first step is to create your PackageId object. This is also returned to you when creating packages using the OneSpan Sign client.

PackageId packageId = new PackageId("XB4m3cocNudSPEAoUDCIZgbkZD4=");

Then, you use the OneSpan Sign client to query the status of the package and of a signer:

com.silanis.esl.sdk.SigningStatus pkgStatus = eslClient.getSigningStatus(packageId, null, null);
com.silanis.esl.sdk.SigningStatus signerStatus1 = eslClient.getSigningStatus(packageId, new SignerId(signerId1), null);

Running Your Code

Below is a screenshot of what you can expect by doing a System.out.println() of each SigningStatus object.

capture

Get the Code

Once a package (transaction in the UI) has been created, you can retrieve the signing status of the package or of a particular signer. The following guide demonstrates how to query the signing status of a package and signer using the .NET SDK.

The Code

The first step is to create your PackageId object. This is also returned to you when creating packages using the OneSpan Sign client.

PackageId packageId = new PackageId("XB4m3cocNudSPEAoUDCIZgbkZD4=");

Then, you use the OneSpan Sign client to query the status of the package and of a signer:

Silanis.ESL.SDK.SigningStatus signerStatus1 = eslClient.GetSigningStatus(packageId, signerId1, null);
Silanis.ESL.SDK.SigningStatus pkgStatus = eslClient.GetSigningStatus(packageId, null, null);

Running Your Code

Below is a screenshot of what you can expect by doing a Debug.WriteLine() of each SigningStatus object.

capture

Get the Code

Once a package (transaction in the UI) has been created, you can retrieve the signing status of the package or of a particular signer. The following guide demonstrates how to query the signing status of a package and signer using the REST API.

The Code

Retrieving a signing status of a package is done by making the call below:

HTTP Request
GET /api/packages/{packageId}/signingStatus?signer={signerId}&document={documentId}

HTTP Headers
Accept: application/json
Content-Type: application/json
Authorization: Basic api_key

For a complete description of each field, take a look at the JSON Properties section below.

Response Payload

{
    "status": "DRAFT"
}

Where the packageId is returned to you during package creation. Optionally, you can add the signerId and documentId parameters to retrieve the signing status of a signer or document.

Running Your Code

Below is a screenshot of what you can expect once you’ve run your code.

capture

Get the Code