Get Bundle Allocations
curl --request GET \
--url https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocationsimport requests
url = "https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocations', 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/{contract_id}/milestones/{milestone_id}/allocations",
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/{contract_id}/milestones/{milestone_id}/allocations"
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/{contract_id}/milestones/{milestone_id}/allocations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocations")
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{
"id": 123,
"source_bundle": 123,
"source_bundle_name": "<string>",
"total_amount": 0,
"currency": "<string>",
"lines": [
{
"id": 123,
"product": 123,
"product_name": "<string>",
"product_id_str": "<string>",
"amount": 0,
"percentage": "<string>",
"original_percentage": 0,
"component_type": "SUBSCRIPTION"
}
],
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"license_term_start_date": "2023-12-25"
}Revenue Recognition
Get Bundle Allocations
Retrieve the current bundle allocation details for a contract subscription, milestone, or usage.
GET
/
rr
/
api
/
v1
/
contracts
/
{contract_id}
/
milestones
/
{milestone_id}
/
allocations
Get Bundle Allocations
curl --request GET \
--url https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocationsimport requests
url = "https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocations"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocations', 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/{contract_id}/milestones/{milestone_id}/allocations",
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/{contract_id}/milestones/{milestone_id}/allocations"
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/{contract_id}/milestones/{milestone_id}/allocations")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{milestone_id}/allocations")
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{
"id": 123,
"source_bundle": 123,
"source_bundle_name": "<string>",
"total_amount": 0,
"currency": "<string>",
"lines": [
{
"id": 123,
"product": 123,
"product_name": "<string>",
"product_id_str": "<string>",
"amount": 0,
"percentage": "<string>",
"original_percentage": 0,
"component_type": "SUBSCRIPTION"
}
],
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"license_term_start_date": "2023-12-25"
}Response
200 - application/json
Serializer for ContractProductBundle with nested lines.
Used for retrieving and updating contract-specific bundle allocations. When updating, validates that line amounts sum to total_amount.
Original ProductBundle template this was created from
Total amount to be allocated across products
Required range:
-1000000000000000000 < x < 1000000000000000000Show child attributes
Show child attributes
Date the license/service term begins. For SF-ingested mixed bundles, drives the linked subscription start_date and milestone milestone_date. Snapshotted at ingest time for audit.