Skip to content

kenanaykutkoc/ivd-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IVD Lib

Installing

npm install @yek-plus/ivd

Usage

const ivd = require("@yek-plus/ivd");
ivd()
  .get.org({
    ilNo: "34",
    vdNo: "034247",
    vNo: "3090345332",
    tckNo: "",
  })
  .then(console.log);

Options

property type required default description
fetch function false node-fetch package request fetch function

Methods

get


Il

Usage

ivd().get.vdIller();

Input

property type required default description

Response

const response = [
  {
    kod: String,
    ad: String,
  },
];

Daireler

Usage

ivd().get.vdDaireler({ kod: "001" });

Input

property type required default description
kod string true null il kodu

Response

const response = [
  {
    vdKodu: String,
    vdAdi: String,
    orgOid: String,
    vdKoduAdi: String,
    vdAdiKodu: String,
    ilKodu: String,
  },
];

Org

Usage

const ivd = require("@yek-plus/ivd");
ivd()
  .get.org({
    ilNo: "34",
    vdNo: "034247",
    vNo: "3090345332",
    tckNo: "",
  })
  .then(console.log);

Input

property type required default description
ilNo string true null Vergi numarasının kayıtlığı olduğu il id'si
vdNo string true null Vergi numarasının kayıtlığı olduğu vergi dairesi id'si
vNo number false null Vergi numarası İsim
tckNo number false null TC kimlik numarası Yılı

Note: vNo or tckNo one of these is required

Response

const response = {
  durum: String,
  tckn: String,
  durum_text: String,
  vkn: String,
  vdkodu: String,
  sorgulayantckimlik: String,
  unvan: String,
  status: Boolean,
};

Todo

  • Write Tests

About

İnteraktif Vergi Dairesi API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published