قراءة الاستخدام المقبول وتسويات الفواتير الشهرية
curl --request GET \
--url https://api.truthlocks.com/v1/billing/usage-settlements \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/billing/usage-settlements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/billing/usage-settlements"
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/usage-settlements"
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))
}{
"settlements": [
{}
],
"usage": [
{}
],
"settlement_mode": "draft_then_staff_review",
"automatic_collection": false,
"usage_limit": 500,
"settlement_limit": 200
}الفوترة
الاستخدام المقبول والفواتير الشهرية
اقرأ تصنيفات الاستخدام المقبولة لمساحة عملك وتسويات الفواتير الشهرية.
GET
/
v1
/
billing
/
usage-settlements
قراءة الاستخدام المقبول وتسويات الفواتير الشهرية
curl --request GET \
--url https://api.truthlocks.com/v1/billing/usage-settlements \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/billing/usage-settlements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/billing/usage-settlements"
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/usage-settlements"
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))
}{
"settlements": [
{}
],
"usage": [
{}
],
"settlement_mode": "draft_then_staff_review",
"automatic_collection": false,
"usage_limit": 500,
"settlement_limit": 200
}يتطلب المصادقة ويعيد فقط سجلات مساحة عمل المتصل. لا تقوم نقطة النهاية هذه بإنشاء أو الموافقة على أو دفع الفواتير.
usage يحتوي على ما يصل إلى 500 سجل مجمع. اقرأ environment، classification، quantity، currency، و amount_cents معًا. rated يعني أنه تم الحفاظ على لقطة التسعير عند قبول الفوترة. يتم استبعاد Sandbox والخطط المجانية وخطط المستهلك والبرامج التجريبية المعتمدة وإعادة محاولات السك التاريخية من رسوم الاستخدام التجاري. تحتفظ تسعيرة الأساس غير المحلولة أو أدلة البيئة بالشهر لمراجعة الموظفين.
settlements يحتوي على ما يصل إلى 200 سجل فاتورة شهرية، الأحدث أولاً. DRAFT غير قابل للدفع. يجب على الموظفين مراجعة الاتفاقية التجارية المقبولة والضرائب وبلد الفوترة قبل الإصدار. automatic_collection دائمًا false لسير العمل هذا: إصدار فاتورة لا يفرض رسومًا على طريقة دفع محفوظة.
يستخدم شهر الفوترة بالتوقيت العالمي المنسق وقت القبول. لا يتم إصدار فواتير بأثر رجعي للعدادات المجمعة الحالية. استمر في استخدام نفس مفتاح عدم التكرار إذا أبلغت عملية سك العملة أنه لا يمكن تأكيد إيصال الفوترة الخاص بها.
المبالغ التي تنتهي بـ _cents هي سنتات صحيحة. تستخدم الفاتورة المستردة بشكل منفصل وحدات العملة. على سبيل المثال، يتوافق amount_cents: 2500 مع 25.00 دولارًا أمريكيًا.
