Ana içeriğe geç

Fatura Listeleme

Şirketinize ait faturaları listeleme ve filtreleme.

Endpoint

GET /kolaybi/v1/invoices

Parametreler

ParametreTipAçıklama
typeInvoiceTypeFatura türü ile filtreleme

Fatura Türleri

TürAçıklama
sale_invoiceSatış faturası
sale_return_invoiceSatış iade faturası
purchase_invoiceAlış faturası
purchase_return_invoiceAlış iade faturası
self_employment_receiptSerbest meslek makbuzu

Örnekler

# Tüm faturalar
curl -X GET "https://ofis-sandbox-api.kolaybi.com/kolaybi/v1/invoices" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Channel: YOUR_CHANNEL"

# Sadece satış faturaları
curl -X GET "https://ofis-sandbox-api.kolaybi.com/kolaybi/v1/invoices?type=sale_invoice" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Channel: YOUR_CHANNEL"

Yanıt Formatı

{
"success": true,
"data": [
{
"id": 1,
"serial_no": "FAT-2024-001",
"order_date": "2024-01-15",
"due_date": "2024-02-15",
"total_amount": 240.0,
"currency": "TRY",
"status": "ready_to_send",
"type": "sale_invoice",
"contact": {
"id": 1,
"name": "Ahmet",
"surname": "Yılmaz"
}
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total": 1
}
}

Fatura Durumları

DurumAçıklama
draftTaslak
ready_to_sendGönderime hazır
sentGİB'e gönderildi
approvedOnaylandı
rejectedReddedildi
cancelledİptal edildi