قائمة أنواع الإيصالات
curl --request GET \
--url https://api.truthlocks.com/v1/receipt-types \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/receipt-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/receipt-types"
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/receipt-types"
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": [
{
"name": "<string>",
"display_name": "<string>",
"schema": {},
"created_at": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}الإيصالات
قائمة أنواع الإيصالات
يعرض جميع أنواع الإيصالات المسجلة للمستأجر المصادق عليه.
GET
/
v1
/
receipt-types
قائمة أنواع الإيصالات
curl --request GET \
--url https://api.truthlocks.com/v1/receipt-types \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/receipt-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/receipt-types"
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/receipt-types"
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": [
{
"name": "<string>",
"display_name": "<string>",
"schema": {},
"created_at": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}يعرض جميع أنواع الإيصالات المتاحة للمستأجر المصادق عليه. يتضمن جميع الأنواع الخمسة المحددة بواسطة النظام الأساسي (المتاحة عالميًا لكل مستأجر) بالإضافة إلى أي أنواع مخصصة مسجلة بواسطة المستأجر.
استخدم نقطة النهاية هذه لاكتشاف الأنواع المتاحة وفحص مخطط JSON الذي يفرضه كل نوع على حقل
تحتوي أنواع المنصات على
payload عند سك إيصال.
الأنواع المعرفة من قبل المنصة
| الاسم | اسم العرض | حالة الاستخدام |
|---|---|---|
payment_receipt | إيصال دفع | المدفوعات، الفواتير، المبالغ المستردة |
security_event_receipt | إيصال حدث أمني | أحداث المصادقة، تدوير المفاتيح، الشذوذ |
delivery_receipt | إيصال التسليم | تسليم المستندات/بيانات الاعتماد/الإشعارات |
compliance_receipt | إيصال الامتثال | KYC، AML، فحوصات العقوبات |
custom_receipt | إيصال مخصص | أي حدث يحدده المستأجر (مخطط مفتوح) |
tenant_id: null في الاستجابة. تتضمن الأنواع المخصصة للمستأجرين tenant_id الخاصة بهم.

