curl --request PATCH \
--url https://api.meetcampfire.com/rr/api/v1/transactions/{id} \
--header 'Content-Type: application/json' \
--data '
{
"tags": "<string>",
"source": "<string>",
"description": "<string>",
"external_id": "<string>",
"client_external_id": "<string>",
"contract_external_id": "<string>",
"contract_subscription_external_id": "<string>",
"product_external_id": "<string>",
"accounting_period": "2023-12-25",
"transaction_date": "2023-12-25",
"transaction_end_date": "2023-12-25",
"scheduled_invoice_date": "2023-12-25",
"billed_amount": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"recognized": 0,
"amount": 0,
"quantity": 0,
"rate": 0,
"discount": 0,
"refunds": 0,
"processing_fees": 0,
"platform_fees": 0,
"transfers": 0,
"tax": 0,
"balance_adjustment": 0,
"mrr": 0,
"renewall": true,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"is_migration_invoiced": true,
"entity": 123,
"client": 123,
"contract": 123,
"contract_subscription": 123,
"non_contract_subscription": 123,
"contract_usage": 123,
"contract_milestone": 123,
"non_contract_usage": 123,
"prepaid_commit": 123,
"reverses_revenue_transaction": 123,
"product": 123,
"product_bundle": 123,
"contract_product_bundle": 123,
"contract_bundle": 123,
"journal_entry": 123,
"invoice": 123,
"credit_memo": 123,
"department": 123,
"usage_tier": 123
}
'import requests
url = "https://api.meetcampfire.com/rr/api/v1/transactions/{id}"
payload = {
"tags": "<string>",
"source": "<string>",
"description": "<string>",
"external_id": "<string>",
"client_external_id": "<string>",
"contract_external_id": "<string>",
"contract_subscription_external_id": "<string>",
"product_external_id": "<string>",
"accounting_period": "2023-12-25",
"transaction_date": "2023-12-25",
"transaction_end_date": "2023-12-25",
"scheduled_invoice_date": "2023-12-25",
"billed_amount": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"recognized": 0,
"amount": 0,
"quantity": 0,
"rate": 0,
"discount": 0,
"refunds": 0,
"processing_fees": 0,
"platform_fees": 0,
"transfers": 0,
"tax": 0,
"balance_adjustment": 0,
"mrr": 0,
"renewall": True,
"tag_ids": [0],
"tag_group_ids": [0],
"is_migration_invoiced": True,
"entity": 123,
"client": 123,
"contract": 123,
"contract_subscription": 123,
"non_contract_subscription": 123,
"contract_usage": 123,
"contract_milestone": 123,
"non_contract_usage": 123,
"prepaid_commit": 123,
"reverses_revenue_transaction": 123,
"product": 123,
"product_bundle": 123,
"contract_product_bundle": 123,
"contract_bundle": 123,
"journal_entry": 123,
"invoice": 123,
"credit_memo": 123,
"department": 123,
"usage_tier": 123
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
tags: '<string>',
source: '<string>',
description: '<string>',
external_id: '<string>',
client_external_id: '<string>',
contract_external_id: '<string>',
contract_subscription_external_id: '<string>',
product_external_id: '<string>',
accounting_period: '2023-12-25',
transaction_date: '2023-12-25',
transaction_end_date: '2023-12-25',
scheduled_invoice_date: '2023-12-25',
billed_amount: 0,
currency: '<string>',
exchange_rate: 0,
exchange_rate_book: 0,
recognized: 0,
amount: 0,
quantity: 0,
rate: 0,
discount: 0,
refunds: 0,
processing_fees: 0,
platform_fees: 0,
transfers: 0,
tax: 0,
balance_adjustment: 0,
mrr: 0,
renewall: true,
tag_ids: [0],
tag_group_ids: [0],
is_migration_invoiced: true,
entity: 123,
client: 123,
contract: 123,
contract_subscription: 123,
non_contract_subscription: 123,
contract_usage: 123,
contract_milestone: 123,
non_contract_usage: 123,
prepaid_commit: 123,
reverses_revenue_transaction: 123,
product: 123,
product_bundle: 123,
contract_product_bundle: 123,
contract_bundle: 123,
journal_entry: 123,
invoice: 123,
credit_memo: 123,
department: 123,
usage_tier: 123
})
};
fetch('https://api.meetcampfire.com/rr/api/v1/transactions/{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/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'tags' => '<string>',
'source' => '<string>',
'description' => '<string>',
'external_id' => '<string>',
'client_external_id' => '<string>',
'contract_external_id' => '<string>',
'contract_subscription_external_id' => '<string>',
'product_external_id' => '<string>',
'accounting_period' => '2023-12-25',
'transaction_date' => '2023-12-25',
'transaction_end_date' => '2023-12-25',
'scheduled_invoice_date' => '2023-12-25',
'billed_amount' => 0,
'currency' => '<string>',
'exchange_rate' => 0,
'exchange_rate_book' => 0,
'recognized' => 0,
'amount' => 0,
'quantity' => 0,
'rate' => 0,
'discount' => 0,
'refunds' => 0,
'processing_fees' => 0,
'platform_fees' => 0,
'transfers' => 0,
'tax' => 0,
'balance_adjustment' => 0,
'mrr' => 0,
'renewall' => true,
'tag_ids' => [
0
],
'tag_group_ids' => [
0
],
'is_migration_invoiced' => true,
'entity' => 123,
'client' => 123,
'contract' => 123,
'contract_subscription' => 123,
'non_contract_subscription' => 123,
'contract_usage' => 123,
'contract_milestone' => 123,
'non_contract_usage' => 123,
'prepaid_commit' => 123,
'reverses_revenue_transaction' => 123,
'product' => 123,
'product_bundle' => 123,
'contract_product_bundle' => 123,
'contract_bundle' => 123,
'journal_entry' => 123,
'invoice' => 123,
'credit_memo' => 123,
'department' => 123,
'usage_tier' => 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/transactions/{id}"
payload := strings.NewReader("{\n \"tags\": \"<string>\",\n \"source\": \"<string>\",\n \"description\": \"<string>\",\n \"external_id\": \"<string>\",\n \"client_external_id\": \"<string>\",\n \"contract_external_id\": \"<string>\",\n \"contract_subscription_external_id\": \"<string>\",\n \"product_external_id\": \"<string>\",\n \"accounting_period\": \"2023-12-25\",\n \"transaction_date\": \"2023-12-25\",\n \"transaction_end_date\": \"2023-12-25\",\n \"scheduled_invoice_date\": \"2023-12-25\",\n \"billed_amount\": 0,\n \"currency\": \"<string>\",\n \"exchange_rate\": 0,\n \"exchange_rate_book\": 0,\n \"recognized\": 0,\n \"amount\": 0,\n \"quantity\": 0,\n \"rate\": 0,\n \"discount\": 0,\n \"refunds\": 0,\n \"processing_fees\": 0,\n \"platform_fees\": 0,\n \"transfers\": 0,\n \"tax\": 0,\n \"balance_adjustment\": 0,\n \"mrr\": 0,\n \"renewall\": true,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"is_migration_invoiced\": true,\n \"entity\": 123,\n \"client\": 123,\n \"contract\": 123,\n \"contract_subscription\": 123,\n \"non_contract_subscription\": 123,\n \"contract_usage\": 123,\n \"contract_milestone\": 123,\n \"non_contract_usage\": 123,\n \"prepaid_commit\": 123,\n \"reverses_revenue_transaction\": 123,\n \"product\": 123,\n \"product_bundle\": 123,\n \"contract_product_bundle\": 123,\n \"contract_bundle\": 123,\n \"journal_entry\": 123,\n \"invoice\": 123,\n \"credit_memo\": 123,\n \"department\": 123,\n \"usage_tier\": 123\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.meetcampfire.com/rr/api/v1/transactions/{id}")
.header("Content-Type", "application/json")
.body("{\n \"tags\": \"<string>\",\n \"source\": \"<string>\",\n \"description\": \"<string>\",\n \"external_id\": \"<string>\",\n \"client_external_id\": \"<string>\",\n \"contract_external_id\": \"<string>\",\n \"contract_subscription_external_id\": \"<string>\",\n \"product_external_id\": \"<string>\",\n \"accounting_period\": \"2023-12-25\",\n \"transaction_date\": \"2023-12-25\",\n \"transaction_end_date\": \"2023-12-25\",\n \"scheduled_invoice_date\": \"2023-12-25\",\n \"billed_amount\": 0,\n \"currency\": \"<string>\",\n \"exchange_rate\": 0,\n \"exchange_rate_book\": 0,\n \"recognized\": 0,\n \"amount\": 0,\n \"quantity\": 0,\n \"rate\": 0,\n \"discount\": 0,\n \"refunds\": 0,\n \"processing_fees\": 0,\n \"platform_fees\": 0,\n \"transfers\": 0,\n \"tax\": 0,\n \"balance_adjustment\": 0,\n \"mrr\": 0,\n \"renewall\": true,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"is_migration_invoiced\": true,\n \"entity\": 123,\n \"client\": 123,\n \"contract\": 123,\n \"contract_subscription\": 123,\n \"non_contract_subscription\": 123,\n \"contract_usage\": 123,\n \"contract_milestone\": 123,\n \"non_contract_usage\": 123,\n \"prepaid_commit\": 123,\n \"reverses_revenue_transaction\": 123,\n \"product\": 123,\n \"product_bundle\": 123,\n \"contract_product_bundle\": 123,\n \"contract_bundle\": 123,\n \"journal_entry\": 123,\n \"invoice\": 123,\n \"credit_memo\": 123,\n \"department\": 123,\n \"usage_tier\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": \"<string>\",\n \"source\": \"<string>\",\n \"description\": \"<string>\",\n \"external_id\": \"<string>\",\n \"client_external_id\": \"<string>\",\n \"contract_external_id\": \"<string>\",\n \"contract_subscription_external_id\": \"<string>\",\n \"product_external_id\": \"<string>\",\n \"accounting_period\": \"2023-12-25\",\n \"transaction_date\": \"2023-12-25\",\n \"transaction_end_date\": \"2023-12-25\",\n \"scheduled_invoice_date\": \"2023-12-25\",\n \"billed_amount\": 0,\n \"currency\": \"<string>\",\n \"exchange_rate\": 0,\n \"exchange_rate_book\": 0,\n \"recognized\": 0,\n \"amount\": 0,\n \"quantity\": 0,\n \"rate\": 0,\n \"discount\": 0,\n \"refunds\": 0,\n \"processing_fees\": 0,\n \"platform_fees\": 0,\n \"transfers\": 0,\n \"tax\": 0,\n \"balance_adjustment\": 0,\n \"mrr\": 0,\n \"renewall\": true,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"is_migration_invoiced\": true,\n \"entity\": 123,\n \"client\": 123,\n \"contract\": 123,\n \"contract_subscription\": 123,\n \"non_contract_subscription\": 123,\n \"contract_usage\": 123,\n \"contract_milestone\": 123,\n \"non_contract_usage\": 123,\n \"prepaid_commit\": 123,\n \"reverses_revenue_transaction\": 123,\n \"product\": 123,\n \"product_bundle\": 123,\n \"contract_product_bundle\": 123,\n \"contract_bundle\": 123,\n \"journal_entry\": 123,\n \"invoice\": 123,\n \"credit_memo\": 123,\n \"department\": 123,\n \"usage_tier\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"entity_name": "<string>",
"entity_currency": "<string>",
"client_name": "<string>",
"client_campfire_id": "<string>",
"contract_name": "<string>",
"contract_status": "<string>",
"product_name": "<string>",
"product_bundle_name": "<string>",
"product_is_taxable": true,
"contract_identifier": "<string>",
"client_identifier": "<string>",
"product_identifier": "<string>",
"gross_amount": "<string>",
"invoice_number": "<string>",
"invoice_date": "<string>",
"invoice_payment_status": "<string>",
"invoice_voided_date": "2023-12-25",
"credit_memo_number": "<string>",
"credit_memo_date": "2023-12-25",
"credit_memo_voided_date": "2023-12-25",
"credit_memo_application_status": "<string>",
"revenue_type": "<string>",
"journal_entry_order": "<string>",
"contract_subscription_notes": "<string>",
"subscription_discount": 0,
"department_name": "<string>",
"parent_department_name": "<string>",
"parent_department": 123,
"usage_tier_name": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"anrok_item_id": "<string>",
"sphere_item_id": "<string>",
"producer": "<string>",
"warehouse_row_key": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"funding_revenue_transaction": 123,
"tags": "<string>",
"source": "<string>",
"description": "<string>",
"external_id": "<string>",
"client_external_id": "<string>",
"contract_external_id": "<string>",
"contract_subscription_external_id": "<string>",
"product_external_id": "<string>",
"accounting_period": "2023-12-25",
"transaction_date": "2023-12-25",
"transaction_end_date": "2023-12-25",
"scheduled_invoice_date": "2023-12-25",
"billed_amount": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"recognized": 0,
"amount": 0,
"quantity": 0,
"rate": 0,
"discount": 0,
"refunds": 0,
"processing_fees": 0,
"platform_fees": 0,
"transfers": 0,
"tax": 0,
"balance_adjustment": 0,
"mrr": 0,
"renewall": true,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"is_migration_invoiced": true,
"entity": 123,
"client": 123,
"contract": 123,
"contract_subscription": 123,
"non_contract_subscription": 123,
"contract_usage": 123,
"contract_milestone": 123,
"non_contract_usage": 123,
"prepaid_commit": 123,
"reverses_revenue_transaction": 123,
"product": 123,
"product_bundle": 123,
"contract_product_bundle": 123,
"contract_bundle": 123,
"journal_entry": 123,
"invoice": 123,
"credit_memo": 123,
"department": 123,
"usage_tier": 123
}Partial Update Revenue Transaction
curl --request PATCH \
--url https://api.meetcampfire.com/rr/api/v1/transactions/{id} \
--header 'Content-Type: application/json' \
--data '
{
"tags": "<string>",
"source": "<string>",
"description": "<string>",
"external_id": "<string>",
"client_external_id": "<string>",
"contract_external_id": "<string>",
"contract_subscription_external_id": "<string>",
"product_external_id": "<string>",
"accounting_period": "2023-12-25",
"transaction_date": "2023-12-25",
"transaction_end_date": "2023-12-25",
"scheduled_invoice_date": "2023-12-25",
"billed_amount": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"recognized": 0,
"amount": 0,
"quantity": 0,
"rate": 0,
"discount": 0,
"refunds": 0,
"processing_fees": 0,
"platform_fees": 0,
"transfers": 0,
"tax": 0,
"balance_adjustment": 0,
"mrr": 0,
"renewall": true,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"is_migration_invoiced": true,
"entity": 123,
"client": 123,
"contract": 123,
"contract_subscription": 123,
"non_contract_subscription": 123,
"contract_usage": 123,
"contract_milestone": 123,
"non_contract_usage": 123,
"prepaid_commit": 123,
"reverses_revenue_transaction": 123,
"product": 123,
"product_bundle": 123,
"contract_product_bundle": 123,
"contract_bundle": 123,
"journal_entry": 123,
"invoice": 123,
"credit_memo": 123,
"department": 123,
"usage_tier": 123
}
'import requests
url = "https://api.meetcampfire.com/rr/api/v1/transactions/{id}"
payload = {
"tags": "<string>",
"source": "<string>",
"description": "<string>",
"external_id": "<string>",
"client_external_id": "<string>",
"contract_external_id": "<string>",
"contract_subscription_external_id": "<string>",
"product_external_id": "<string>",
"accounting_period": "2023-12-25",
"transaction_date": "2023-12-25",
"transaction_end_date": "2023-12-25",
"scheduled_invoice_date": "2023-12-25",
"billed_amount": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"recognized": 0,
"amount": 0,
"quantity": 0,
"rate": 0,
"discount": 0,
"refunds": 0,
"processing_fees": 0,
"platform_fees": 0,
"transfers": 0,
"tax": 0,
"balance_adjustment": 0,
"mrr": 0,
"renewall": True,
"tag_ids": [0],
"tag_group_ids": [0],
"is_migration_invoiced": True,
"entity": 123,
"client": 123,
"contract": 123,
"contract_subscription": 123,
"non_contract_subscription": 123,
"contract_usage": 123,
"contract_milestone": 123,
"non_contract_usage": 123,
"prepaid_commit": 123,
"reverses_revenue_transaction": 123,
"product": 123,
"product_bundle": 123,
"contract_product_bundle": 123,
"contract_bundle": 123,
"journal_entry": 123,
"invoice": 123,
"credit_memo": 123,
"department": 123,
"usage_tier": 123
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
tags: '<string>',
source: '<string>',
description: '<string>',
external_id: '<string>',
client_external_id: '<string>',
contract_external_id: '<string>',
contract_subscription_external_id: '<string>',
product_external_id: '<string>',
accounting_period: '2023-12-25',
transaction_date: '2023-12-25',
transaction_end_date: '2023-12-25',
scheduled_invoice_date: '2023-12-25',
billed_amount: 0,
currency: '<string>',
exchange_rate: 0,
exchange_rate_book: 0,
recognized: 0,
amount: 0,
quantity: 0,
rate: 0,
discount: 0,
refunds: 0,
processing_fees: 0,
platform_fees: 0,
transfers: 0,
tax: 0,
balance_adjustment: 0,
mrr: 0,
renewall: true,
tag_ids: [0],
tag_group_ids: [0],
is_migration_invoiced: true,
entity: 123,
client: 123,
contract: 123,
contract_subscription: 123,
non_contract_subscription: 123,
contract_usage: 123,
contract_milestone: 123,
non_contract_usage: 123,
prepaid_commit: 123,
reverses_revenue_transaction: 123,
product: 123,
product_bundle: 123,
contract_product_bundle: 123,
contract_bundle: 123,
journal_entry: 123,
invoice: 123,
credit_memo: 123,
department: 123,
usage_tier: 123
})
};
fetch('https://api.meetcampfire.com/rr/api/v1/transactions/{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/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'tags' => '<string>',
'source' => '<string>',
'description' => '<string>',
'external_id' => '<string>',
'client_external_id' => '<string>',
'contract_external_id' => '<string>',
'contract_subscription_external_id' => '<string>',
'product_external_id' => '<string>',
'accounting_period' => '2023-12-25',
'transaction_date' => '2023-12-25',
'transaction_end_date' => '2023-12-25',
'scheduled_invoice_date' => '2023-12-25',
'billed_amount' => 0,
'currency' => '<string>',
'exchange_rate' => 0,
'exchange_rate_book' => 0,
'recognized' => 0,
'amount' => 0,
'quantity' => 0,
'rate' => 0,
'discount' => 0,
'refunds' => 0,
'processing_fees' => 0,
'platform_fees' => 0,
'transfers' => 0,
'tax' => 0,
'balance_adjustment' => 0,
'mrr' => 0,
'renewall' => true,
'tag_ids' => [
0
],
'tag_group_ids' => [
0
],
'is_migration_invoiced' => true,
'entity' => 123,
'client' => 123,
'contract' => 123,
'contract_subscription' => 123,
'non_contract_subscription' => 123,
'contract_usage' => 123,
'contract_milestone' => 123,
'non_contract_usage' => 123,
'prepaid_commit' => 123,
'reverses_revenue_transaction' => 123,
'product' => 123,
'product_bundle' => 123,
'contract_product_bundle' => 123,
'contract_bundle' => 123,
'journal_entry' => 123,
'invoice' => 123,
'credit_memo' => 123,
'department' => 123,
'usage_tier' => 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/transactions/{id}"
payload := strings.NewReader("{\n \"tags\": \"<string>\",\n \"source\": \"<string>\",\n \"description\": \"<string>\",\n \"external_id\": \"<string>\",\n \"client_external_id\": \"<string>\",\n \"contract_external_id\": \"<string>\",\n \"contract_subscription_external_id\": \"<string>\",\n \"product_external_id\": \"<string>\",\n \"accounting_period\": \"2023-12-25\",\n \"transaction_date\": \"2023-12-25\",\n \"transaction_end_date\": \"2023-12-25\",\n \"scheduled_invoice_date\": \"2023-12-25\",\n \"billed_amount\": 0,\n \"currency\": \"<string>\",\n \"exchange_rate\": 0,\n \"exchange_rate_book\": 0,\n \"recognized\": 0,\n \"amount\": 0,\n \"quantity\": 0,\n \"rate\": 0,\n \"discount\": 0,\n \"refunds\": 0,\n \"processing_fees\": 0,\n \"platform_fees\": 0,\n \"transfers\": 0,\n \"tax\": 0,\n \"balance_adjustment\": 0,\n \"mrr\": 0,\n \"renewall\": true,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"is_migration_invoiced\": true,\n \"entity\": 123,\n \"client\": 123,\n \"contract\": 123,\n \"contract_subscription\": 123,\n \"non_contract_subscription\": 123,\n \"contract_usage\": 123,\n \"contract_milestone\": 123,\n \"non_contract_usage\": 123,\n \"prepaid_commit\": 123,\n \"reverses_revenue_transaction\": 123,\n \"product\": 123,\n \"product_bundle\": 123,\n \"contract_product_bundle\": 123,\n \"contract_bundle\": 123,\n \"journal_entry\": 123,\n \"invoice\": 123,\n \"credit_memo\": 123,\n \"department\": 123,\n \"usage_tier\": 123\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.meetcampfire.com/rr/api/v1/transactions/{id}")
.header("Content-Type", "application/json")
.body("{\n \"tags\": \"<string>\",\n \"source\": \"<string>\",\n \"description\": \"<string>\",\n \"external_id\": \"<string>\",\n \"client_external_id\": \"<string>\",\n \"contract_external_id\": \"<string>\",\n \"contract_subscription_external_id\": \"<string>\",\n \"product_external_id\": \"<string>\",\n \"accounting_period\": \"2023-12-25\",\n \"transaction_date\": \"2023-12-25\",\n \"transaction_end_date\": \"2023-12-25\",\n \"scheduled_invoice_date\": \"2023-12-25\",\n \"billed_amount\": 0,\n \"currency\": \"<string>\",\n \"exchange_rate\": 0,\n \"exchange_rate_book\": 0,\n \"recognized\": 0,\n \"amount\": 0,\n \"quantity\": 0,\n \"rate\": 0,\n \"discount\": 0,\n \"refunds\": 0,\n \"processing_fees\": 0,\n \"platform_fees\": 0,\n \"transfers\": 0,\n \"tax\": 0,\n \"balance_adjustment\": 0,\n \"mrr\": 0,\n \"renewall\": true,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"is_migration_invoiced\": true,\n \"entity\": 123,\n \"client\": 123,\n \"contract\": 123,\n \"contract_subscription\": 123,\n \"non_contract_subscription\": 123,\n \"contract_usage\": 123,\n \"contract_milestone\": 123,\n \"non_contract_usage\": 123,\n \"prepaid_commit\": 123,\n \"reverses_revenue_transaction\": 123,\n \"product\": 123,\n \"product_bundle\": 123,\n \"contract_product_bundle\": 123,\n \"contract_bundle\": 123,\n \"journal_entry\": 123,\n \"invoice\": 123,\n \"credit_memo\": 123,\n \"department\": 123,\n \"usage_tier\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/rr/api/v1/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": \"<string>\",\n \"source\": \"<string>\",\n \"description\": \"<string>\",\n \"external_id\": \"<string>\",\n \"client_external_id\": \"<string>\",\n \"contract_external_id\": \"<string>\",\n \"contract_subscription_external_id\": \"<string>\",\n \"product_external_id\": \"<string>\",\n \"accounting_period\": \"2023-12-25\",\n \"transaction_date\": \"2023-12-25\",\n \"transaction_end_date\": \"2023-12-25\",\n \"scheduled_invoice_date\": \"2023-12-25\",\n \"billed_amount\": 0,\n \"currency\": \"<string>\",\n \"exchange_rate\": 0,\n \"exchange_rate_book\": 0,\n \"recognized\": 0,\n \"amount\": 0,\n \"quantity\": 0,\n \"rate\": 0,\n \"discount\": 0,\n \"refunds\": 0,\n \"processing_fees\": 0,\n \"platform_fees\": 0,\n \"transfers\": 0,\n \"tax\": 0,\n \"balance_adjustment\": 0,\n \"mrr\": 0,\n \"renewall\": true,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"is_migration_invoiced\": true,\n \"entity\": 123,\n \"client\": 123,\n \"contract\": 123,\n \"contract_subscription\": 123,\n \"non_contract_subscription\": 123,\n \"contract_usage\": 123,\n \"contract_milestone\": 123,\n \"non_contract_usage\": 123,\n \"prepaid_commit\": 123,\n \"reverses_revenue_transaction\": 123,\n \"product\": 123,\n \"product_bundle\": 123,\n \"contract_product_bundle\": 123,\n \"contract_bundle\": 123,\n \"journal_entry\": 123,\n \"invoice\": 123,\n \"credit_memo\": 123,\n \"department\": 123,\n \"usage_tier\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"entity_name": "<string>",
"entity_currency": "<string>",
"client_name": "<string>",
"client_campfire_id": "<string>",
"contract_name": "<string>",
"contract_status": "<string>",
"product_name": "<string>",
"product_bundle_name": "<string>",
"product_is_taxable": true,
"contract_identifier": "<string>",
"client_identifier": "<string>",
"product_identifier": "<string>",
"gross_amount": "<string>",
"invoice_number": "<string>",
"invoice_date": "<string>",
"invoice_payment_status": "<string>",
"invoice_voided_date": "2023-12-25",
"credit_memo_number": "<string>",
"credit_memo_date": "2023-12-25",
"credit_memo_voided_date": "2023-12-25",
"credit_memo_application_status": "<string>",
"revenue_type": "<string>",
"journal_entry_order": "<string>",
"contract_subscription_notes": "<string>",
"subscription_discount": 0,
"department_name": "<string>",
"parent_department_name": "<string>",
"parent_department": 123,
"usage_tier_name": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"anrok_item_id": "<string>",
"sphere_item_id": "<string>",
"producer": "<string>",
"warehouse_row_key": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"funding_revenue_transaction": 123,
"tags": "<string>",
"source": "<string>",
"description": "<string>",
"external_id": "<string>",
"client_external_id": "<string>",
"contract_external_id": "<string>",
"contract_subscription_external_id": "<string>",
"product_external_id": "<string>",
"accounting_period": "2023-12-25",
"transaction_date": "2023-12-25",
"transaction_end_date": "2023-12-25",
"scheduled_invoice_date": "2023-12-25",
"billed_amount": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"recognized": 0,
"amount": 0,
"quantity": 0,
"rate": 0,
"discount": 0,
"refunds": 0,
"processing_fees": 0,
"platform_fees": 0,
"transfers": 0,
"tax": 0,
"balance_adjustment": 0,
"mrr": 0,
"renewall": true,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"is_migration_invoiced": true,
"entity": 123,
"client": 123,
"contract": 123,
"contract_subscription": 123,
"non_contract_subscription": 123,
"contract_usage": 123,
"contract_milestone": 123,
"non_contract_usage": 123,
"prepaid_commit": 123,
"reverses_revenue_transaction": 123,
"product": 123,
"product_bundle": 123,
"contract_product_bundle": 123,
"contract_bundle": 123,
"journal_entry": 123,
"invoice": 123,
"credit_memo": 123,
"department": 123,
"usage_tier": 123
}Path Parameters
Body
250250250250250250Amount to invoice for this period when it differs from the recognized amount, as it does once catch-up moves revenue between periods. Null means invoice the recognized amount.
-1000000000000000000 < x < 10000000000000000003-100000000000000 < x < 100000000000000-100000000000000 < x < 100000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-100000000000000 < x < 100000000000000-10000000000000 < x < 10000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000Invoice starting balance or other balance adjustments (e.g., previous balance applied to this transaction)
-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-9223372036854776000 <= x <= 9223372036854776000-9223372036854776000 <= x <= 9223372036854776000Marked as invoiced during migration. Does not create GL entries or AR.
Scheduled row this negative row cancels when a contract is terminated.
Reference to contract-specific editable product bundle allocation
Response
-10000000000000 < x < 10000000000000Lane that owns this row's money and date fields. NULL for every pre-loader producer.
Identity of the warehouse row this transaction projects, as <connection_id>:<row_key>. Distinct from external_id, which holds the bare Stripe object id that other lanes resolve back to Stripe by prefix. NULL for every producer except the Stripe top-down loader.
Immutable prepaid funding installment allocated to this recognition-only row.
250250250250250250Amount to invoice for this period when it differs from the recognized amount, as it does once catch-up moves revenue between periods. Null means invoice the recognized amount.
-1000000000000000000 < x < 10000000000000000003-100000000000000 < x < 100000000000000-100000000000000 < x < 100000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-100000000000000 < x < 100000000000000-10000000000000 < x < 10000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000Invoice starting balance or other balance adjustments (e.g., previous balance applied to this transaction)
-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-9223372036854776000 <= x <= 9223372036854776000-9223372036854776000 <= x <= 9223372036854776000Marked as invoiced during migration. Does not create GL entries or AR.
Scheduled row this negative row cancels when a contract is terminated.
Reference to contract-specific editable product bundle allocation