Skip to main content
POST
/
rr
/
api
/
v1
/
product
Create Contract Product
curl --request POST \
  --url https://api.meetcampfire.com/rr/api/v1/product \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product_id": "<string>",
  "product_name": "<string>",
  "product_description": "<string>",
  "currency": "<string>",
  "price": 0,
  "cost": 0,
  "exclude_from_mrr": true,
  "is_taxable": true,
  "stripe_product_id": "<string>",
  "avalara_item_id": 0,
  "avalara_item_data": "<any>",
  "anrok_item_id": "<string>",
  "apply_dept_tag_to_invoice_journals": true,
  "department": 123,
  "invoice_account": 123,
  "revenue_account": 123,
  "ar_account": 123,
  "invoice_unbilled_account": 123
}'
{
  "id": 123,
  "is_deleted": false,
  "deleted_at": "2023-11-07T05:31:56Z",
  "department_name": "<string>",
  "invoice_account_name": "<string>",
  "revenue_account_name": "<string>",
  "ar_account_name": "<string>",
  "invoice_unbilled_account_name": "<string>",
  "tax_account_name": "<string>",
  "tags": [
    {
      "id": 123,
      "group_name": "<string>",
      "parent_name": "<string>",
      "parent": 123,
      "is_deleted": false,
      "deleted_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "group": 123
    }
  ],
  "last_modified_at": "2023-11-07T05:31:56Z",
  "product_id": "<string>",
  "product_name": "<string>",
  "product_description": "<string>",
  "currency": "<string>",
  "price": 0,
  "cost": 0,
  "exclude_from_mrr": true,
  "is_taxable": true,
  "created_at": "2023-11-07T05:31:56Z",
  "stripe_product_id": "<string>",
  "avalara_item_id": 0,
  "avalara_item_data": "<any>",
  "anrok_item_id": "<string>",
  "apply_dept_tag_to_invoice_journals": true,
  "customer": 123,
  "department": 123,
  "invoice_account": 123,
  "revenue_account": 123,
  "ar_account": 123,
  "invoice_unbilled_account": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

product_id
string | null
Maximum length: 250
product_name
string | null
Maximum length: 250
product_description
string | null
Maximum length: 250
currency
string | null
Maximum length: 3
price
number | null
Required range: -100000000000000 < x < 100000000000000
cost
number | null
Required range: -1000000000000000000 < x < 1000000000000000000
exclude_from_mrr
boolean
is_taxable
boolean
stripe_product_id
string | null
Maximum length: 250
avalara_item_id
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
avalara_item_data
any
anrok_item_id
string | null
Maximum length: 250
apply_dept_tag_to_invoice_journals
boolean | null

Apply Department and Tag categorization to all lines on Invoice Journals

department
integer | null
invoice_account
integer | null
revenue_account
integer | null
ar_account
integer | null
invoice_unbilled_account
integer | null

Response

201 - application/json
id
integer
required
is_deleted
boolean
default:false
required
deleted_at
string<date-time> | null
required
department_name
string
required
invoice_account_name
string
required
revenue_account_name
string
required
ar_account_name
string
required
invoice_unbilled_account_name
string
required
tax_account_name
string
required
tags
object[]
required
last_modified_at
string<date-time>
required
created_at
string<date-time>
required
customer
integer
required
product_id
string | null
Maximum length: 250
product_name
string | null
Maximum length: 250
product_description
string | null
Maximum length: 250
currency
string | null
Maximum length: 3
price
number | null
Required range: -100000000000000 < x < 100000000000000
cost
number | null
Required range: -1000000000000000000 < x < 1000000000000000000
exclude_from_mrr
boolean
is_taxable
boolean
stripe_product_id
string | null
Maximum length: 250
avalara_item_id
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
avalara_item_data
any
anrok_item_id
string | null
Maximum length: 250
apply_dept_tag_to_invoice_journals
boolean | null

Apply Department and Tag categorization to all lines on Invoice Journals

department
integer | null
invoice_account
integer | null
revenue_account
integer | null
ar_account
integer | null
invoice_unbilled_account
integer | null
I