Update Contract Milestone
curl --request PUT \
--url https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id} \
--header 'Content-Type: application/json' \
--data '
{
"milestone_name": "<string>",
"milestone_date": "2023-12-25",
"amount": 0,
"contract": 123,
"first_invoice_date": "2023-12-25",
"billing_payment_term": 123,
"product": 123,
"quantity": 0,
"rate": 0,
"description": "<string>",
"department": 123
}
'import requests
url = "https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}"
payload = {
"milestone_name": "<string>",
"milestone_date": "2023-12-25",
"amount": 0,
"contract": 123,
"first_invoice_date": "2023-12-25",
"billing_payment_term": 123,
"product": 123,
"quantity": 0,
"rate": 0,
"description": "<string>",
"department": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
milestone_name: '<string>',
milestone_date: '2023-12-25',
amount: 0,
contract: 123,
first_invoice_date: '2023-12-25',
billing_payment_term: 123,
product: 123,
quantity: 0,
rate: 0,
description: '<string>',
department: 123
})
};
fetch('https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{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/rr/api/v1/contracts/{contract_id}/milestones/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'milestone_name' => '<string>',
'milestone_date' => '2023-12-25',
'amount' => 0,
'contract' => 123,
'first_invoice_date' => '2023-12-25',
'billing_payment_term' => 123,
'product' => 123,
'quantity' => 0,
'rate' => 0,
'description' => '<string>',
'department' => 123
]),
CURLOPT_HTTPHEADER => [
"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.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}"
payload := strings.NewReader("{\n \"milestone_name\": \"<string>\",\n \"milestone_date\": \"2023-12-25\",\n \"amount\": 0,\n \"contract\": 123,\n \"first_invoice_date\": \"2023-12-25\",\n \"billing_payment_term\": 123,\n \"product\": 123,\n \"quantity\": 0,\n \"rate\": 0,\n \"description\": \"<string>\",\n \"department\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}")
.header("Content-Type", "application/json")
.body("{\n \"milestone_name\": \"<string>\",\n \"milestone_date\": \"2023-12-25\",\n \"amount\": 0,\n \"contract\": 123,\n \"first_invoice_date\": \"2023-12-25\",\n \"billing_payment_term\": 123,\n \"product\": 123,\n \"quantity\": 0,\n \"rate\": 0,\n \"description\": \"<string>\",\n \"department\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"milestone_name\": \"<string>\",\n \"milestone_date\": \"2023-12-25\",\n \"amount\": 0,\n \"contract\": 123,\n \"first_invoice_date\": \"2023-12-25\",\n \"billing_payment_term\": 123,\n \"product\": 123,\n \"quantity\": 0,\n \"rate\": 0,\n \"description\": \"<string>\",\n \"department\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"customer": 123,
"product_bundle": "<string>",
"contract_product_bundle": {
"id": 123,
"source_bundle_name": "<string>",
"total_amount": 0,
"lines": [
{
"id": 123,
"product": 123,
"product_name": "<string>",
"amount": 0,
"percentage": "<string>",
"original_percentage": 0
}
],
"source_bundle": 123,
"currency": "<string>"
},
"product_name": "<string>",
"product_bundle_name": "<string>",
"milestone_name": "<string>",
"milestone_date": "2023-12-25",
"amount": 0,
"department_name": "<string>",
"tags": [
{}
],
"revenue_transaction_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"contract": 123,
"billing_cadence": "one_time",
"billing_timing": "advance",
"first_invoice_date": "2023-12-25",
"billing_payment_term": 123,
"product": 123,
"quantity": 0,
"rate": 0,
"description": "<string>",
"department": 123
}Revenue Recognition
Update Contract Milestone
PUT
/
rr
/
api
/
v1
/
contracts
/
{contract_id}
/
milestones
/
{id}
Update Contract Milestone
curl --request PUT \
--url https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id} \
--header 'Content-Type: application/json' \
--data '
{
"milestone_name": "<string>",
"milestone_date": "2023-12-25",
"amount": 0,
"contract": 123,
"first_invoice_date": "2023-12-25",
"billing_payment_term": 123,
"product": 123,
"quantity": 0,
"rate": 0,
"description": "<string>",
"department": 123
}
'import requests
url = "https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}"
payload = {
"milestone_name": "<string>",
"milestone_date": "2023-12-25",
"amount": 0,
"contract": 123,
"first_invoice_date": "2023-12-25",
"billing_payment_term": 123,
"product": 123,
"quantity": 0,
"rate": 0,
"description": "<string>",
"department": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
milestone_name: '<string>',
milestone_date: '2023-12-25',
amount: 0,
contract: 123,
first_invoice_date: '2023-12-25',
billing_payment_term: 123,
product: 123,
quantity: 0,
rate: 0,
description: '<string>',
department: 123
})
};
fetch('https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{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/rr/api/v1/contracts/{contract_id}/milestones/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'milestone_name' => '<string>',
'milestone_date' => '2023-12-25',
'amount' => 0,
'contract' => 123,
'first_invoice_date' => '2023-12-25',
'billing_payment_term' => 123,
'product' => 123,
'quantity' => 0,
'rate' => 0,
'description' => '<string>',
'department' => 123
]),
CURLOPT_HTTPHEADER => [
"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.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}"
payload := strings.NewReader("{\n \"milestone_name\": \"<string>\",\n \"milestone_date\": \"2023-12-25\",\n \"amount\": 0,\n \"contract\": 123,\n \"first_invoice_date\": \"2023-12-25\",\n \"billing_payment_term\": 123,\n \"product\": 123,\n \"quantity\": 0,\n \"rate\": 0,\n \"description\": \"<string>\",\n \"department\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}")
.header("Content-Type", "application/json")
.body("{\n \"milestone_name\": \"<string>\",\n \"milestone_date\": \"2023-12-25\",\n \"amount\": 0,\n \"contract\": 123,\n \"first_invoice_date\": \"2023-12-25\",\n \"billing_payment_term\": 123,\n \"product\": 123,\n \"quantity\": 0,\n \"rate\": 0,\n \"description\": \"<string>\",\n \"department\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/contracts/{contract_id}/milestones/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"milestone_name\": \"<string>\",\n \"milestone_date\": \"2023-12-25\",\n \"amount\": 0,\n \"contract\": 123,\n \"first_invoice_date\": \"2023-12-25\",\n \"billing_payment_term\": 123,\n \"product\": 123,\n \"quantity\": 0,\n \"rate\": 0,\n \"description\": \"<string>\",\n \"department\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"customer": 123,
"product_bundle": "<string>",
"contract_product_bundle": {
"id": 123,
"source_bundle_name": "<string>",
"total_amount": 0,
"lines": [
{
"id": 123,
"product": 123,
"product_name": "<string>",
"amount": 0,
"percentage": "<string>",
"original_percentage": 0
}
],
"source_bundle": 123,
"currency": "<string>"
},
"product_name": "<string>",
"product_bundle_name": "<string>",
"milestone_name": "<string>",
"milestone_date": "2023-12-25",
"amount": 0,
"department_name": "<string>",
"tags": [
{}
],
"revenue_transaction_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"contract": 123,
"billing_cadence": "one_time",
"billing_timing": "advance",
"first_invoice_date": "2023-12-25",
"billing_payment_term": 123,
"product": 123,
"quantity": 0,
"rate": 0,
"description": "<string>",
"department": 123
}Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Maximum string length:
250Required range:
-1000000000000000000 < x < 1000000000000000000one_time- One timemonthly- Monthlyquarterly- Quarterlybiannual- Semiannualannual- Annual
Available options:
one_time, monthly, quarterly, biannual, annual advance- In advancearrears- In arrears
Available options:
advance, arrears Required range:
-10000000000000000 < x < 10000000000000000Required range:
-10000000000000 < x < 10000000000000Response
200 - application/json
Read-only serializer for ContractProductBundle in milestone responses.
Show child attributes
Show child attributes
Maximum string length:
250Required range:
-1000000000000000000 < x < 1000000000000000000Show child attributes
Show child attributes
one_time- One timemonthly- Monthlyquarterly- Quarterlybiannual- Semiannualannual- Annual
Available options:
one_time, monthly, quarterly, biannual, annual advance- In advancearrears- In arrears
Available options:
advance, arrears Required range:
-10000000000000000 < x < 10000000000000000Required range:
-10000000000000 < x < 10000000000000