Request a void on an agreement
curl --request POST \
--url https://api.journeybee.io/v1/agreements/{uuid}/void \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"void_reason": "<string>"
}
'import requests
url = "https://api.journeybee.io/v1/agreements/{uuid}/void"
payload = { "void_reason": "<string>" }
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({void_reason: '<string>'})
};
fetch('https://api.journeybee.io/v1/agreements/{uuid}/void', 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://api.journeybee.io/v1/agreements/{uuid}/void",
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([
'void_reason' => '<string>'
]),
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://api.journeybee.io/v1/agreements/{uuid}/void"
payload := strings.NewReader("{\n \"void_reason\": \"<string>\"\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://api.journeybee.io/v1/agreements/{uuid}/void")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"void_reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/agreements/{uuid}/void")
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 \"void_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"partnership_uuid": "<string>",
"agreement_template_uuid": "<string>",
"name": "<string>",
"status": "draft",
"provider_key": "<string>",
"external_ref": "<string>",
"failure_reason": "<string>",
"requested_by_user_uuid": "<string>",
"signed_asset_uuid": "<string>",
"certificate_asset_uuid": "<string>",
"sent_at": "<string>",
"viewed_at": "<string>",
"completed_at": "<string>",
"declined_at": "<string>",
"voided_at": "<string>",
"expired_at": "<string>",
"failed_at": "<string>",
"expires_at": "<string>",
"void_requested_at": "<string>",
"void_reason": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"signers": [
{
"uuid": "<string>",
"role_name": "<string>",
"routing_order": 123,
"contact_uuid": "<string>",
"user_uuid": "<string>",
"email": "<string>",
"name": "<string>",
"status": "pending",
"sent_at": "<string>",
"viewed_at": "<string>",
"signed_at": "<string>",
"declined_at": "<string>"
}
]
}Agreements
Request a void on an agreement
Person credentials only: records a void request (reason optional, internal); the provider’s installation carries it out and later patches status to voided. A terminal agreement is a 409; repeating a pending request is a no-op.
POST
/
agreements
/
{uuid}
/
void
Request a void on an agreement
curl --request POST \
--url https://api.journeybee.io/v1/agreements/{uuid}/void \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"void_reason": "<string>"
}
'import requests
url = "https://api.journeybee.io/v1/agreements/{uuid}/void"
payload = { "void_reason": "<string>" }
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({void_reason: '<string>'})
};
fetch('https://api.journeybee.io/v1/agreements/{uuid}/void', 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://api.journeybee.io/v1/agreements/{uuid}/void",
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([
'void_reason' => '<string>'
]),
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://api.journeybee.io/v1/agreements/{uuid}/void"
payload := strings.NewReader("{\n \"void_reason\": \"<string>\"\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://api.journeybee.io/v1/agreements/{uuid}/void")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"void_reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/agreements/{uuid}/void")
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 \"void_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"partnership_uuid": "<string>",
"agreement_template_uuid": "<string>",
"name": "<string>",
"status": "draft",
"provider_key": "<string>",
"external_ref": "<string>",
"failure_reason": "<string>",
"requested_by_user_uuid": "<string>",
"signed_asset_uuid": "<string>",
"certificate_asset_uuid": "<string>",
"sent_at": "<string>",
"viewed_at": "<string>",
"completed_at": "<string>",
"declined_at": "<string>",
"voided_at": "<string>",
"expired_at": "<string>",
"failed_at": "<string>",
"expires_at": "<string>",
"void_requested_at": "<string>",
"void_reason": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"signers": [
{
"uuid": "<string>",
"role_name": "<string>",
"routing_order": 123,
"contact_uuid": "<string>",
"user_uuid": "<string>",
"email": "<string>",
"name": "<string>",
"status": "pending",
"sent_at": "<string>",
"viewed_at": "<string>",
"signed_at": "<string>",
"declined_at": "<string>"
}
]
}Authorizations
Path Parameters
Body
application/json
Response
200 - application/json
Default Response
draft after create — nothing is sent and no event fires until a person sends it, which moves it to requested; the provider's installation then moves it through sent/viewed to signed, or to a terminal declined, voided, expired or failed. Never settable by a person.
Available options:
draft, requested, sent, viewed, signed, declined, voided, expired, failed