curl --request POST \
--url https://sandbox.circularo.com/api/v2/transactions/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "The contract needs to be revised; a new version will follow."
}
'import requests
url = "https://sandbox.circularo.com/api/v2/transactions/{id}/cancel"
payload = { "message": "The contract needs to be revised; a new version will follow." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({message: 'The contract needs to be revised; a new version will follow.'})
};
fetch('https://sandbox.circularo.com/api/v2/transactions/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v2/transactions/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => 'The contract needs to be revised; a new version will follow.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/transactions/{id}/cancel"
payload := strings.NewReader("{\n \"message\": \"The contract needs to be revised; a new version will follow.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v2/transactions/{id}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"The contract needs to be revised; a new version will follow.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/transactions/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"The contract needs to be revised; a new version will follow.\"\n}"
response = http.request(request)
puts response.read_body{
"annotationFields": [
{
"choiceGroup": "1",
"fileName": "evidence.pdf",
"id": "8b1d4e60",
"isFilled": false,
"isPublic": false,
"maxCharacters": 10,
"options": [
"Full-time",
"Part-time"
],
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"readOnly": false,
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"text": "Approved",
"tooltip": "Enter your job title",
"type": "annotation_generic"
}
],
"completedAt": "2024-11-02T09:15:30.000Z",
"createdAt": "2024-11-02T09:15:30.000Z",
"document": {
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"mainFileId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"metadataDefinition": "d_default",
"signatureProvider": "internal",
"templateId": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"title": "Client agreement"
},
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc590",
"imageFields": [
{
"id": "c7e0a233",
"isFilled": false,
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"tooltip": "Attach the site photo here"
}
],
"message": "Please review and sign this contract.",
"recipients": [
{
"completedAt": "2024-11-02T09:15:30.000Z",
"expiresAt": "2024-11-02T09:15:30.000Z",
"id": "sd0oAvfpB4k0yDf787x4",
"isMandatory": true,
"language": "en",
"message": "Please sign by Friday.",
"order": 1,
"permissions": [
"print"
],
"purpose": "view",
"quorum": 1,
"recipient": {
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
},
"reminder": {
"intervalDays": 3,
"startAt": "2024-11-02T09:15:30.000Z"
},
"status": "pending",
"turnStartedAt": "2024-11-02T09:15:30.000Z",
"verification": {
"email": {
"address": "j*****e@example.com"
},
"kyc": {
"documentTypes": [
"idCard"
],
"factors": [
"idVerification"
],
"providers": [
"identomat"
],
"requiredMatches": [
"dateOfBirth"
]
},
"nafath": {
"personId": "********890"
},
"oauth": {
"factors": [
{
"type": "email",
"value": "j*****e@example.com"
}
],
"providers": [
"uaePass"
]
},
"password": {},
"sms": {
"phone": "*****78"
}
}
}
],
"sequential": true,
"signatureFields": [
{
"id": "3f2a9c1e",
"isFilled": false,
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"tooltip": "Sign here",
"type": "signature"
}
],
"status": "in-progress",
"webUrl": "https://sandbox.circularo.com/home/detail?select=a0d01c9d-f72f-4c57-af11-e26bda19cc59"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Cancel a transaction
POST /transactions/{id}/cancel
Cancels a running transaction. Every recipient who has not finished their participation yet loses access to the document, the recipients are notified, and no further actions can be taken.
Cancellation is permanent — the transaction cannot be restarted, and the document cannot run a new one.
curl --request POST \
--url https://sandbox.circularo.com/api/v2/transactions/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "The contract needs to be revised; a new version will follow."
}
'import requests
url = "https://sandbox.circularo.com/api/v2/transactions/{id}/cancel"
payload = { "message": "The contract needs to be revised; a new version will follow." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({message: 'The contract needs to be revised; a new version will follow.'})
};
fetch('https://sandbox.circularo.com/api/v2/transactions/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v2/transactions/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => 'The contract needs to be revised; a new version will follow.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/transactions/{id}/cancel"
payload := strings.NewReader("{\n \"message\": \"The contract needs to be revised; a new version will follow.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v2/transactions/{id}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"The contract needs to be revised; a new version will follow.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/transactions/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"The contract needs to be revised; a new version will follow.\"\n}"
response = http.request(request)
puts response.read_body{
"annotationFields": [
{
"choiceGroup": "1",
"fileName": "evidence.pdf",
"id": "8b1d4e60",
"isFilled": false,
"isPublic": false,
"maxCharacters": 10,
"options": [
"Full-time",
"Part-time"
],
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"readOnly": false,
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"text": "Approved",
"tooltip": "Enter your job title",
"type": "annotation_generic"
}
],
"completedAt": "2024-11-02T09:15:30.000Z",
"createdAt": "2024-11-02T09:15:30.000Z",
"document": {
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"mainFileId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"metadataDefinition": "d_default",
"signatureProvider": "internal",
"templateId": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"title": "Client agreement"
},
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc590",
"imageFields": [
{
"id": "c7e0a233",
"isFilled": false,
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"tooltip": "Attach the site photo here"
}
],
"message": "Please review and sign this contract.",
"recipients": [
{
"completedAt": "2024-11-02T09:15:30.000Z",
"expiresAt": "2024-11-02T09:15:30.000Z",
"id": "sd0oAvfpB4k0yDf787x4",
"isMandatory": true,
"language": "en",
"message": "Please sign by Friday.",
"order": 1,
"permissions": [
"print"
],
"purpose": "view",
"quorum": 1,
"recipient": {
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
},
"reminder": {
"intervalDays": 3,
"startAt": "2024-11-02T09:15:30.000Z"
},
"status": "pending",
"turnStartedAt": "2024-11-02T09:15:30.000Z",
"verification": {
"email": {
"address": "j*****e@example.com"
},
"kyc": {
"documentTypes": [
"idCard"
],
"factors": [
"idVerification"
],
"providers": [
"identomat"
],
"requiredMatches": [
"dateOfBirth"
]
},
"nafath": {
"personId": "********890"
},
"oauth": {
"factors": [
{
"type": "email",
"value": "j*****e@example.com"
}
],
"providers": [
"uaePass"
]
},
"password": {},
"sms": {
"phone": "*****78"
}
}
}
],
"sequential": true,
"signatureFields": [
{
"id": "3f2a9c1e",
"isFilled": false,
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"tooltip": "Sign here",
"type": "signature"
}
],
"status": "in-progress",
"webUrl": "https://sandbox.circularo.com/home/detail?select=a0d01c9d-f72f-4c57-af11-e26bda19cc59"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Body
Parameters for cancelling a transaction.
A message explaining the cancellation, included in the notifications sent to the recipients. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.
2000"The contract needs to be revised; a new version will follow."
Response
The transaction was cancelled and its final state returned.
A transaction: the process of getting a document signed, approved, reviewed or accepted by its recipients.
Current status of the transaction. It advances as recipients act on the document.
not-started: The document has been created, but no transaction has started over it yet.in-progress: A transaction is in progress: the document has been shared and is awaiting action from one or more recipients.completed: The transaction completed successfully — every requested recipient finished their action.rejected: The transaction ended because a recipient rejected the document.cancelled: The transaction was cancelled before completion.expired: The transaction expired before completion.
not-started, in-progress, completed, rejected, cancelled, expired "in-progress"