curl --request POST \
--url https://api.meetcampfire.com/rr/api/v1/contracts \
--header 'Content-Type: application/json' \
--data '
{
"client": 101,
"entity": 11,
"deal_name": "Platform Annual - Fixed Term",
"contract_start_date": "2026-01-01",
"contract_end_date": "2026-12-31",
"currency": "USD",
"billing_frequency": "annual",
"is_evergreen": false,
"auto_renew": false,
"auto_send_invoices": false,
"skip_evergreen_invoice_generation": false
}
'{
"id": 123,
"entity_name": "<string>",
"client_name": "<string>",
"client_campfire_id": "<string>",
"client_terms": "<string>",
"default_payment_term_name": "<string>",
"department_name": "<string>",
"parent_department_name": "<string>",
"parent_department": 123,
"total_revenue": 0,
"total_mrr": 0,
"total_deferred_revenue": 0,
"entity_currency": "<string>",
"attachments": [
{
"id": 123,
"customer": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"created_by_name": "<string>",
"created_by_email": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"s3_path": "<string>",
"app": "<string>",
"model": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"object_id": 1073741823
}
],
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": true,
"deleted_at": "2023-11-07T05:31:56Z",
"has_invoices": false,
"has_journal_entries": false,
"has_credit_memos": false,
"monthly_billing_alignment_locked": true,
"effective_end_date": "2023-12-25",
"working_end_date": "2023-12-25",
"evergreen_locked_date": "2023-12-25",
"tax_exempt": true,
"search_vector": "<string>",
"search_text": "<string>",
"salesforce_opportunity_id": "<string>",
"stripe_subscription_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"tags": "<string>",
"currency": "USD",
"contract_end_date": "2023-12-25",
"termination_date": "2023-12-25",
"is_evergreen": false,
"auto_send_invoices": false,
"skip_evergreen_invoice_generation": false,
"auto_apply_customer_stripe_config_to_invoices": false,
"exclude_from_tax_connection": false,
"usage_tiers": "<string>",
"invoice_email": "jsmith@example.com",
"billing_frequency": "monthly",
"monthly_billing_period_alignment": "anniversary",
"deal_name": "<string>",
"deal_id": "<string>",
"consultant": "<string>",
"closed_date": "2023-12-25",
"total_contract_value": 0,
"contract_start_date": "2023-12-25",
"exchange_rate": 0,
"exchange_rate_book": 0,
"crm_link": "<string>",
"contract_link": "<string>",
"status": "ACTIVE",
"source": "SALESFORCE",
"source_deal_data": null,
"auto_renew": true,
"auto_renew_duration": -1,
"auto_renew_invoice": true,
"evergreen_date_boundary_mode": "CONTRACT_PERIOD",
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"minimum_monthly_commitment_amount": 0,
"minimum_monthly_commitment_quantity": 0,
"purchase_order_number": "<string>",
"billing_address": "<string>",
"billing_addressee": "<string>",
"shipping_address": "<string>",
"shipping_addressee": "<string>",
"invoice_cc_emails": "<string>",
"vat_number": "<string>",
"entity": 123,
"client": 123,
"default_payment_term": 123,
"department": 123,
"journal_entries": [
123
]
}Create Contract
Create a new contract.
Evergreen vs standard:
- Standard contract: set is_evergreen=false and provide a fixed contract_end_date.
- Evergreen contract: set is_evergreen=true and leave contract_end_date as null. The system manages a rolling effective_end_date, exposes working_end_date for downstream usage, and returns evergreen_locked_date for immutable historical boundary rules.
Additional evergreen constraints:
- is_evergreen and auto_renew cannot both be true.
- billing_frequency is required for evergreen behavior.
- default_payment_term is not implemented yet for standard contracts. It can currently be set only for Evergreen contracts and is applied to their automatically generated invoices. Other contract invoice flows retain their existing payment-term selection behavior; support may be extended to additional contract types in the future.
- When default_payment_term is omitted or null, automatically generated Evergreen invoices retain the existing Net 30 fallback.
- skip_evergreen_invoice_generation is creation-time only and cannot be changed on existing contracts.
- skip_evergreen_invoice_generation=true skips only Campfire’s auto-generated evergreen invoices. Revenue transactions still generate.
curl --request POST \
--url https://api.meetcampfire.com/rr/api/v1/contracts \
--header 'Content-Type: application/json' \
--data '
{
"client": 101,
"entity": 11,
"deal_name": "Platform Annual - Fixed Term",
"contract_start_date": "2026-01-01",
"contract_end_date": "2026-12-31",
"currency": "USD",
"billing_frequency": "annual",
"is_evergreen": false,
"auto_renew": false,
"auto_send_invoices": false,
"skip_evergreen_invoice_generation": false
}
'{
"id": 123,
"entity_name": "<string>",
"client_name": "<string>",
"client_campfire_id": "<string>",
"client_terms": "<string>",
"default_payment_term_name": "<string>",
"department_name": "<string>",
"parent_department_name": "<string>",
"parent_department": 123,
"total_revenue": 0,
"total_mrr": 0,
"total_deferred_revenue": 0,
"entity_currency": "<string>",
"attachments": [
{
"id": 123,
"customer": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"created_by_name": "<string>",
"created_by_email": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"s3_path": "<string>",
"app": "<string>",
"model": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"object_id": 1073741823
}
],
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": true,
"deleted_at": "2023-11-07T05:31:56Z",
"has_invoices": false,
"has_journal_entries": false,
"has_credit_memos": false,
"monthly_billing_alignment_locked": true,
"effective_end_date": "2023-12-25",
"working_end_date": "2023-12-25",
"evergreen_locked_date": "2023-12-25",
"tax_exempt": true,
"search_vector": "<string>",
"search_text": "<string>",
"salesforce_opportunity_id": "<string>",
"stripe_subscription_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"tags": "<string>",
"currency": "USD",
"contract_end_date": "2023-12-25",
"termination_date": "2023-12-25",
"is_evergreen": false,
"auto_send_invoices": false,
"skip_evergreen_invoice_generation": false,
"auto_apply_customer_stripe_config_to_invoices": false,
"exclude_from_tax_connection": false,
"usage_tiers": "<string>",
"invoice_email": "jsmith@example.com",
"billing_frequency": "monthly",
"monthly_billing_period_alignment": "anniversary",
"deal_name": "<string>",
"deal_id": "<string>",
"consultant": "<string>",
"closed_date": "2023-12-25",
"total_contract_value": 0,
"contract_start_date": "2023-12-25",
"exchange_rate": 0,
"exchange_rate_book": 0,
"crm_link": "<string>",
"contract_link": "<string>",
"status": "ACTIVE",
"source": "SALESFORCE",
"source_deal_data": null,
"auto_renew": true,
"auto_renew_duration": -1,
"auto_renew_invoice": true,
"evergreen_date_boundary_mode": "CONTRACT_PERIOD",
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"minimum_monthly_commitment_amount": 0,
"minimum_monthly_commitment_quantity": 0,
"purchase_order_number": "<string>",
"billing_address": "<string>",
"billing_addressee": "<string>",
"shipping_address": "<string>",
"shipping_addressee": "<string>",
"invoice_cc_emails": "<string>",
"vat_number": "<string>",
"entity": 123,
"client": 123,
"default_payment_term": 123,
"department": 123,
"journal_entries": [
123
]
}Body
For Evergreen contracts only. Set at contract creation; existing contracts cannot change this setting. False means current behavior. True skips only Campfire's auto-generated evergreen invoices; revenue transactions still generate; existing invoices are not cleaned up.
Controls service-period boundaries for monthly subscription and usage billing. Anniversary preserves contract-date boundaries; calendar month creates leading and trailing stubs.
anniversary- Contract anniversarycalendar_month- Calendar month
anniversary, calendar_month Controls evergreen subscription date boundaries. CONTRACT_PERIOD preserves contract billing-period alignment; EXACT_DATE uses the subscriptions' exact service dates.
CONTRACT_PERIOD- Contract billing periodEXACT_DATE- Exact service dates
CONTRACT_PERIOD, EXACT_DATE Contract-level default payment term for generated invoices. Currently applied only to automatically generated Evergreen invoices; other contract invoice flows retain their existing payment-term selection behavior. Support may be extended to additional contract types in the future.
Response
For Evergreen contracts only. Set at contract creation; existing contracts cannot change this setting. False means current behavior. True skips only Campfire's auto-generated evergreen invoices; revenue transactions still generate; existing invoices are not cleaned up.
Controls service-period boundaries for monthly subscription and usage billing. Anniversary preserves contract-date boundaries; calendar month creates leading and trailing stubs.
anniversary- Contract anniversarycalendar_month- Calendar month
anniversary, calendar_month Controls evergreen subscription date boundaries. CONTRACT_PERIOD preserves contract billing-period alignment; EXACT_DATE uses the subscriptions' exact service dates.
CONTRACT_PERIOD- Contract billing periodEXACT_DATE- Exact service dates
CONTRACT_PERIOD, EXACT_DATE Contract-level default payment term for generated invoices. Currently applied only to automatically generated Evergreen invoices; other contract invoice flows retain their existing payment-term selection behavior. Support may be extended to additional contract types in the future.