سرد الفواتير
curl --request GET \
--url https://api.truthlocks.com/v1/billing/invoices \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/billing/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/billing/invoices"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/billing/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"created_at": "<string>"
}
],
"cursor": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}الفوترة
سرد الفواتير
يُرجع قائمة مُصفحة بالفواتير للمستأجر المصادق عليه.
GET
/
v1
/
billing
/
invoices
سرد الفواتير
curl --request GET \
--url https://api.truthlocks.com/v1/billing/invoices \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/billing/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/billing/invoices"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/billing/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"created_at": "<string>"
}
],
"cursor": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}يعرض الفواتير لمساحة العمل المصادق عليها. لا ينفذ هذا المعالج عوامل تصفية
start أو end. لتنزيل مفلتر حسب التاريخ، استخدم تصدير المحاسبة. تعتمد المبالغ وروابط المستندات على سجل الفاتورة؛ لا تفترض أن جميع الروابط الاختيارية موجودة.
