long), tarihler +03:00, enum değerleri snake_case’tir. Liste uçları page ve page_size ile sayfalanır ve items, page, total_pages, total_count alanlarını döner.
Sorgu
POST /api/v1/invoices/query · politika CanViewInvoices
amount kuruma ödenecek net bedeldir; total_amount müşteriye yansıyan toplamdır (amount + komisyonlar). status: pending, paid, cancelled, overdue, error.
Ödeme
POST /api/v1/invoices/{id}/pay · CanManageInvoices · pasif/onaysız bayi için kapalı
Yanıt:
is_success, error_code (kanonik Payven kodu), provider_error_code (kurumun ham kodu), error_message (Accept-Language’e göre TR/EN), provider_transaction_id, payment.
payment alanları: id, invoice_id, amount, customer_total_amount, collected_amount, amount_receivable, is_settled, payment_date, status (pending, success, failed, cancelled, refunded), provider_transaction_id, error_message.
İptal
POST /api/v1/invoices/{id}/cancel · CanManageInvoices — buradaki {id} fatura ödemesinin (payment.id) kimliğidir.
is_success, error_code, error_message, payment. Başarılı tahsilatlar varsa bakiye kaynaklı olanlar için defterde ters kayıt yazılır; sonuç fatura-odeme.invoice.cancelled olayı ile bildirilir.
Listeleme
from/to değerlerinde +03:00 ofseti gönderin (2026-10-01T00:00:00+03:00); ofsetsiz değer UTC sayılır.