Bu endpoint ile sahip olduğunuz bütün faturaları listeleyebilirsiniz.
GET https://api.ni.net.tr/v2/invoices
Herhangi bir parametre göndermenize gerek yoktur.
{
"status": true,
"message": "Invoice list",
"error": null,
"data": [
{
"id": 00001,
"date": "2023-08-22",
"date_paid": "0001-01-01",
"is_paid": true,
"total_amount": "348.89₺",
"status": true,
"items": [
{
"amount": "348.89₺",
"description": "Domain - test.com",
"id": 35
}
],
},
{
"id": 00002,
"date": "2024-01-02",
"date_paid": "2023-12-25",
"is_paid": true,
"total_amount": "516.07₺",
"status": true,
"items": [
{
"amount": "516.07₺",
"description": "SSD VDS I - server.deneme.com - 1 Aylık (15-12-2023 - 15-01-2024)",
"id": 13340
}
],
}
]
}
Bu endpoint ile kendinize ait bir faturayı id numarasına göre sorgulayabilirsiniz.
GET https://api.ni.net.tr/v2/invoices/00001
Invoices kısmından sonra sahip olduğunuz fatura id numarasını yazmanız gerekmektedir.
{
"status": true,
"message": "Invoice detail",
"error": null,
"data": {
"id": 00001,
"date": "2023-08-22",
"date_paid": "0001-01-01",
"is_paid": true,
"total_amount": "348.89₺",
"status": true,
"items": [
{
"amount": "348.89₺",
"description": "Domain - test.com",
"id": 35
}
],
}
}