curl --request POST \
--url https://api.meetcampfire.com/coa/api/vendor \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"contacts": [
{
"id": 123,
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"mobile_number": "<string>",
"title": 123
}
],
"vendor_type": "vendor",
"dba": "<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>",
"billing_address_street_1": "<string>",
"billing_address_street_2": "<string>",
"billing_city": "<string>",
"billing_state": "<string>",
"billing_zip_code": "<string>",
"billing_country": "<string>",
"shipping_addressee": "<string>",
"billing_addressee": "<string>",
"notes": "<string>",
"business_id_ssn": "<string>",
"is_1099": true,
"is_reseller": true,
"vat_number": "<string>",
"business_type": "<string>",
"business_category": "<string>",
"entity_use_code": "<string>",
"withholding_tax_id": "<string>",
"ita_deduction_type_code": "<string>",
"stripe_customer_id": "<string>",
"use_stripe_auto_bill": true,
"bill_vendor_id": "<string>",
"external_id": "<string>",
"invoice_message": "<string>",
"abbreviation": "<string>",
"anrok_customer_id": "<string>",
"avalara_customer_id": "<string>",
"invoice_labels": null,
"invoice_language": "<string>",
"lineage_array": [
"<string>"
],
"parent": 123,
"stripe_connection": 123,
"default_expense_category": 123,
"vendor_custom_field_1": 123,
"payment_term": 123
}
'import requests
url = "https://api.meetcampfire.com/coa/api/vendor"
payload = {
"name": "<string>",
"contacts": [
{
"id": 123,
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"mobile_number": "<string>",
"title": 123
}
],
"vendor_type": "vendor",
"dba": "<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>",
"billing_address_street_1": "<string>",
"billing_address_street_2": "<string>",
"billing_city": "<string>",
"billing_state": "<string>",
"billing_zip_code": "<string>",
"billing_country": "<string>",
"shipping_addressee": "<string>",
"billing_addressee": "<string>",
"notes": "<string>",
"business_id_ssn": "<string>",
"is_1099": True,
"is_reseller": True,
"vat_number": "<string>",
"business_type": "<string>",
"business_category": "<string>",
"entity_use_code": "<string>",
"withholding_tax_id": "<string>",
"ita_deduction_type_code": "<string>",
"stripe_customer_id": "<string>",
"use_stripe_auto_bill": True,
"bill_vendor_id": "<string>",
"external_id": "<string>",
"invoice_message": "<string>",
"abbreviation": "<string>",
"anrok_customer_id": "<string>",
"avalara_customer_id": "<string>",
"invoice_labels": None,
"invoice_language": "<string>",
"lineage_array": ["<string>"],
"parent": 123,
"stripe_connection": 123,
"default_expense_category": 123,
"vendor_custom_field_1": 123,
"payment_term": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
contacts: [
{
id: 123,
name: '<string>',
first_name: '<string>',
last_name: '<string>',
email: 'jsmith@example.com',
phone_number: '<string>',
mobile_number: '<string>',
title: 123
}
],
vendor_type: 'vendor',
dba: '<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>',
billing_address_street_1: '<string>',
billing_address_street_2: '<string>',
billing_city: '<string>',
billing_state: '<string>',
billing_zip_code: '<string>',
billing_country: '<string>',
shipping_addressee: '<string>',
billing_addressee: '<string>',
notes: '<string>',
business_id_ssn: '<string>',
is_1099: true,
is_reseller: true,
vat_number: '<string>',
business_type: '<string>',
business_category: '<string>',
entity_use_code: '<string>',
withholding_tax_id: '<string>',
ita_deduction_type_code: '<string>',
stripe_customer_id: '<string>',
use_stripe_auto_bill: true,
bill_vendor_id: '<string>',
external_id: '<string>',
invoice_message: '<string>',
abbreviation: '<string>',
anrok_customer_id: '<string>',
avalara_customer_id: '<string>',
invoice_labels: null,
invoice_language: '<string>',
lineage_array: ['<string>'],
parent: 123,
stripe_connection: 123,
default_expense_category: 123,
vendor_custom_field_1: 123,
payment_term: 123
})
};
fetch('https://api.meetcampfire.com/coa/api/vendor', 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/coa/api/vendor",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'contacts' => [
[
'id' => 123,
'name' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => 'jsmith@example.com',
'phone_number' => '<string>',
'mobile_number' => '<string>',
'title' => 123
]
],
'vendor_type' => 'vendor',
'dba' => '<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>',
'billing_address_street_1' => '<string>',
'billing_address_street_2' => '<string>',
'billing_city' => '<string>',
'billing_state' => '<string>',
'billing_zip_code' => '<string>',
'billing_country' => '<string>',
'shipping_addressee' => '<string>',
'billing_addressee' => '<string>',
'notes' => '<string>',
'business_id_ssn' => '<string>',
'is_1099' => true,
'is_reseller' => true,
'vat_number' => '<string>',
'business_type' => '<string>',
'business_category' => '<string>',
'entity_use_code' => '<string>',
'withholding_tax_id' => '<string>',
'ita_deduction_type_code' => '<string>',
'stripe_customer_id' => '<string>',
'use_stripe_auto_bill' => true,
'bill_vendor_id' => '<string>',
'external_id' => '<string>',
'invoice_message' => '<string>',
'abbreviation' => '<string>',
'anrok_customer_id' => '<string>',
'avalara_customer_id' => '<string>',
'invoice_labels' => null,
'invoice_language' => '<string>',
'lineage_array' => [
'<string>'
],
'parent' => 123,
'stripe_connection' => 123,
'default_expense_category' => 123,
'vendor_custom_field_1' => 123,
'payment_term' => 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/coa/api/vendor"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"contacts\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"title\": 123\n }\n ],\n \"vendor_type\": \"vendor\",\n \"dba\": \"<string>\",\n \"company_name\": \"<string>\",\n \"website\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"address_street_1\": \"<string>\",\n \"address_street_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"country\": \"<string>\",\n \"billing_address_street_1\": \"<string>\",\n \"billing_address_street_2\": \"<string>\",\n \"billing_city\": \"<string>\",\n \"billing_state\": \"<string>\",\n \"billing_zip_code\": \"<string>\",\n \"billing_country\": \"<string>\",\n \"shipping_addressee\": \"<string>\",\n \"billing_addressee\": \"<string>\",\n \"notes\": \"<string>\",\n \"business_id_ssn\": \"<string>\",\n \"is_1099\": true,\n \"is_reseller\": true,\n \"vat_number\": \"<string>\",\n \"business_type\": \"<string>\",\n \"business_category\": \"<string>\",\n \"entity_use_code\": \"<string>\",\n \"withholding_tax_id\": \"<string>\",\n \"ita_deduction_type_code\": \"<string>\",\n \"stripe_customer_id\": \"<string>\",\n \"use_stripe_auto_bill\": true,\n \"bill_vendor_id\": \"<string>\",\n \"external_id\": \"<string>\",\n \"invoice_message\": \"<string>\",\n \"abbreviation\": \"<string>\",\n \"anrok_customer_id\": \"<string>\",\n \"avalara_customer_id\": \"<string>\",\n \"invoice_labels\": null,\n \"invoice_language\": \"<string>\",\n \"lineage_array\": [\n \"<string>\"\n ],\n \"parent\": 123,\n \"stripe_connection\": 123,\n \"default_expense_category\": 123,\n \"vendor_custom_field_1\": 123,\n \"payment_term\": 123\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.meetcampfire.com/coa/api/vendor")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"contacts\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"title\": 123\n }\n ],\n \"vendor_type\": \"vendor\",\n \"dba\": \"<string>\",\n \"company_name\": \"<string>\",\n \"website\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"address_street_1\": \"<string>\",\n \"address_street_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"country\": \"<string>\",\n \"billing_address_street_1\": \"<string>\",\n \"billing_address_street_2\": \"<string>\",\n \"billing_city\": \"<string>\",\n \"billing_state\": \"<string>\",\n \"billing_zip_code\": \"<string>\",\n \"billing_country\": \"<string>\",\n \"shipping_addressee\": \"<string>\",\n \"billing_addressee\": \"<string>\",\n \"notes\": \"<string>\",\n \"business_id_ssn\": \"<string>\",\n \"is_1099\": true,\n \"is_reseller\": true,\n \"vat_number\": \"<string>\",\n \"business_type\": \"<string>\",\n \"business_category\": \"<string>\",\n \"entity_use_code\": \"<string>\",\n \"withholding_tax_id\": \"<string>\",\n \"ita_deduction_type_code\": \"<string>\",\n \"stripe_customer_id\": \"<string>\",\n \"use_stripe_auto_bill\": true,\n \"bill_vendor_id\": \"<string>\",\n \"external_id\": \"<string>\",\n \"invoice_message\": \"<string>\",\n \"abbreviation\": \"<string>\",\n \"anrok_customer_id\": \"<string>\",\n \"avalara_customer_id\": \"<string>\",\n \"invoice_labels\": null,\n \"invoice_language\": \"<string>\",\n \"lineage_array\": [\n \"<string>\"\n ],\n \"parent\": 123,\n \"stripe_connection\": 123,\n \"default_expense_category\": 123,\n \"vendor_custom_field_1\": 123,\n \"payment_term\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/vendor")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"contacts\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"title\": 123\n }\n ],\n \"vendor_type\": \"vendor\",\n \"dba\": \"<string>\",\n \"company_name\": \"<string>\",\n \"website\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"address_street_1\": \"<string>\",\n \"address_street_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"country\": \"<string>\",\n \"billing_address_street_1\": \"<string>\",\n \"billing_address_street_2\": \"<string>\",\n \"billing_city\": \"<string>\",\n \"billing_state\": \"<string>\",\n \"billing_zip_code\": \"<string>\",\n \"billing_country\": \"<string>\",\n \"shipping_addressee\": \"<string>\",\n \"billing_addressee\": \"<string>\",\n \"notes\": \"<string>\",\n \"business_id_ssn\": \"<string>\",\n \"is_1099\": true,\n \"is_reseller\": true,\n \"vat_number\": \"<string>\",\n \"business_type\": \"<string>\",\n \"business_category\": \"<string>\",\n \"entity_use_code\": \"<string>\",\n \"withholding_tax_id\": \"<string>\",\n \"ita_deduction_type_code\": \"<string>\",\n \"stripe_customer_id\": \"<string>\",\n \"use_stripe_auto_bill\": true,\n \"bill_vendor_id\": \"<string>\",\n \"external_id\": \"<string>\",\n \"invoice_message\": \"<string>\",\n \"abbreviation\": \"<string>\",\n \"anrok_customer_id\": \"<string>\",\n \"avalara_customer_id\": \"<string>\",\n \"invoice_labels\": null,\n \"invoice_language\": \"<string>\",\n \"lineage_array\": [\n \"<string>\"\n ],\n \"parent\": 123,\n \"stripe_connection\": 123,\n \"default_expense_category\": 123,\n \"vendor_custom_field_1\": 123,\n \"payment_term\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"parent_name": "<string>",
"stripe_connection_name": "<string>",
"stripe_connection_entity": 123,
"stripe_connection_portal_url": "<string>",
"stripe_connection_portal_enabled": true,
"stripe_connection_invoicing_enabled": true,
"vendor_custom_field_1_name": "<string>",
"payment_term_name_display": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"search_vector": "<string>",
"search_text": "<string>",
"campfire_id": "<string>",
"name": "<string>",
"display_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"netsuite_customer_id": "<string>",
"customer": 123,
"contacts": [
{
"title_name": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"id": 123,
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"mobile_number": "<string>",
"title": 123
}
],
"vendor_type": "vendor",
"dba": "<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>",
"billing_address_street_1": "<string>",
"billing_address_street_2": "<string>",
"billing_city": "<string>",
"billing_state": "<string>",
"billing_zip_code": "<string>",
"billing_country": "<string>",
"shipping_addressee": "<string>",
"billing_addressee": "<string>",
"notes": "<string>",
"business_id_ssn": "<string>",
"is_1099": true,
"is_reseller": true,
"vat_number": "<string>",
"business_type": "<string>",
"business_category": "<string>",
"entity_use_code": "<string>",
"withholding_tax_id": "<string>",
"ita_deduction_type_code": "<string>",
"ita_vendor_entity_code": "0",
"ita_vendor_entity_type": "1",
"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>",
"avalara_customer_id": "<string>",
"terms": "custom",
"invoice_labels": null,
"invoice_language": "<string>",
"lineage_array": [
"<string>"
],
"parent": 123,
"stripe_connection": 123,
"default_expense_category": 123,
"vendor_custom_field_1": 123,
"payment_term": 123
}Create Vendor
Create a new vendor or customer in the system
curl --request POST \
--url https://api.meetcampfire.com/coa/api/vendor \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"contacts": [
{
"id": 123,
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"mobile_number": "<string>",
"title": 123
}
],
"vendor_type": "vendor",
"dba": "<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>",
"billing_address_street_1": "<string>",
"billing_address_street_2": "<string>",
"billing_city": "<string>",
"billing_state": "<string>",
"billing_zip_code": "<string>",
"billing_country": "<string>",
"shipping_addressee": "<string>",
"billing_addressee": "<string>",
"notes": "<string>",
"business_id_ssn": "<string>",
"is_1099": true,
"is_reseller": true,
"vat_number": "<string>",
"business_type": "<string>",
"business_category": "<string>",
"entity_use_code": "<string>",
"withholding_tax_id": "<string>",
"ita_deduction_type_code": "<string>",
"stripe_customer_id": "<string>",
"use_stripe_auto_bill": true,
"bill_vendor_id": "<string>",
"external_id": "<string>",
"invoice_message": "<string>",
"abbreviation": "<string>",
"anrok_customer_id": "<string>",
"avalara_customer_id": "<string>",
"invoice_labels": null,
"invoice_language": "<string>",
"lineage_array": [
"<string>"
],
"parent": 123,
"stripe_connection": 123,
"default_expense_category": 123,
"vendor_custom_field_1": 123,
"payment_term": 123
}
'import requests
url = "https://api.meetcampfire.com/coa/api/vendor"
payload = {
"name": "<string>",
"contacts": [
{
"id": 123,
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"mobile_number": "<string>",
"title": 123
}
],
"vendor_type": "vendor",
"dba": "<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>",
"billing_address_street_1": "<string>",
"billing_address_street_2": "<string>",
"billing_city": "<string>",
"billing_state": "<string>",
"billing_zip_code": "<string>",
"billing_country": "<string>",
"shipping_addressee": "<string>",
"billing_addressee": "<string>",
"notes": "<string>",
"business_id_ssn": "<string>",
"is_1099": True,
"is_reseller": True,
"vat_number": "<string>",
"business_type": "<string>",
"business_category": "<string>",
"entity_use_code": "<string>",
"withholding_tax_id": "<string>",
"ita_deduction_type_code": "<string>",
"stripe_customer_id": "<string>",
"use_stripe_auto_bill": True,
"bill_vendor_id": "<string>",
"external_id": "<string>",
"invoice_message": "<string>",
"abbreviation": "<string>",
"anrok_customer_id": "<string>",
"avalara_customer_id": "<string>",
"invoice_labels": None,
"invoice_language": "<string>",
"lineage_array": ["<string>"],
"parent": 123,
"stripe_connection": 123,
"default_expense_category": 123,
"vendor_custom_field_1": 123,
"payment_term": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
contacts: [
{
id: 123,
name: '<string>',
first_name: '<string>',
last_name: '<string>',
email: 'jsmith@example.com',
phone_number: '<string>',
mobile_number: '<string>',
title: 123
}
],
vendor_type: 'vendor',
dba: '<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>',
billing_address_street_1: '<string>',
billing_address_street_2: '<string>',
billing_city: '<string>',
billing_state: '<string>',
billing_zip_code: '<string>',
billing_country: '<string>',
shipping_addressee: '<string>',
billing_addressee: '<string>',
notes: '<string>',
business_id_ssn: '<string>',
is_1099: true,
is_reseller: true,
vat_number: '<string>',
business_type: '<string>',
business_category: '<string>',
entity_use_code: '<string>',
withholding_tax_id: '<string>',
ita_deduction_type_code: '<string>',
stripe_customer_id: '<string>',
use_stripe_auto_bill: true,
bill_vendor_id: '<string>',
external_id: '<string>',
invoice_message: '<string>',
abbreviation: '<string>',
anrok_customer_id: '<string>',
avalara_customer_id: '<string>',
invoice_labels: null,
invoice_language: '<string>',
lineage_array: ['<string>'],
parent: 123,
stripe_connection: 123,
default_expense_category: 123,
vendor_custom_field_1: 123,
payment_term: 123
})
};
fetch('https://api.meetcampfire.com/coa/api/vendor', 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/coa/api/vendor",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'contacts' => [
[
'id' => 123,
'name' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => 'jsmith@example.com',
'phone_number' => '<string>',
'mobile_number' => '<string>',
'title' => 123
]
],
'vendor_type' => 'vendor',
'dba' => '<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>',
'billing_address_street_1' => '<string>',
'billing_address_street_2' => '<string>',
'billing_city' => '<string>',
'billing_state' => '<string>',
'billing_zip_code' => '<string>',
'billing_country' => '<string>',
'shipping_addressee' => '<string>',
'billing_addressee' => '<string>',
'notes' => '<string>',
'business_id_ssn' => '<string>',
'is_1099' => true,
'is_reseller' => true,
'vat_number' => '<string>',
'business_type' => '<string>',
'business_category' => '<string>',
'entity_use_code' => '<string>',
'withholding_tax_id' => '<string>',
'ita_deduction_type_code' => '<string>',
'stripe_customer_id' => '<string>',
'use_stripe_auto_bill' => true,
'bill_vendor_id' => '<string>',
'external_id' => '<string>',
'invoice_message' => '<string>',
'abbreviation' => '<string>',
'anrok_customer_id' => '<string>',
'avalara_customer_id' => '<string>',
'invoice_labels' => null,
'invoice_language' => '<string>',
'lineage_array' => [
'<string>'
],
'parent' => 123,
'stripe_connection' => 123,
'default_expense_category' => 123,
'vendor_custom_field_1' => 123,
'payment_term' => 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/coa/api/vendor"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"contacts\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"title\": 123\n }\n ],\n \"vendor_type\": \"vendor\",\n \"dba\": \"<string>\",\n \"company_name\": \"<string>\",\n \"website\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"address_street_1\": \"<string>\",\n \"address_street_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"country\": \"<string>\",\n \"billing_address_street_1\": \"<string>\",\n \"billing_address_street_2\": \"<string>\",\n \"billing_city\": \"<string>\",\n \"billing_state\": \"<string>\",\n \"billing_zip_code\": \"<string>\",\n \"billing_country\": \"<string>\",\n \"shipping_addressee\": \"<string>\",\n \"billing_addressee\": \"<string>\",\n \"notes\": \"<string>\",\n \"business_id_ssn\": \"<string>\",\n \"is_1099\": true,\n \"is_reseller\": true,\n \"vat_number\": \"<string>\",\n \"business_type\": \"<string>\",\n \"business_category\": \"<string>\",\n \"entity_use_code\": \"<string>\",\n \"withholding_tax_id\": \"<string>\",\n \"ita_deduction_type_code\": \"<string>\",\n \"stripe_customer_id\": \"<string>\",\n \"use_stripe_auto_bill\": true,\n \"bill_vendor_id\": \"<string>\",\n \"external_id\": \"<string>\",\n \"invoice_message\": \"<string>\",\n \"abbreviation\": \"<string>\",\n \"anrok_customer_id\": \"<string>\",\n \"avalara_customer_id\": \"<string>\",\n \"invoice_labels\": null,\n \"invoice_language\": \"<string>\",\n \"lineage_array\": [\n \"<string>\"\n ],\n \"parent\": 123,\n \"stripe_connection\": 123,\n \"default_expense_category\": 123,\n \"vendor_custom_field_1\": 123,\n \"payment_term\": 123\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.meetcampfire.com/coa/api/vendor")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"contacts\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"title\": 123\n }\n ],\n \"vendor_type\": \"vendor\",\n \"dba\": \"<string>\",\n \"company_name\": \"<string>\",\n \"website\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"address_street_1\": \"<string>\",\n \"address_street_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"country\": \"<string>\",\n \"billing_address_street_1\": \"<string>\",\n \"billing_address_street_2\": \"<string>\",\n \"billing_city\": \"<string>\",\n \"billing_state\": \"<string>\",\n \"billing_zip_code\": \"<string>\",\n \"billing_country\": \"<string>\",\n \"shipping_addressee\": \"<string>\",\n \"billing_addressee\": \"<string>\",\n \"notes\": \"<string>\",\n \"business_id_ssn\": \"<string>\",\n \"is_1099\": true,\n \"is_reseller\": true,\n \"vat_number\": \"<string>\",\n \"business_type\": \"<string>\",\n \"business_category\": \"<string>\",\n \"entity_use_code\": \"<string>\",\n \"withholding_tax_id\": \"<string>\",\n \"ita_deduction_type_code\": \"<string>\",\n \"stripe_customer_id\": \"<string>\",\n \"use_stripe_auto_bill\": true,\n \"bill_vendor_id\": \"<string>\",\n \"external_id\": \"<string>\",\n \"invoice_message\": \"<string>\",\n \"abbreviation\": \"<string>\",\n \"anrok_customer_id\": \"<string>\",\n \"avalara_customer_id\": \"<string>\",\n \"invoice_labels\": null,\n \"invoice_language\": \"<string>\",\n \"lineage_array\": [\n \"<string>\"\n ],\n \"parent\": 123,\n \"stripe_connection\": 123,\n \"default_expense_category\": 123,\n \"vendor_custom_field_1\": 123,\n \"payment_term\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/vendor")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"contacts\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"title\": 123\n }\n ],\n \"vendor_type\": \"vendor\",\n \"dba\": \"<string>\",\n \"company_name\": \"<string>\",\n \"website\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone_number\": \"<string>\",\n \"mobile_number\": \"<string>\",\n \"address_street_1\": \"<string>\",\n \"address_street_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"country\": \"<string>\",\n \"billing_address_street_1\": \"<string>\",\n \"billing_address_street_2\": \"<string>\",\n \"billing_city\": \"<string>\",\n \"billing_state\": \"<string>\",\n \"billing_zip_code\": \"<string>\",\n \"billing_country\": \"<string>\",\n \"shipping_addressee\": \"<string>\",\n \"billing_addressee\": \"<string>\",\n \"notes\": \"<string>\",\n \"business_id_ssn\": \"<string>\",\n \"is_1099\": true,\n \"is_reseller\": true,\n \"vat_number\": \"<string>\",\n \"business_type\": \"<string>\",\n \"business_category\": \"<string>\",\n \"entity_use_code\": \"<string>\",\n \"withholding_tax_id\": \"<string>\",\n \"ita_deduction_type_code\": \"<string>\",\n \"stripe_customer_id\": \"<string>\",\n \"use_stripe_auto_bill\": true,\n \"bill_vendor_id\": \"<string>\",\n \"external_id\": \"<string>\",\n \"invoice_message\": \"<string>\",\n \"abbreviation\": \"<string>\",\n \"anrok_customer_id\": \"<string>\",\n \"avalara_customer_id\": \"<string>\",\n \"invoice_labels\": null,\n \"invoice_language\": \"<string>\",\n \"lineage_array\": [\n \"<string>\"\n ],\n \"parent\": 123,\n \"stripe_connection\": 123,\n \"default_expense_category\": 123,\n \"vendor_custom_field_1\": 123,\n \"payment_term\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"parent_name": "<string>",
"stripe_connection_name": "<string>",
"stripe_connection_entity": 123,
"stripe_connection_portal_url": "<string>",
"stripe_connection_portal_enabled": true,
"stripe_connection_invoicing_enabled": true,
"vendor_custom_field_1_name": "<string>",
"payment_term_name_display": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"search_vector": "<string>",
"search_text": "<string>",
"campfire_id": "<string>",
"name": "<string>",
"display_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"netsuite_customer_id": "<string>",
"customer": 123,
"contacts": [
{
"title_name": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"id": 123,
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"mobile_number": "<string>",
"title": 123
}
],
"vendor_type": "vendor",
"dba": "<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>",
"billing_address_street_1": "<string>",
"billing_address_street_2": "<string>",
"billing_city": "<string>",
"billing_state": "<string>",
"billing_zip_code": "<string>",
"billing_country": "<string>",
"shipping_addressee": "<string>",
"billing_addressee": "<string>",
"notes": "<string>",
"business_id_ssn": "<string>",
"is_1099": true,
"is_reseller": true,
"vat_number": "<string>",
"business_type": "<string>",
"business_category": "<string>",
"entity_use_code": "<string>",
"withholding_tax_id": "<string>",
"ita_deduction_type_code": "<string>",
"ita_vendor_entity_code": "0",
"ita_vendor_entity_type": "1",
"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>",
"avalara_customer_id": "<string>",
"terms": "custom",
"invoice_labels": null,
"invoice_language": "<string>",
"lineage_array": [
"<string>"
],
"parent": 123,
"stripe_connection": 123,
"default_expense_category": 123,
"vendor_custom_field_1": 123,
"payment_term": 123
}Body
250Show child attributes
Show child attributes
vendor- Vendorcustomer- Customeremployee- Employee
vendor, customer, employee 250250250250250250250250250250250250250250250250250250250250255255250250250Business type classification (e.g., Korean NTS 업태)
250Business category classification (e.g., Korean NTS 종목)
250Avalara entity/use code for tax exemptions (e.g., A - Federal Government, B - State/Local Govt)
25Vendor's tax-authority ID for withholding (PAN for India, TZ for Israel). Dedicated field since these have format/checksum rules distinct from business_id_ssn.
250Israel tax compliance: ITA nature-of-payment deduction type code for Form 856.
2^[0-9]{1,2}$Israel tax compliance: vendor residency classification for Form 856.
0- Israeli company2- PA resident3- Foreign individual5- Foreign company
0, 2, 3, 5 Israel tax compliance: vendor legal-form classification for Form 856.
1- Individual2- Company3- Osek
1, 2, 3 250250250BILL- BillBREX- BrexHUBSPOT- HubspotMANUAL- ManualPAYROLL- PayrollSALESFORCE- Salesforce
BILL, BREX, HUBSPOT, MANUAL, PAYROLL, SALESFORCE 250ACTIVE- ActiveINACTIVE- Inactive
ACTIVE, INACTIVE 250250custom- Customnet_5- Net 5net_7- Net 7net_10- Net 10net_15- Net 15net_20- Net 20net_30- Net 30net_40- Net 40net_45- Net 45net_60- Net 60net_90- Net 90net_105- Net 105net_120- Net 120due_on_receipt- Due on Receipt
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 10Pre-computed lineage array from root to this vendor
50Payment term for this vendor
Response
250Show child attributes
Show child attributes
vendor- Vendorcustomer- Customeremployee- Employee
vendor, customer, employee 250250250250250250250250250250250250250250250250250250250250255255250250250Business type classification (e.g., Korean NTS 업태)
250Business category classification (e.g., Korean NTS 종목)
250Avalara entity/use code for tax exemptions (e.g., A - Federal Government, B - State/Local Govt)
25Vendor's tax-authority ID for withholding (PAN for India, TZ for Israel). Dedicated field since these have format/checksum rules distinct from business_id_ssn.
250Israel tax compliance: ITA nature-of-payment deduction type code for Form 856.
2^[0-9]{1,2}$Israel tax compliance: vendor residency classification for Form 856.
0- Israeli company2- PA resident3- Foreign individual5- Foreign company
0, 2, 3, 5 Israel tax compliance: vendor legal-form classification for Form 856.
1- Individual2- Company3- Osek
1, 2, 3 250250250BILL- BillBREX- BrexHUBSPOT- HubspotMANUAL- ManualPAYROLL- PayrollSALESFORCE- Salesforce
BILL, BREX, HUBSPOT, MANUAL, PAYROLL, SALESFORCE 250ACTIVE- ActiveINACTIVE- Inactive
ACTIVE, INACTIVE 250250custom- Customnet_5- Net 5net_7- Net 7net_10- Net 10net_15- Net 15net_20- Net 20net_30- Net 30net_40- Net 40net_45- Net 45net_60- Net 60net_90- Net 90net_105- Net 105net_120- Net 120due_on_receipt- Due on Receipt
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 10Pre-computed lineage array from root to this vendor
50Payment term for this vendor