curl --request POST \
--url https://api.meetcampfire.com/coa/api/vendor/bulk-search \
--header 'Content-Type: application/json' \
--data '
{
"vendors": [
{
"name": "<string>",
"external_id": "<string>",
"email": "jsmith@example.com"
}
],
"upsert": false
}
'import requests
url = "https://api.meetcampfire.com/coa/api/vendor/bulk-search"
payload = {
"vendors": [
{
"name": "<string>",
"external_id": "<string>",
"email": "jsmith@example.com"
}
],
"upsert": False
}
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({
vendors: [{name: '<string>', external_id: '<string>', email: 'jsmith@example.com'}],
upsert: false
})
};
fetch('https://api.meetcampfire.com/coa/api/vendor/bulk-search', 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/bulk-search",
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([
'vendors' => [
[
'name' => '<string>',
'external_id' => '<string>',
'email' => 'jsmith@example.com'
]
],
'upsert' => false
]),
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/bulk-search"
payload := strings.NewReader("{\n \"vendors\": [\n {\n \"name\": \"<string>\",\n \"external_id\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n }\n ],\n \"upsert\": false\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/bulk-search")
.header("Content-Type", "application/json")
.body("{\n \"vendors\": [\n {\n \"name\": \"<string>\",\n \"external_id\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n }\n ],\n \"upsert\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/vendor/bulk-search")
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 \"vendors\": [\n {\n \"name\": \"<string>\",\n \"external_id\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n }\n ],\n \"upsert\": false\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
}
]Bulk Search Vendors by External ID or Name
Search for thousands of vendors in a single request, resolving each cell by external_id, then a Campfire ID or internal pk parsed from the cell, then name. Optimized for performance. Supports upsert to create missing vendors.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/vendor/bulk-search \
--header 'Content-Type: application/json' \
--data '
{
"vendors": [
{
"name": "<string>",
"external_id": "<string>",
"email": "jsmith@example.com"
}
],
"upsert": false
}
'import requests
url = "https://api.meetcampfire.com/coa/api/vendor/bulk-search"
payload = {
"vendors": [
{
"name": "<string>",
"external_id": "<string>",
"email": "jsmith@example.com"
}
],
"upsert": False
}
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({
vendors: [{name: '<string>', external_id: '<string>', email: 'jsmith@example.com'}],
upsert: false
})
};
fetch('https://api.meetcampfire.com/coa/api/vendor/bulk-search', 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/bulk-search",
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([
'vendors' => [
[
'name' => '<string>',
'external_id' => '<string>',
'email' => 'jsmith@example.com'
]
],
'upsert' => false
]),
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/bulk-search"
payload := strings.NewReader("{\n \"vendors\": [\n {\n \"name\": \"<string>\",\n \"external_id\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n }\n ],\n \"upsert\": false\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/bulk-search")
.header("Content-Type", "application/json")
.body("{\n \"vendors\": [\n {\n \"name\": \"<string>\",\n \"external_id\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n }\n ],\n \"upsert\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/vendor/bulk-search")
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 \"vendors\": [\n {\n \"name\": \"<string>\",\n \"external_id\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n }\n ],\n \"upsert\": false\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
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