Ana içeriğe geç

Proforma Detay

İlgili şirkete ait proforma bilgileri.

Endpoint​

GET /kolaybi/v1/proformas/{document_id}

Parametreler​

ParametreTipAçıklama
document_idintegerDetayı alınmak istenen proformanın ID değeri

Örnekler​

curl -X GET "https://ofis-sandbox-api.kolaybi.com/kolaybi/v1/proformas/18" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Channel: YOUR_CHANNEL"

Yanıt​

{
"data": {
"document_id": 18,
"order_number": "PROF-001",
"associate_id": 1,
"currency": "usd",
"description": "Örnek proforma açıklaması",
"issue_date": "2024-01-15 00:00:00",
"expiry_date": "2024-01-30 00:00:00",
"grand_total": 236,
"gross_total": 200,
"total_vat": 36,
"subtotal": 200,
"lines": [
{
"id": 57,
"product_id": 1,
"product_name": "Test Ürün",
"product_code": "URN-001",
"unit": "UNIT.EACH",
"unit_id": "C62",
"quantity": 2,
"unit_price": 100,
"amount": 200,
"discount_type": null,
"discount_value": null,
"discount_amount": 0,
"discounts_text": "",
"discounts": [],
"subtotal": 200,
"vat_type": "percentage",
"vat_value": 18,
"vat_amount": 36,
"total": 236,
"grand_total": 236,
"description": "Açıklama"
}
]
}
}

Yanıt Alanları​

AlanTipAçıklama
dataobjectProforma kaydı

Proforma Alanları (data)​

AlanTipAçıklama
document_idintegerProforma ID değeri
order_numberstringProforma seri numarası
associate_idintegerCarinin ID değeri
currencystringProforma para birimi
descriptionstringProforma açıklaması
issue_datestringDüzenleme tarihi (YYYY-MM-DD HH:mm:ss)
expiry_datestringGeçerlilik tarihi (YYYY-MM-DD HH:mm:ss)
grand_totalnumberProforma para biriminde KDV dahil toplam
gross_totalnumberBrüt toplam (indirimler sonrası, KDV hariç)
total_vatnumberToplam KDV
subtotalnumberAra toplam (indirimler uygulanmadan kalem tutarları toplamı)
linesarrayProforma kalemleri (lines[n]); alanlar Sipariş Detayı sayfasındaki kalem alanlarıyla aynıdır