Preview Contract Termination Settlement
curl --request GET \
--url https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-previewimport requests
url = "https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview', 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.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"termination_date": "2023-12-25",
"posting_date": "2023-12-25",
"total_reversal_amount": 0,
"total_credit_amount": 0,
"source_credit_amount": 0,
"successor_credit_amount": 0,
"total_tax_amount": 0,
"lines": [
{
"kind": "subscription",
"source_id": 123,
"label": "<string>",
"product_id": 123,
"product_name": "<string>",
"reversal_amount": 0,
"credit_amount": 0,
"tax_amount": 0,
"billed_amount": 0,
"consumed_amount": 0,
"unused_amount": 0,
"consideration_amount": 0,
"recognized_amount": 0,
"unrecognized_amount": 0
}
],
"warnings": [
"<string>"
],
"can_settle": true,
"blocking_reason": "<string>",
"successor_adjustment": {
"subscription_recognized": 0,
"subscription_credit": 0,
"adjustment": 0,
"requires_successor": true,
"eligible_targets": [
{
"kind": "prepaid_commit",
"id": 123,
"label": "<string>",
"contract_id": 123,
"contract_name": "<string>",
"already_adjusted": true,
"has_posted_usage": true,
"product_matches": true
}
]
},
"reconciliation": {
"consideration": 0,
"recognized": 0,
"unrecognized": 0,
"refund": 0,
"not_transferred": 0,
"transferred": 0
}
}Revenue Recognition
Preview Contract Termination Settlement
GET
/
rr
/
api
/
v1
/
contracts
/
{id}
/
termination-settlement-preview
Preview Contract Termination Settlement
curl --request GET \
--url https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-previewimport requests
url = "https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview', 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.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/contracts/{id}/termination-settlement-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"termination_date": "2023-12-25",
"posting_date": "2023-12-25",
"total_reversal_amount": 0,
"total_credit_amount": 0,
"source_credit_amount": 0,
"successor_credit_amount": 0,
"total_tax_amount": 0,
"lines": [
{
"kind": "subscription",
"source_id": 123,
"label": "<string>",
"product_id": 123,
"product_name": "<string>",
"reversal_amount": 0,
"credit_amount": 0,
"tax_amount": 0,
"billed_amount": 0,
"consumed_amount": 0,
"unused_amount": 0,
"consideration_amount": 0,
"recognized_amount": 0,
"unrecognized_amount": 0
}
],
"warnings": [
"<string>"
],
"can_settle": true,
"blocking_reason": "<string>",
"successor_adjustment": {
"subscription_recognized": 0,
"subscription_credit": 0,
"adjustment": 0,
"requires_successor": true,
"eligible_targets": [
{
"kind": "prepaid_commit",
"id": 123,
"label": "<string>",
"contract_id": 123,
"contract_name": "<string>",
"already_adjusted": true,
"has_posted_usage": true,
"product_matches": true
}
]
},
"reconciliation": {
"consideration": 0,
"recognized": 0,
"unrecognized": 0,
"refund": 0,
"not_transferred": 0,
"transferred": 0
}
}Path Parameters
Response
200 - application/json
Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-1000000000000000000 < x < 1000000000000000000Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes