Rahat Sistem
  1. Fatura
Rahat Sistem
  • Giriş
  • Listeler
  • Belge Entegrasyonu
    • Fatura
      • Fatura Oluşturma
        POST
      • Taslaktaki Faturayı Güncelleme
        POST
      • Taslaktaki Faturayı Gönderme
        POST
      • Taslaktaki Faturayı Silme
        POST
      • Fatura Dışa Aktarma
        POST
      • Fatura Listeleme
        POST
      • e-Arşiv Faturaları İptal Etme
        POST
      • e-Faturaları Yanıtlama
        POST
      • Faturayı Mail Olarak Gönderme
        POST
      • Fatura İşaretleme
        POST
    • İrsaliye
      • İrsaliye Oluşturma
      • Taslaktaki İrsaliyeyi Güncelleme
      • Taslaktaki İrsaliyeyi Silme
      • Taslaktaki İrsaliyeyi Gönderme
      • İrsaliye Dışa Aktarma
      • İrsaliye Listeleme
      • İrsaliye İşaretleme
    • Serbest Meslek Makbuzu
      • Makbuz Oluşturma
      • Taslaktaki Makbuzu Güncelleme
      • Taslaktaki Makbuzu Silme
      • Taslaktaki Makbuzu Gönderme
      • e-SMM Dışa Aktarma
      • e-SMM Listeleme
      • e-SMM İptal Etme
      • e-SMM Mail Olarak Gönderme
      • e-SMM İşaretleme
  1. Fatura

Fatura Listeleme

RahatSistem Demo
https://apidemo.rahatsistem.com.tr
RahatSistem Demo
https://apidemo.rahatsistem.com.tr
POST
/v2/documents/invoice.list
Faturae-Faturae-Arşiv Fatura

Açıklama#

Bu endpoint, resmi gelen ve giden faturalarınızı listelemek için kullanılır.
TIP
sortBy bilgisi issue_date olarak gönderilirse, belirtilen başlangıç ve bitiş tarihleri, fatura tarihi üzerinden filtrelenerek yanıt dönülür. Eğer received_at olarak gönderilse, faturalar zarf tarihlerine göre filtrelenerek yanıt dönülür.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Body Params application/json
document
enum<string> 
required
Faturaların e-Fatura, e-Arşiv Fatura bilgisi
Allowed values:
einvoiceearchive
query
object 
required
Filtre Objesi
direction
enum<string> 
optional
Giden faturaları listelemek için out, gelen faturaları listelemek için in bilgisi girilecektir
Allowed values:
inout
startDate
string 
required
Fatura listesinin hangi tarihten itibaren listeleneceği (YYYY-MM-DD formatında gönderilmeli)
endDate
string 
required
Fatura listesinin hangi tarihe kadar listeneceği (YYYY-MM-DD formatında gönderilmeli)
sortBy
enum<string> 
optional
Bu bilgi listelemede hangi tarihin baz alınacağı bilgisidir
Allowed values:
received_atissue_date
Default:
issue_date
sortDefs
array [object {2}] 
optional
Listenin hangi bilgi ile sıralanacağının bilgisini içerir
Default:
{"field":"issue_date","direction":"asc"}
search
string  | null 
optional
Kelime ile arama filtresi
<= 250 characters
pageSize
integer 
optional
Sayfanın kaç fatura içereceği bilgisi
>= 1<= 100
Default:
10
page
integer 
optional
Kaçıncı sayfanın talep edildiğinin bilgisi
>= 1
Default:
1
statusCodes
array[number]
optional
Faturaları durum koduna göre filtrelemek için kullanılır (Geçerli kodlar için listeleye bakınız)
Allowed values:
201220012002200320004000
replyStatusCodes
array[number]
optional
Faturaları yanıt durumlarına göre filtremek için kullanılır (Geçerli kodlar için listeye bakınız)
Allowed values:
2004200520062011
includeErp
boolean 
optional
Erp işareti konulmuş belgeleri ayrımak için kullanılır
printed
boolean 
optional
Yazdırıldı işareti konulmuş belgeleri ayırmak için kullanılır
readMarked
boolean 
optional
Okundu işareti konulmuş belgeleri ayırma için kullanılır
profileIds
array[string]
optional
Fatura profil bilgisini filtrelemek için kullanılır
Allowed values:
TEMELFATURATICARIFATURAIHRACATKAMUEARSIVFATURA
typeCodes
array[string]
optional
Fatura tipi bilgisini filtrelemek için kullanılır
Allowed values:
SATISIADETEVKIFATISTISNAIHRACKAYITLIOZELMATRAHSGK
Example
{
  "document": "einvoice",
  "query": {
    "direction": "in",
    "startDate": "string",
    "endDate": "string",
    "sortBy": "issue_date",
    "sortDefs": [
      {
        "field": "issue_date",
        "direction": "asc"
      }
    ],
    "search": "string",
    "pageSize": 10,
    "page": 1,
    "statusCodes": [
      2012
    ],
    "replyStatusCodes": [
      2004
    ],
    "includeErp": true,
    "printed": true,
    "readMarked": true,
    "profileIds": [
      "TEMELFATURA"
    ],
    "typeCodes": [
      "SATIS"
    ]
  }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apidemo.rahatsistem.com.tr/v2/documents/invoice.list' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "document": "einvoice",
    "query": {
        "direction": "in",
        "startDate": "string",
        "endDate": "string",
        "sortBy": "issue_date",
        "sortDefs": [
            {
                "field": "issue_date",
                "direction": "asc"
            }
        ],
        "search": "string",
        "pageSize": 10,
        "page": 1,
        "statusCodes": [
            2012
        ],
        "replyStatusCodes": [
            2004
        ],
        "includeErp": true,
        "printed": true,
        "readMarked": true,
        "profileIds": [
            "TEMELFATURA"
        ],
        "typeCodes": [
            "SATIS"
        ]
    }
}'

Responses

🟢200OK
application/json
Body
data
object 
required
pagination
object 
required
items
array [object {33}] 
required
Fatura listesi
Example
{
  "data": {
    "pagination": {
      "count": 0,
      "count_unfiltered": 0,
      "page_size": 0,
      "page_index": 0
    },
    "items": [
      {
        "integrator": "string",
        "uuid": "string",
        "id": "string",
        "profile_id": "string",
        "type_code": "string",
        "issue_date": "string",
        "issue_time": "string",
        "currency": "string",
        "note": "string",
        "notes": [
          "string"
        ],
        "sender": {
          "name": "string",
          "vkn_tckn": "string",
          "city": "string",
          "city_subdivision": "string",
          "tax_office": "string",
          "email": "string"
        },
        "receiver": {
          "name": "string",
          "vkn_tckn": "string",
          "city": "string",
          "city_subdivision": "string",
          "email": "string"
        },
        "line_extension": 0,
        "line_extension_currency": "string",
        "tax_exclusive": 0,
        "tax_exclusive_currency": "string",
        "tax_inclusive": 0,
        "tax_inclusive_currency": "string",
        "allowance": 0,
        "allowance_currency": "string",
        "payable": 0,
        "payable_currency": "string",
        "tax": {
          "amount": 0,
          "amount_currency": "string",
          "subtotals": [
            {
              "name": "string",
              "code": "string",
              "percent": 0,
              "taxable": 0,
              "taxable_currency": "string",
              "amount": 0,
              "amount_currency": "string"
            }
          ]
        },
        "tax_totals": [
          {
            "amount": 0,
            "amount_currency": "string",
            "subtotals": [
              {
                "name": "string",
                "code": "string",
                "percent": 0,
                "taxable": 0,
                "taxable_currency": "string",
                "amount": 0,
                "amount_currency": "string"
              }
            ]
          }
        ],
        "received_at": "string",
        "is_archived": true,
        "is_printed": true,
        "send_method": "string",
        "is_online_sale": true,
        "status": {
          "summary": "string",
          "status_code": 0,
          "status": "string",
          "gib_status_code": 0,
          "message": "string",
          "progress": {
            "step": 0,
            "step_count": 0,
            "percentage": 0
          }
        },
        "short_id": "string",
        "app_name": null,
        "lines": [
          {
            "id": "string",
            "name": "string",
            "quantity": 0,
            "quantity_unit": "string",
            "price": 0,
            "price_currency": "string",
            "extension_amount": 0,
            "extension_amount_currency": "string",
            "tax_totals": [
              {
                "amount": 0,
                "amount_currency": "string",
                "subtotals": [
                  {
                    "name": "string",
                    "code": "string",
                    "percent": 0,
                    "taxable": 0,
                    "taxable_currency": "string",
                    "amount": 0,
                    "amount_currency": "string"
                  }
                ]
              }
            ],
            "tax": {
              "amount": 0,
              "amount_currency": "string",
              "subtotals": [
                {
                  "name": "string",
                  "code": "string",
                  "percent": 0,
                  "taxable": 0,
                  "taxable_currency": "string",
                  "amount": 0,
                  "amount_currency": "string"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}
🟠400Bad Request
Previous
Fatura Dışa Aktarma
Next
e-Arşiv Faturaları İptal Etme
Built with