Retrieve a transaction
curl --request GET \
--url https://sandbox.circularo.com/api/v2/transactions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.circularo.com/api/v2/transactions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.circularo.com/api/v2/transactions/{id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/transactions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v2/transactions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
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": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Transactions
Retrieve a transaction
GET /transactions/{id}
Retrieves a transaction — the current status of the process, when it was started and finished, and every recipient with the state of their participation.
The transaction identifier is returned when the transaction is created and on every document representation as transaction.id. A transaction that has not been started yet is returned with the not-started status and no recipients. The transaction is returned even when its document is in the trash.
Retrieve a transaction
curl --request GET \
--url https://sandbox.circularo.com/api/v2/transactions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.circularo.com/api/v2/transactions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.circularo.com/api/v2/transactions/{id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/transactions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v2/transactions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
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": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Response
The transaction was found and 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.
Available options:
not-started, in-progress, completed, rejected, cancelled, expired Example:
"in-progress"