الطلب
curl -X POST "https://your-business.qaydtech.com/api/v1/journal-entries/42/post" \
-H "Authorization: Bearer $QAYD_API_KEY" \
-H "Accept: application/json"
const response = await fetch('https://your-business.qaydtech.com/api/v1/journal-entries/42/post', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.QAYD_API_KEY}`,
Accept: 'application/json',
},
});
const result = await response.json();
$curl = curl_init('https://your-business.qaydtech.com/api/v1/journal-entries/42/post');
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . getenv('QAYD_API_KEY'),
'Accept: application/json',
]);
$result = json_decode(curl_exec($curl), true);
import os
import requests
response = requests.request(
"POST",
"https://your-business.qaydtech.com/api/v1/journal-entries/42/post",
headers={
"Authorization": f"Bearer {os.environ['QAYD_API_KEY']}",
"Accept": "application/json",
},
)
result = response.json()
{
"data": {
"id": 910,
"number": "JE-2026-00910",
"status": "posted",
"source": "manual",
"date": "2026-11-15",
"description": "إثبات إيجار نوفمبر",
"reference": "ACC-77",
"total": "5000.00",
"is_balanced": true,
"reversal_of_id": null,
"lines": [
{
"account": {
"id": 51,
"code": "5201",
"name": "الإيجارات"
},
"contact_id": null,
"cost_center_id": null,
"description": null,
"debit": "5000.00",
"credit": "0.00"
},
{
"account": {
"id": 12,
"code": "11103",
"name": "البنك - الحساب الجاري"
},
"contact_id": null,
"cost_center_id": null,
"description": null,
"debit": "0.00",
"credit": "5000.00"
}
],
"posted_at": "2026-11-15T09:00:00+03:00",
"created_at": "2026-11-15T09:00:00+03:00"
}
}
{
"error": {
"code": "document_entry",
"message": "هذا القيد كتبه مستند، فيتغيّر مع مستنده لا وحده."
}
}