Retrieve a merchant
curl --request GET \
--url https://api.abacuslabs.co/merchants/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abacuslabs.co/merchants/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.abacuslabs.co/merchants/{id}', 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.abacuslabs.co/merchants/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.abacuslabs.co/merchants/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.abacuslabs.co/merchants/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/merchants/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4",
"name": "Acme Corporation",
"email": "contact@acme.com",
"billingEmail": "finance@acme.com, accounting@acme.com",
"phone": "+1-555-123-4567",
"website": "https://acme.com",
"createdAt": "2024-05-01T12:34:56.789Z",
"country": "United States",
"addressLine1": "123 Main Street",
"addressLine2": "Suite 400",
"city": "San Francisco",
"state": "California",
"zip": "94105",
"note": "Preferred contact method is email. Large enterprise client.",
"vatNumber": "US123456789",
"countryCode": "US",
"token": "cus_abc123xyz789",
"contact": "John Smith",
"dealCount": 12,
"projectCount": 3,
"tags": [
{
"id": "e7a9c1a2-4c2a-4e7a-9c1a-2b7c1e24c2a4",
"name": "VIP"
},
{
"id": "f1b2c3d4-5678-4e7a-9c1a-2b7c1e24c2a4",
"name": "Enterprise"
}
],
"description": "A cloud-based project management platform for remote teams.",
"industry": "Software",
"companyType": "SaaS",
"employeeCount": "51-200",
"foundedYear": 2018,
"estimatedRevenue": "$10M-$50M",
"fundingStage": "Series A",
"totalFunding": "$15M",
"headquartersLocation": "San Francisco, CA",
"timezone": "America/Los_Angeles",
"linkedinUrl": "https://linkedin.com/company/acme",
"twitterUrl": "https://twitter.com/acme",
"instagramUrl": "https://instagram.com/acme",
"facebookUrl": "https://facebook.com/acme",
"logoUrl": "https://example.com/logo.png",
"ceoName": "Jane Smith",
"financeContact": "John Doe",
"financeContactEmail": "finance@acme.com",
"primaryLanguage": "en",
"fiscalYearEnd": "December",
"enrichmentStatus": "completed",
"enrichedAt": "2024-05-01T12:34:56.789Z",
"totalRevenue": 15000.5,
"outstandingAmount": 2500,
"lastDealDate": "2024-04-15",
"dealCurrency": "USD"
}Merchants
Retrieve a merchant
Retrieve a merchant by ID for the authenticated team.
GET
/
merchants
/
{id}
Retrieve a merchant
curl --request GET \
--url https://api.abacuslabs.co/merchants/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abacuslabs.co/merchants/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.abacuslabs.co/merchants/{id}', 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.abacuslabs.co/merchants/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.abacuslabs.co/merchants/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.abacuslabs.co/merchants/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/merchants/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4",
"name": "Acme Corporation",
"email": "contact@acme.com",
"billingEmail": "finance@acme.com, accounting@acme.com",
"phone": "+1-555-123-4567",
"website": "https://acme.com",
"createdAt": "2024-05-01T12:34:56.789Z",
"country": "United States",
"addressLine1": "123 Main Street",
"addressLine2": "Suite 400",
"city": "San Francisco",
"state": "California",
"zip": "94105",
"note": "Preferred contact method is email. Large enterprise client.",
"vatNumber": "US123456789",
"countryCode": "US",
"token": "cus_abc123xyz789",
"contact": "John Smith",
"dealCount": 12,
"projectCount": 3,
"tags": [
{
"id": "e7a9c1a2-4c2a-4e7a-9c1a-2b7c1e24c2a4",
"name": "VIP"
},
{
"id": "f1b2c3d4-5678-4e7a-9c1a-2b7c1e24c2a4",
"name": "Enterprise"
}
],
"description": "A cloud-based project management platform for remote teams.",
"industry": "Software",
"companyType": "SaaS",
"employeeCount": "51-200",
"foundedYear": 2018,
"estimatedRevenue": "$10M-$50M",
"fundingStage": "Series A",
"totalFunding": "$15M",
"headquartersLocation": "San Francisco, CA",
"timezone": "America/Los_Angeles",
"linkedinUrl": "https://linkedin.com/company/acme",
"twitterUrl": "https://twitter.com/acme",
"instagramUrl": "https://instagram.com/acme",
"facebookUrl": "https://facebook.com/acme",
"logoUrl": "https://example.com/logo.png",
"ceoName": "Jane Smith",
"financeContact": "John Doe",
"financeContactEmail": "finance@acme.com",
"primaryLanguage": "en",
"fiscalYearEnd": "December",
"enrichmentStatus": "completed",
"enrichedAt": "2024-05-01T12:34:56.789Z",
"totalRevenue": 15000.5,
"outstandingAmount": 2500,
"lastDealDate": "2024-04-15",
"dealCurrency": "USD"
}Path Parameters
Response
200 - application/json
Retrieve a merchant by ID for the authenticated team.