Cancelling Shares
This scenario demonstrates how to cancel active shares in the Circularo system. Cancelling shares is an important operation that allows you to revoke access to documents that have been shared incorrectly, need revision, or are no longer relevant. Key features:- Cancel active shares to immediately revoke recipient access
- Provide an optional message explaining why the share was cancelled
- Cancel an entire sharing process with a single API call
- Track cancellation in the document history
Prerequisites
Before cancelling shares, you need:- A valid authentication token (see the “Authentication & Security” section for details)
- An active share ID from a previously shared document
- Appropriate permissions (only the document owner or the original sharer can cancel shares)
Step 1 - Share Document with Multiple Internal Recipients
Before we can demonstrate cancelling shares, we need to create some active shares. This endpoint shares a document with two internal recipients for signing.- The document is shared with two internal recipients in a single request
- Both recipients can sign the document in parallel
- Each recipient has their own signature field positioned on the document
- The sharing process creates multiple share records that will all be cancelled together when any one is cancelled
- shareId1 - Located at
[0].shareIdin the response.- The unique identifier for the first share (to the first internal recipient).
- Example value:
T27nKCveshqkUr3yrfAZ
- shareId2 - Located at
[1].shareIdin the response.- The unique identifier for the second share (to the second internal recipient).
- Example value:
ASBguNlCXd2d6KQip9Qj
The response includes share IDs for each recipient. These IDs will be used in the next step to cancel the shares.
Step 2 - Cancel Active Shares
This endpoint demonstrates how to cancel active shares. When you cancel a share, the recipient immediately loses access to the document, and the share is marked as cancelled in the system.- You can cancel one or more shares in a single request
- When cancelling any share in a sharing process, the entire process is cancelled
- The cancellation is tracked in the document history
When you cancel any share in a sharing process, all related shares are automatically cancelled as well. This ensures that the entire sharing workflow is properly terminated.
Cancelling Shares Summary
You have successfully cancelled active shares in the Circularo system. This operation is important for managing document access and maintaining security.Key Concepts
- Share Cancellation: Immediately revokes recipient access to shared documents
- Process-Wide Cancellation: Cancelling any share in a process cancels all related shares
- Share ID: Unique identifier used to target specific shares for cancellation
Example Implementation
See our OpenAPI documentation to learn about the full set of API endpoints and parameters.
Please use proper exception handling and function decomposition in your own code. The code is provided for illustrative purposes only and is not intended for production use.