Get bill
curl --request GET \
--url https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"terms": "<string>",
"issue_date": "2023-12-25",
"received_at": "2023-11-07T05:31:56Z",
"due_at": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"voided_at": "2023-11-07T05:31:56Z",
"is_overdue": false,
"currency": "<string>",
"vendor": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mobile_phone": "<string>",
"office_phone": "<string>",
"address_string": "<string>",
"memo": "<string>",
"status": "<string>",
"transaction_tags": [
"<unknown>"
],
"documents": [
{
"url": "<string>",
"expires_in": 123,
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "<string>",
"file_size": 123,
"mime_type": "<string>"
}
],
"external_id": "<string>",
"individual_name": "<string>",
"company_name": "<string>",
"email": "jsmith@example.com"
},
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_identifier": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "AccountId"
},
"currency": "<string>",
"unit_price": 123,
"quantity": 123,
"subtotal": 123,
"sales_taxes_total": 123,
"total_amount": 123,
"tax_rate": 123,
"description": "<string>",
"product": "<string>"
}
],
"bill_payment_allocations": [
{
"amount_cents": 123,
"payment_date": "2023-12-25",
"payment_method": "<string>",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"vendor_credit_allocations": [
{
"amount_cents": 123,
"applied_at": "2023-11-07T05:31:56Z",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_number": "<string>"
}
],
"vendor_refund_allocations": [
{
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"allocated_at": "2023-11-07T05:31:56Z",
"reference_number": "<string>"
}
],
"additional_sales_taxes": [
{
"amount": 123,
"tax_account": "<unknown>",
"rate": "<string>",
"name": "<string>"
}
],
"additional_sales_taxes_total": 123,
"subtotal": 123,
"total_amount": 123,
"outstanding_balance": 123,
"paid_by_bank_payments": 123,
"paid_by_credits": 123,
"needs_reconciliation": true,
"document": {
"url": "<string>",
"expires_in": 123,
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "<string>",
"file_size": 123,
"mime_type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"bill_number": "<string>",
"vendor_bill_number": "<string>",
"purchase_order_number": "<string>",
"memo": "<string>",
"reference_numbers": "<unknown>",
"attachment_urls": "<unknown>",
"metadata": "<unknown>"
}Bills
Get bill
Retrieve a single bill by ID for the specified business.
GET
/
v1
/
platform
/
businesses
/
{business_id}
/
bills
/
{bill_id}
/
Get bill
curl --request GET \
--url https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/{bill_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{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"terms": "<string>",
"issue_date": "2023-12-25",
"received_at": "2023-11-07T05:31:56Z",
"due_at": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"voided_at": "2023-11-07T05:31:56Z",
"is_overdue": false,
"currency": "<string>",
"vendor": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mobile_phone": "<string>",
"office_phone": "<string>",
"address_string": "<string>",
"memo": "<string>",
"status": "<string>",
"transaction_tags": [
"<unknown>"
],
"documents": [
{
"url": "<string>",
"expires_in": 123,
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "<string>",
"file_size": 123,
"mime_type": "<string>"
}
],
"external_id": "<string>",
"individual_name": "<string>",
"company_name": "<string>",
"email": "jsmith@example.com"
},
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_identifier": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "AccountId"
},
"currency": "<string>",
"unit_price": 123,
"quantity": 123,
"subtotal": 123,
"sales_taxes_total": 123,
"total_amount": 123,
"tax_rate": 123,
"description": "<string>",
"product": "<string>"
}
],
"bill_payment_allocations": [
{
"amount_cents": 123,
"payment_date": "2023-12-25",
"payment_method": "<string>",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"vendor_credit_allocations": [
{
"amount_cents": 123,
"applied_at": "2023-11-07T05:31:56Z",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_number": "<string>"
}
],
"vendor_refund_allocations": [
{
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"allocated_at": "2023-11-07T05:31:56Z",
"reference_number": "<string>"
}
],
"additional_sales_taxes": [
{
"amount": 123,
"tax_account": "<unknown>",
"rate": "<string>",
"name": "<string>"
}
],
"additional_sales_taxes_total": 123,
"subtotal": 123,
"total_amount": 123,
"outstanding_balance": 123,
"paid_by_bank_payments": 123,
"paid_by_credits": 123,
"needs_reconciliation": true,
"document": {
"url": "<string>",
"expires_in": 123,
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "<string>",
"file_size": 123,
"mime_type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"bill_number": "<string>",
"vendor_bill_number": "<string>",
"purchase_order_number": "<string>",
"memo": "<string>",
"reference_numbers": "<unknown>",
"attachment_urls": "<unknown>",
"metadata": "<unknown>"
}Authorizations
PartnerJWTBusinessScopedJWTBasicAuthBearerUnscopedBearerBusinessScoped
Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>
Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.
Response
200 - application/json
Main bill serializer for list/fetch responses, aligned with existing API style
Was this page helpful?