Retrieve Revenue Contract Line
curl --request GET \
--url https://api.meetcampfire.com/rev/api/v1/contract-lines/{id}import requests
url = "https://api.meetcampfire.com/rev/api/v1/contract-lines/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/rev/api/v1/contract-lines/{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://api.meetcampfire.com/rev/api/v1/contract-lines/{id}",
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/rev/api/v1/contract-lines/{id}"
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/rev/api/v1/contract-lines/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rev/api/v1/contract-lines/{id}")
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,
"contract": 123,
"contract_name": "<string>",
"rate_card_name": "<string>",
"product_name": "<string>",
"overage_rate": 0,
"overage_cadence": "MONTHLY",
"department_name": "",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"ordinal": 1073741823,
"product": 123,
"product_bundle": 123,
"rate_card": 123,
"product_sku": "<string>",
"description": "<string>",
"currency": "<string>",
"quantity": 0,
"unit_price": 0,
"discount": 0,
"discount_percent": 0,
"transaction_price": 0,
"service_start": "2023-12-25",
"service_end": "2023-12-25",
"first_invoice_date": "2023-12-25",
"exclude_from_allocation": true,
"is_mrr": true,
"billing_cadence": "MONTHLY",
"billing_timing": "ADVANCE",
"invoice_calculation": "FIXED_RATE",
"net_terms": 1073741823,
"department": 123,
"tags": [
123
]
}Revenue
Retrieve Revenue Contract Line
GET
/
rev
/
api
/
v1
/
contract-lines
/
{id}
Retrieve Revenue Contract Line
curl --request GET \
--url https://api.meetcampfire.com/rev/api/v1/contract-lines/{id}import requests
url = "https://api.meetcampfire.com/rev/api/v1/contract-lines/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/rev/api/v1/contract-lines/{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://api.meetcampfire.com/rev/api/v1/contract-lines/{id}",
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/rev/api/v1/contract-lines/{id}"
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/rev/api/v1/contract-lines/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rev/api/v1/contract-lines/{id}")
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,
"contract": 123,
"contract_name": "<string>",
"rate_card_name": "<string>",
"product_name": "<string>",
"overage_rate": 0,
"overage_cadence": "MONTHLY",
"department_name": "",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"ordinal": 1073741823,
"product": 123,
"product_bundle": 123,
"rate_card": 123,
"product_sku": "<string>",
"description": "<string>",
"currency": "<string>",
"quantity": 0,
"unit_price": 0,
"discount": 0,
"discount_percent": 0,
"transaction_price": 0,
"service_start": "2023-12-25",
"service_end": "2023-12-25",
"first_invoice_date": "2023-12-25",
"exclude_from_allocation": true,
"is_mrr": true,
"billing_cadence": "MONTHLY",
"billing_timing": "ADVANCE",
"invoice_calculation": "FIXED_RATE",
"net_terms": 1073741823,
"department": 123,
"tags": [
123
]
}Path Parameters
Response
200 - application/json
Base serializer that injects the request user's customer on create and restricts related-object querysets to the same customer.
Maximum string length:
255Required range:
-1000000000000000 < x < 1000000000000000MONTHLY- MonthlyQUARTERLY- QuarterlySEMI_ANNUAL- Semi-annualANNUAL- AnnualONE_TIME- One TimeCUSTOM- Custom
Available options:
MONTHLY, QUARTERLY, SEMI_ANNUAL, ANNUAL, ONE_TIME, CUSTOM Required range:
0 <= x <= 2147483647Rate card used to price usage reported against this line.
Maximum string length:
255Maximum string length:
3Required range:
-100000000000 < x < 100000000000Required range:
-1000000000000000 < x < 1000000000000000Required range:
-10000000000000 < x < 10000000000000When set, the line discount is this percentage of quantity × unit price and discount holds the resulting amount; null means the discount was entered as an amount.
Required range:
-1000 < x < 1000Required range:
-10000000000000 < x < 10000000000000Date the first invoice is issued; later invoices follow one billing cadence apart. Defaults to service start. Service periods stay on the contract's dates.
MONTHLY- MonthlyQUARTERLY- QuarterlySEMI_ANNUAL- Semi-annualANNUAL- AnnualONE_TIME- One TimeCUSTOM- Custom
Available options:
MONTHLY, QUARTERLY, SEMI_ANNUAL, ANNUAL, ONE_TIME, CUSTOM ADVANCE- In advance (start of period)ARREARS- In arrears (end of period)ON_DEMAND- On Demand (In arrears from usage)
Available options:
ADVANCE, ARREARS, ON_DEMAND FIXED_RATE- Fixed RateFIXED_QUANTITY- Fixed Quantity
Available options:
FIXED_RATE, FIXED_QUANTITY Required range:
0 <= x <= 2147483647