Get Vendor Reports
curl --request GET \
--url https://production-api.puppetvendors.com/v1/report/{vendorId} \
--header 'x-access-token: <api-key>'import requests
url = "https://production-api.puppetvendors.com/v1/report/{vendorId}"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://production-api.puppetvendors.com/v1/report/{vendorId}', 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://production-api.puppetvendors.com/v1/report/{vendorId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://production-api.puppetvendors.com/v1/report/{vendorId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production-api.puppetvendors.com/v1/report/{vendorId}")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production-api.puppetvendors.com/v1/report/{vendorId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyReports
Get Vendor Reports
Retrieve calculated line item reports for a vendor
GET
/
v1
/
report
/
{vendorId}
Get Vendor Reports
curl --request GET \
--url https://production-api.puppetvendors.com/v1/report/{vendorId} \
--header 'x-access-token: <api-key>'import requests
url = "https://production-api.puppetvendors.com/v1/report/{vendorId}"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://production-api.puppetvendors.com/v1/report/{vendorId}', 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://production-api.puppetvendors.com/v1/report/{vendorId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://production-api.puppetvendors.com/v1/report/{vendorId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production-api.puppetvendors.com/v1/report/{vendorId}")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production-api.puppetvendors.com/v1/report/{vendorId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyOverview
Returns a paginated list of calculated line items for a specific vendor, including sales, commissions, costs, and payouts. This is the data that appears in the vendor reports view.Use Cases
- Generate vendor statements for a specific date range
- Build custom vendor dashboards with financial breakdowns
- Export report data to CSV/Excel for accounting
- Reconcile vendor earnings against payment records
- Feed data into a BI tool for margin and performance analysis
Path Parameters
string
required
The vendor’s unique ID.
Query Parameters
string
Start date in
YYYY-MM-DD format.string
End date in
YYYY-MM-DD format.number
Results per page. Default:
100.number
Number of results to skip. Default:
0.Response
200
{
"total": 156,
"nextOffset": 100,
"orders": [
{
"_id": "...",
"orderNumber": 1042,
"orderName": "#1042",
"orderId": 5022136860720,
"orderDate": "2024-03-15T00:00:00.000Z",
"vendorName": "acme supplies",
"vendorId": "6157faecbebcf01bf49097d9",
"title": "Classic T-Shirt",
"variant": "Large / Blue",
"sku": "TSH-LG-BLU",
"unitPrice": 29.99,
"quantity": 2,
"discount": 0,
"sales": 59.98,
"salesAfterDiscount": 59.98,
"tax": 10.00,
"costOfItem": 31.00,
"commissionPlan": "14%",
"commission": 8.40,
"deduction": 0,
"payout": 41.58,
"createdAt": "2024-03-15T08:30:00.000Z",
"updatedAt": "2024-03-15T08:30:00.000Z"
}
]
}
Example
# Vendor report for March 2024
curl -X GET "https://api.puppetvendors.com/v1/report/6157faecbebcf01bf49097d9?start=2024-03-01&end=2024-03-31&limit=50" \
-H "x-access-token: YOUR_JWT_TOKEN"
Was this page helpful?