Retrieve a deal
curl --request GET \
--url https://api.abacuslabs.co/deals/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abacuslabs.co/deals/{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/deals/{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/deals/{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/deals/{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/deals/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/deals/{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": "b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a",
"status": "paid",
"dueDate": "2024-06-30T23:59:59.000Z",
"issueDate": "2024-06-01T00:00:00.000Z",
"amount": 1500.75,
"currency": "USD",
"merchant": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Acme Corporation",
"website": "https://acme.com",
"email": "info@acme.com"
},
"paidAt": "2024-06-15T12:00:00.000Z",
"reminderSentAt": "2024-06-10T09:00:00.000Z",
"note": "Thank you for your business.",
"discount": 50,
"subtotal": 1400,
"viewedAt": "2024-06-05T14:30:00.000Z",
"merchantName": "Acme Corporation",
"sentTo": "billing@acme.com",
"sentAt": "2024-06-02T08:00:00.000Z",
"createdAt": "2024-06-01T07:00:00.000Z",
"updatedAt": "2024-06-15T10:00:00.000Z",
"pdfUrl": "https://app.abacuslabs.co/api/download/deal?token=eef58951-1682-4062-b010-425866032390",
"previewUrl": "https://app.abacuslabs.co/i/eef58951-1682-4062-b010-425866032390",
"dealNumber": "D-0001"
}Deals
Retrieve a deal
Retrieve a deal by its unique identifier for the authenticated team.
GET
/
deals
/
{id}
Retrieve a deal
curl --request GET \
--url https://api.abacuslabs.co/deals/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abacuslabs.co/deals/{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/deals/{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/deals/{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/deals/{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/deals/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/deals/{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": "b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a",
"status": "paid",
"dueDate": "2024-06-30T23:59:59.000Z",
"issueDate": "2024-06-01T00:00:00.000Z",
"amount": 1500.75,
"currency": "USD",
"merchant": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Acme Corporation",
"website": "https://acme.com",
"email": "info@acme.com"
},
"paidAt": "2024-06-15T12:00:00.000Z",
"reminderSentAt": "2024-06-10T09:00:00.000Z",
"note": "Thank you for your business.",
"discount": 50,
"subtotal": 1400,
"viewedAt": "2024-06-05T14:30:00.000Z",
"merchantName": "Acme Corporation",
"sentTo": "billing@acme.com",
"sentAt": "2024-06-02T08:00:00.000Z",
"createdAt": "2024-06-01T07:00:00.000Z",
"updatedAt": "2024-06-15T10:00:00.000Z",
"pdfUrl": "https://app.abacuslabs.co/api/download/deal?token=eef58951-1682-4062-b010-425866032390",
"previewUrl": "https://app.abacuslabs.co/i/eef58951-1682-4062-b010-425866032390",
"dealNumber": "D-0001"
}Response
200 - application/json
Retrieve a deal by its unique identifier for the authenticated team.
Deal object