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#
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
Allowed values:
einvoiceearchive
query
object
required
direction
enum<string>
optional
out
, gelen faturaları listelemek için in
bilgisi girilecektirAllowed values:
inout
startDate
string
required
endDate
string
required
sortBy
enum<string>
optional
Allowed values:
received_atissue_date
Default:
issue_date
sortDefs
array [object {2}]
optional
Default:
{"field":"issue_date","direction":"asc"}
search
string | null
optional
<= 250 characters
pageSize
integer
optional
>= 1<= 100
Default:
10
page
integer
optional
>= 1
Default:
1
statusCodes
array[number]
optional
Allowed values:
201220012002200320004000
replyStatusCodes
array[number]
optional
Allowed values:
2004200520062011
includeErp
boolean
optional
printed
boolean
optional
readMarked
boolean
optional
profileIds
array[string]
optional
Allowed values:
TEMELFATURATICARIFATURAIHRACATKAMUEARSIVFATURA
typeCodes
array[string]
optional
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
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