كائن عرض السعر
idstring (id)المعرّف الفريد للمستند.
numberstringيقبل nullالرقم المعروض، مثل
SO-2026-00042؛ يُعيَّن عند الإصدار، لذا يكون null في المسودة الجديدة (المستند المُعاد إلى مسودة يحتفظ برقمه).statusenumموضع عرض السعر في دورة حياته.
القيم الممكنة:
draftissuedconvertedcanceledcustomerobjectيقبل nullnull لعملية بيع دون عميل.
الحقول:
id, code, name, status, is_trashed· التفاصيلbranchobjectالفرع الذي ينتمي إليه المستند.
الحقول:
id, name· التفاصيلsalespersonobjectيقبل nullمندوب المبيعات المسؤول، إن وُجد.
الحقول:
id, name· التفاصيلissued_onstring (date)تاريخ المستند، وفق تقويم مساحة العمل.
currencyobjectعملة المستند.
الحقول:
code, name, sign· التفاصيلexchange_ratestring (decimal)يقبل nullسعر الصرف من عملة المستند إلى العملة الوظيفية؛ null حتى يُسعَّر المستند أو يُصدر.
totalstring (decimal)الإجمالي شاملاً الضريبة، بعملة المستند.
base_totalstring (decimal)يقبل nullبالعملة الوظيفية؛ يُحدَّد عند الإصدار.
notesstringيقبل nullملاحظات على المستند.
created_atstring (timestamp)وقت إنشاء المستند.
updated_atstring (timestamp)آخر وقت تغيّر فيه المستند. تقارن عمليات المزامنة عبر
updated_sinceبهذه القيمة.trashed_atstring (timestamp)يقبل nullوقت نقل المستند إلى سلة المهملات؛ null إذا لم يكن فيها. لا تُعيد السجلات المحذوفة إلى سلة المهملات إلا عمليات المزامنة عبر
updated_since.expires_onstring (date)يقبل nullآخر يوم يسري فيه عرض السعر؛ null إذا كان لا ينتهي.
lineslist of sales linesفي طلب التفاصيل فقط.
{
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"number": "QT-2026-00003",
"status": "draft",
"customer": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"code": "CUS-000001",
"name": "Acme Trading",
"status": "active",
"is_trashed": false
},
"branch": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"name": "Main branch"
},
"salesperson": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"name": "Sara Ahmed"
},
"issued_on": "2026-10-31",
"currency": {
"code": "IQD",
"name": "Iraqi Dinar",
"sign": "IQD"
},
"exchange_rate": "1.000000",
"total": "10000.00",
"base_total": "10000.00",
"notes": "Deliver before noon.",
"created_at": "2026-10-31T09:15:00.000000Z",
"updated_at": "2026-10-31T09:15:00.000000Z",
"trashed_at": null,
"expires_on": "2026-10-31",
"lines": [
{
"line_number": 1,
"product": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"sku": "TEA-500",
"barcode": "6260000000017",
"name": "Black tea 500 g"
},
"description": "Example description.",
"unit": "box",
"quantity": "2.0000",
"price": "10000.00",
"discounted_price": "10000.00",
"subtotal": "10000.00",
"tax_rate": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"code": "VAT15",
"rate_percent": "15.0000",
"type": "exclusive"
},
"tax_amount": "10000.00",
"line_total": "10000.00",
"notes": "Deliver before noon."
}
]
}