Yeni E-Fatura oluştururken aşağıdaki bilgileri eksiksiz girmeniz gerekmektedir. Zorunlu belirtilen alanları tam doldurmamız halinde faturamız başarıyla taslaklara kaydedilir ve “success” mesajını alırız. Dönen response sonucunda taslaklara kaydedilen faturanın, ettn bilgisini görebiliriz.
{
"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDE5MDY3OTQsImp0aSI6MTY0MTkwNjc5NCwiaXNzIjoiaHR0cHM6XC9cL3Vwb250ZS5jb20iLCJuYmYiOjE2NDE5MDY3OTQsImV4cCI6MTY0MTkxMDM5NCwiZGF0YSI6eyJ1c2VySWQiOjksInVzZXJWa24iOiIxODgzMDk5MTgzOCIsInVzZXJOYW1lIjoiVUJMIFRFS05PTE9KXHUwMTMwIEEuXHUwMTVlIiwibXVrZWxsZWZfaWQiOm51bGx9fQ.PXoNiOJM2eH99TUXOFUlKqFFYuVh_hfAjhfGrLOJxkU",
"method": "saveInvoices",
"invoices": [
{
"receiver": {
"taxNumber": "1111111111",
"name": "DEMO LTD.ŞTİ",
"taxOffice": "Çankaya Vergi Dairesi Müdürlüğü",
"country": "Türkiye",
"city": "Ankara",
"county": "Çankaya",
"address": "Alıcı Adres",
"email": "info@demo.com",
"pkAddress": "urn:mail:defaultpk@demoltdsti.com",
"phoneNumber": "03123121212",
"fax": "03123121212",
"webSite": "www.demo.com",
"firstName": "ALİ",
"middleName": "AHMET",
"familyName": "KARA"
},
"invoiceType": "SALE",
"invoiceScenario": "BASE_INVOICE",
"invoiceDate": "2022-01-01",
"invoiceHour": "12:00",
"taxInclusiveAmount": 118,
"currency": {
"currencyUnit": "TRY",
"currencyRate": "1.00000"
},
"invoiceLines": [
{
"name": "ÖRNEK KALEM",
"quantity": 1,
"unitOfMeasure": "C62",
"price": 100,
"lineExcAmount": 100,
"lineExtensionAmount": 118,
"tax": 18,
"taxAmount": 18
}
]
}
]
}
{
"result": "success",
"data": [
{
"receiver": {
"taxNumber": "1111111111",
"name": "DEMO LTD.ŞTİ",
"taxOffice": "Çankaya Vergi Dairesi Müdürlüğü",
"country": "Türkiye",
"city": "Ankara",
"county": "Çankaya",
"address": "Alıcı Adres",
"email": "info@demo.com",
"pkAddress": "urn:mail:defaultpk@demoltdsti.com",
"phoneNumber": "03123121212",
"fax": "03123121212",
"webSite": "www.demo.com",
"firstName": "ALİ",
"middleName": "AHMET",
"familyName": "KARA"
},
"invoiceType": "SATIS",
"invoiceScenario": "TEMELFATURA",
"invoiceDate": "2022-01-01",
"invoiceHour": "12:00",
"taxInclusiveAmount": 118,
"currency": {
"currencyUnit": "TRY",
"currencyRate": "1.00000"
},
"invoiceLines": [
{
"name": "ÖRNEK KALEM",
"quantity": 1,
"unitOfMeasure": "C62",
"price": 100,
"lineExcAmount": 100,
"lineExtensionAmount": 118,
"tax": 18,
"taxAmount": 18
}
],
"earsivSentType": null,
"ettn": "3CEF24FD-4F62-4993-8E16-AD243E7BA7FC",
"fid": "63840"
}
]
}