Skip to main content
PUT
/
rr
/
api
/
v1
/
customers
/
{id}
Update Contract Customer
curl --request PUT \
  --url https://api.meetcampfire.com/rr/api/v1/customers/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contacts": [
    {
      "name": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "email": "jsmith@example.com",
      "phone_number": "<string>",
      "mobile_number": "<string>"
    }
  ],
  "vendor_type": "vendor",
  "name": "<string>",
  "company_name": "<string>",
  "website": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "jsmith@example.com",
  "phone_number": "<string>",
  "mobile_number": "<string>",
  "address_street_1": "<string>",
  "address_street_2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "zip_code": "<string>",
  "country": "<string>",
  "notes": "<string>",
  "business_id_ssn": "<string>",
  "is_1099": true,
  "vat_number": "<string>",
  "stripe_customer_id": "<string>",
  "use_stripe_auto_bill": true,
  "bill_vendor_id": "<string>",
  "external_id": "<string>",
  "source": "BILL",
  "invoice_message": "<string>",
  "abbreviation": "<string>",
  "status": "ACTIVE",
  "anrok_customer_id": "<string>",
  "terms": "custom",
  "customer": 123,
  "parent": 123,
  "stripe_connection": 123,
  "default_expense_category": 123,
  "vendor_custom_field_1": 123
}'
{
  "id": 123,
  "contacts": [
    {
      "id": 123,
      "name": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "email": "jsmith@example.com",
      "phone_number": "<string>",
      "mobile_number": "<string>",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "is_deleted": false,
      "deleted_at": "2023-11-07T05:31:56Z"
    }
  ],
  "parent_name": "<string>",
  "stripe_connection_name": "<string>",
  "stripe_connection_entity": 123,
  "stripe_connection_portal_url": "<string>",
  "stripe_connection_portal_enabled": true,
  "vendor_custom_field_1_name": "<string>",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "is_deleted": false,
  "deleted_at": "2023-11-07T05:31:56Z",
  "active_contracts": 123,
  "completed_contracts": 123,
  "pending_contracts": 123,
  "total_contracts": 123,
  "total_revenue": 0,
  "total_deferred_revenue": 0,
  "total_mrr": 0,
  "total_billed": 0,
  "total_unbilled": 0,
  "total_paid": 0,
  "total_outstanding": 0,
  "currency": "<string>",
  "search_vector": "<string>",
  "search_text": "<string>",
  "vendor_type": "vendor",
  "name": "<string>",
  "company_name": "<string>",
  "website": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "jsmith@example.com",
  "phone_number": "<string>",
  "mobile_number": "<string>",
  "address_street_1": "<string>",
  "address_street_2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "zip_code": "<string>",
  "country": "<string>",
  "notes": "<string>",
  "business_id_ssn": "<string>",
  "is_1099": true,
  "vat_number": "<string>",
  "stripe_customer_id": "<string>",
  "use_stripe_auto_bill": true,
  "bill_vendor_id": "<string>",
  "external_id": "<string>",
  "source": "BILL",
  "invoice_message": "<string>",
  "abbreviation": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "status": "ACTIVE",
  "anrok_customer_id": "<string>",
  "terms": "custom",
  "customer": 123,
  "parent": 123,
  "stripe_connection": 123,
  "default_expense_category": 123,
  "vendor_custom_field_1": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

Body

name
string | null
required
Maximum length: 250
customer
integer
required
stripe_connection
integer | null
required
contacts
object[]
vendor_type
default:vendor
  • vendor - Vendor
  • customer - Customer
  • employee - Employee
Available options:
vendor,
customer,
employee
company_name
string | null
Maximum length: 250
website
string | null
Maximum length: 250
first_name
string | null
Maximum length: 250
last_name
string | null
Maximum length: 250
email
string<email> | null
Maximum length: 250
phone_number
string | null
Maximum length: 250
mobile_number
string | null
Maximum length: 250
address_street_1
string | null
Maximum length: 250
address_street_2
string | null
Maximum length: 250
city
string | null
Maximum length: 250
state
string | null
Maximum length: 250
zip_code
string | null
Maximum length: 250
country
string | null
Maximum length: 250
notes
string | null
Maximum length: 250
business_id_ssn
string | null
Maximum length: 250
is_1099
boolean
vat_number
string | null
Maximum length: 250
stripe_customer_id
string | null
Maximum length: 250
use_stripe_auto_bill
boolean | null
bill_vendor_id
string | null
Maximum length: 250
external_id
string | null
Maximum length: 250
source
  • BILL - Bill
  • MANUAL - Manual
Available options:
BILL,
MANUAL
invoice_message
string | null
abbreviation
string | null
Maximum length: 250
status
enum<string>
  • ACTIVE - Active
  • INACTIVE - Inactive
Available options:
ACTIVE,
INACTIVE
anrok_customer_id
string | null
Maximum length: 250
terms
  • custom - Custom
  • net_5 - Net 5
  • net_7 - Net 7
  • net_10 - Net 10
  • net_15 - Net 15
  • net_20 - Net 20
  • net_30 - Net 30
  • net_40 - Net 40
  • net_45 - Net 45
  • net_60 - Net 60
  • net_90 - Net 90
  • net_105 - Net 105
  • net_120 - Net 120
  • due_on_receipt - Due on Receipt
Available options:
custom,
net_5,
net_7,
net_10,
net_15,
net_20,
net_30,
net_40,
net_45,
net_60,
net_90,
net_105,
net_120,
due_on_receipt
parent
integer | null
default_expense_category
integer | null
vendor_custom_field_1
integer | null

Response

200 - application/json
id
integer
required
parent_name
string
required
stripe_connection_name
string
required
stripe_connection_entity
integer
required
stripe_connection_portal_url
string
required
stripe_connection_portal_enabled
boolean
required
vendor_custom_field_1_name
string
required
last_modified_at
string<date-time>
required
is_deleted
boolean
default:false
required
deleted_at
string<date-time> | null
required
active_contracts
integer
required
completed_contracts
integer
required
pending_contracts
integer
required
total_contracts
integer
required
total_revenue
number
required
Required range: -10000000000000 < x < 10000000000000
total_deferred_revenue
number
required
Required range: -10000000000000 < x < 10000000000000
total_mrr
number
required
Required range: -10000000000000 < x < 10000000000000
total_billed
number
required
Required range: -10000000000000 < x < 10000000000000
total_unbilled
number
required
Required range: -10000000000000 < x < 10000000000000
total_paid
number
required
Required range: -10000000000000 < x < 10000000000000
total_outstanding
number
required
Required range: -10000000000000 < x < 10000000000000
currency
string
required
search_vector
string | null
required
search_text
string | null
required
name
string | null
required
Maximum length: 250
created_at
string<date-time>
required
customer
integer
required
stripe_connection
integer | null
required
contacts
object[]
vendor_type
default:vendor
  • vendor - Vendor
  • customer - Customer
  • employee - Employee
Available options:
vendor,
customer,
employee
company_name
string | null
Maximum length: 250
website
string | null
Maximum length: 250
first_name
string | null
Maximum length: 250
last_name
string | null
Maximum length: 250
email
string<email> | null
Maximum length: 250
phone_number
string | null
Maximum length: 250
mobile_number
string | null
Maximum length: 250
address_street_1
string | null
Maximum length: 250
address_street_2
string | null
Maximum length: 250
city
string | null
Maximum length: 250
state
string | null
Maximum length: 250
zip_code
string | null
Maximum length: 250
country
string | null
Maximum length: 250
notes
string | null
Maximum length: 250
business_id_ssn
string | null
Maximum length: 250
is_1099
boolean
vat_number
string | null
Maximum length: 250
stripe_customer_id
string | null
Maximum length: 250
use_stripe_auto_bill
boolean | null
bill_vendor_id
string | null
Maximum length: 250
external_id
string | null
Maximum length: 250
source
  • BILL - Bill
  • MANUAL - Manual
Available options:
BILL,
MANUAL
invoice_message
string | null
abbreviation
string | null
Maximum length: 250
status
enum<string>
  • ACTIVE - Active
  • INACTIVE - Inactive
Available options:
ACTIVE,
INACTIVE
anrok_customer_id
string | null
Maximum length: 250
terms
  • custom - Custom
  • net_5 - Net 5
  • net_7 - Net 7
  • net_10 - Net 10
  • net_15 - Net 15
  • net_20 - Net 20
  • net_30 - Net 30
  • net_40 - Net 40
  • net_45 - Net 45
  • net_60 - Net 60
  • net_90 - Net 90
  • net_105 - Net 105
  • net_120 - Net 120
  • due_on_receipt - Due on Receipt
Available options:
custom,
net_5,
net_7,
net_10,
net_15,
net_20,
net_30,
net_40,
net_45,
net_60,
net_90,
net_105,
net_120,
due_on_receipt
parent
integer | null
default_expense_category
integer | null
vendor_custom_field_1
integer | null
I