Skip to main content

Cancel a Notarization Session

This help page will guide you through the process of canceling a notarization session using the Notarization API. You'll need both the notarization ID and your API access token to proceed.

Requirements

  1. You need to have Node.js installed on your system.
  2. You'll also need the axios library. You can install it using the following command:
npm install axios

Code Snippet

Use the following code snippet to cancel a notarization session. Replace <notarizationId> that is found in the response body when creating a notarization with the actual notarization ID, and <accessToken> with your API access token.

const axios = require("axios");

const data = {
notifyParticipants: <boolean>,
};

const config = {
method: "patch",
url: `https://public-api.enotarylog.com/notarizations/<notarizationId>/cancel`,
headers: {
Authorization: "Bearer <accessToken>",
},
data: JSON.stringify(data),
};

axios(config)
.then(function (response) {, response.data
console.log("Notarization session canceled successfully", response.data);
})
.catch(function (error) {
console.log(error);
});

Steps to Execute the Code Snippet

  1. Create a new file named cancel_notarization.js.
  2. Copy and paste the code snippet provided above into the new file.
  3. Replace <notarizationId> and <accessToken> with the appropriate values.
  4. Notify participant parameter requires a boolen value.
  5. Save the file and open a terminal or command prompt.
  6. Navigate to the folder where you saved the cancel_notarization.js file.
  7. Run the following command to execute the script:
node cancel_notarization.js

If the request is successful, you'll see a message indicating that the notarization session was canceled successfully. In case of an error, the error message will be displayed instead.

Additional Resources

For more information about the Notarization API, visit the official documentation.

If you need further assistance or have questions, feel free to reach out to our support team.