1. Yardım Sayfası
Kurulum sonrası, ya da uygulamaya erişmeden önce kurulum dokümanında bahsedilen servislerin çalışır durumda olduğunun testinin yapılması gerekmektedir.
Bu test sonrası servisler çalışır durumda görünüyor ise adresi yardım sayfasına;
http://localhost:7070/api/v2/help üzerinden ulaşılabilir. Desteklenen tüm fonksiyon, aldıkları parametre ve nesne tiplerine detaylıca erişilmektedir.
Bu adres üzerinden ihtiyacımız olan kullanılacak API adresleri seçilir. Bu bilgileri kullanacağımız aracımız ise “NetOpenX.Rest.TestApp.exe” nin Operation Sekmesinin ‘Path’ alanıdır.
*NetOpenX.Rest.TestApp.exe, Rest kullanımında verilerin doğru alınıp gönderilebildiğini gözlememizi sağlayan test aracıdır.
2. Methodlar (paket tipleri) ile kullanılabilecek Path (API) örnekleri ve açıklamaları
a) GET
Toplu veri listesi döndürmek ya da tek bir kayıt döndürmek için kullanılır.
Örneğin;
api/v2/ARPs işleminde tüm cari listesini getirirken, api/v2/ARPs/C001 işleminde sadece C001 carisinin bilgilerini getirmektedir.
Toplu veri listesi işlemlerinde limit, sayfalama, sıralama, filtreleme gibi bir çok kısıt yapılabilmektedir:
Limit
http://localhost:7070/api/v2/ARPs?limit=10 her sayfanın kayıtların sayısını belirler. Varsayılan sınır değeri 20'dir.
Sayfalama
http://localhost:7070/api/v2/ARPs?offset=20 sayfalamanın başladığı değerdir. Varsayılan değer 0 dır.
Sıralama
http://localhost:7070/api/v2/ARPs?sort=CARI_KOD ASC şeklinde sıralama yapmaktadır. Birden fazla sıralama verilmesi durumunda ‘,’ ile ayrılmalıdır.
Alanlar
http://localhost:7070/api/v2/ARPs?fields=CARI_KOD,CARI_ISIM sadece belirtilen üst bilgiler döndürülmektedir. Varsayılan değer olarak tüm kolonları döndürmektedir.
İlk Kayıt
http://localhost:7070/api/v2/ARPs?first=true ilk sonuç kümesini getirir.
Son Kayıt
http://localhost:7070/api/v2/ARPs?last=true son sonuç kümesini getirir.
Kısıt
http://localhost:7070/api/v2/ARPs?q=(SQL Select sorgusu) Verilen SQL Select sorgusu sonucu alır. Örnek > ?q=CARI_KOD='J0001'
b) DELETE
Kayıt silme işlemleri olduğunda, paket tipi olarak “Delete” gönderilmesi gerekmektedir.
c) POST
Kayıt eklemek istendiğinde mevcut sınıf değerini paket tipi “POST” olarak şekilde gönderilmesi gerekmektedir. Bilgiler ‘Input’ alana doldurulur.
d) PUT
Kayıt güncelleme işlemlerinde, paket tipi “Put” olarak sadece değişecek sınıf değerlerini göndermek yeterli olacaktır. Bilgiler ‘Input’ alana doldurulur.
! Rest Servis Erişimi:
Rest üzerindeki “public” işlemler dışındaki diğer fonksiyonlar için “access token” gerekmektedir.
4- Kullanım Örnekleri
a) Kullanıcının yetkili olduğu Şube listesi örneği;
! “Access token” gerektirmeyen bir işlemdir.
Gönderilen Paket;
GET http://localhost:7070/api/v2/public/AuthorizedBranches?company=B2BTEST&username=netsis
HTTP/1.1
Authorization:
Bearer
AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAACvdTxpa9XihIs__cShEVB7AAAAAASAAACgAAAAEAAAAFpz6P91GP4vMZikcbJRnly4AAAAvTszgCKQZspDvVpoH-UMxrduxIBO5AXFBFBg7IL1fKry4oz67PljekKFGsHTlcKJUA9hJDlgep9qlw5TclgwkrkZC_P_CY5_4Ap2Tb7MiAHs0-IrULHTCNngmvVwdFd5hAuD-9zR4lt73fmZYcfxirGrJUNSSb8Iq7-E6jQop6a23W2BWtAfQ0wJZLJ_eX5DWcCWHxeFsjQQCK5ptqqFrnjRRQELJD2qRu1HDsGxWX7N5uUv6DYAfhQAAACKeNaUTrYbcf5PBNfd6O0q0oFneQ
Host:
localhost:7070
Gelen paket;
HTTP/1.1
200 OK
Content-Length:
240
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 12:19:12 GMT
{"IsSuccessful":true,"Data":[{"SubeKodu":0,"SubeIsmi":"NETSİS
YAZILIM SAN.VE
TİC.AŞ","IsletmeKodu":1,"IsletmeIsmi":"NETDATA30","MerkezMi":true},{"SubeKodu":1,"SubeIsmi":"TEst","IsletmeKodu":1,"IsletmeIsmi":"NETDATA30","MerkezMi":false}]}
b) “Access Token” oluşturma örneği;
Gönderilen paket;
POST http://localhost:7070/api/v2/token
HTTP/1.1
Content-Type:
application/x-www-form-urlencoded
Host:
localhost:7070
Content-Length:
111
Expect:
100-continue
grant_type=password&branchcode=0&password=12&username=oner4&dbname=B2BTEST&dbuser=sa&dbpassword=sapass&dbtype=0
Gelen Paket;
HTTP/1.1
200 OK
Cache-Control:
no-cache
Pragma:
no-cache
Content-Length:
698
Content-Type:
application/json;charset=UTF-8
Expires:
-1
Server:
Microsoft-HTTPAPI/2.0
Access-Control-Allow-Origin:
*
Date:
Thu, 15 Oct 2015 11:31:51 GMT
{"access_token":"AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAAByeEHbhMUxDRmadaWQddpoAAAAAASAAACgAAAAEAAAAHu1T35gDP-quvLOBZ4g_yi4AAAAt3sdjBeE1xoyT-FaWaodLaI2uehO06rvKj0eqFaXMYUVVKOchug7fe1B-KJ8wxBIl0CY8c6xkroVto9HFSAECDLQN5aJtKFgYtHUsBqtDvdqJ6e7M4fWaiBik2gBBrDASTLSz-Ub03qKcb8tqwhrfApOilEmuNQZBVri7AeefWUw0pYlJhOORKWeKdGoR4oTRRNIMjwDzlpYfvNpEYiUkzQHL-AmVLHHm6GYbpBhD-Rg4CynCISK0hQAAADje-Wp9rLCW-CtHV1_NWG9NTX9Mw","token_type":"bearer","expires_in":7199,"refresh_token":"71a1d946b7d943d6abd5f1758e6f55c9","as:client_id":"","username":"oner4","branchcode":"0","dbname":"B2BTEST",".issued":"Thu,
15 Oct 2015 11:31:51 GMT",".expires":"Thu, 15 Oct 2015
13:31:51 GMT"}
c) Cari listesini getirme Örneği;
Gönderilen Paket;
GET http://localhost:7070/api/v2/ARPS
HTTP/1.1
Authorization:
Bearer AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAAByeEHbhMUxDRmadaWQddpoAAAAAASAAACgAAAAEAAAAHu1T35gDP-quvLOBZ4g_yi4AAAAt3sdjBeE1xoyT-FaWaodLaI2uehO06rvKj0eqFaXMYUVVKOchug7fe1B-KJ8wxBIl0CY8c6xkroVto9HFSAECDLQN5aJtKFgYtHUsBqtDvdqJ6e7M4fWaiBik2gBBrDASTLSz-Ub03qKcb8tqwhrfApOilEmuNQZBVri7AeefWUw0pYlJhOORKWeKdGoR4oTRRNIMjwDzlpYfvNpEYiUkzQHL-AmVLHHm6GYbpBhD-Rg4CynCISK0hQAAADje-Wp9rLCW-CtHV1_NWG9NTX9Mw
Host:
localhost:7070
Connection:
Keep-Alive
Gelen Paket;
HTTP/1.1 200 OK
Content-Length: 11943
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 15 Oct 2015 11:33:47 GMT
{
"Offset":0,
"TotalCount":255,
"Limit":10,
"First":{
"Href":"http://localhost:7070/api/v2/ARPS?limit=10&offset=0&sort=CARI_KOD ASC",
"MediaType":"application/json; charset=UTF-8",
"ApiVersion":"2.0"
},
"Next":{
"Href":"http://localhost:7070/api/v2/ARPS?limit=10&offset=10&sort=CARI_KOD ASC",
"MediaType":"application/json; charset=UTF-8",
"ApiVersion":"2.0"
},
"Previous":{
},
"Meta":{
"Href":"http://localhost:7070/api/v2/ARPS?limit=10&offset=0&sort=CARI_KOD ASC",
"MediaType":"application/json; charset=UTF-8",
"ApiVersion":"2.0"
},
"IsSuccessful":true,
"Data":[
{
"CariTemelBilgi":{
"Sube_Kodu":0,
"ISLETME_KODU":1,
"CARI_KOD":"000001",
"CARI_ISIM":"ĞÜŞİÖÇIgüşiöçı",
"CARI_TIP":"A",
"DETAY_KODU":0,
"NAKLIYE_KATSAYISI":0.0,
"RISK_SINIRI":0.0,
"TEMINATI":0.0,
"CARISK":0.0,
"CCRISK":0.0,
"SARISK":0.0,
"SCRISK":0.0,
"CM_BORCT":0.0,
"CM_ALACT":0.0,
"ISKONTO_ORANI":0.0,
"VADE_GUNU":0,
"LISTE_FIATI":0,
"DOVIZ_TIPI":0,
"DOVIZ_TURU":0,
"HESAPTUTMASEKLI":"Y",
"DOVIZLIMI":"H",
"Update_Kodu":"X",
"LOKALDEPO":0,
"C_Yedek1":"A",
"B_Yedek1":0,
"KayitYapanKul":"BURCU",
"KayitTarihi":"2014-04-15 12:00:00",
"ODEMETIPI":0,
"OnayTipi":"I",
"OnayNum":21,
"MUSTERIBAZIKDV":"H"
},
"CariEkBilgi":{
"CARI_KOD":"000001",
"KayitTarihi":"2014-04-15 12:00:00",
"KayitYapanKul":"BURCU",
"Kull1N":0.0,
"Kull2N":0.0,
"Kull3N":0.0,
"Kull4N":0.0,
"Kull5N":0.0,
"Kull6N":0.0,
"Kull7N":0.0,
"Kull8N":0.0,
"SALES_VOLUME":0.0,
"PRIM":0.0,
"L_Yedek1":0
}
},
.........}
d) Cari Kaydetme Örneği;
Netsis’e yeni bir cari kaydı açmak için kullanılan örneğimiz:
Gönderilen Paket;
POST http://localhost:7070/api/v2/ARPs
HTTP/1.1
Authorization:
Bearer AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAACvdTxpa9XihIs__cShEVB7AAAAAASAAACgAAAAEAAAAFpz6P91GP4vMZikcbJRnly4AAAAvTszgCKQZspDvVpoH-UMxrduxIBO5AXFBFBg7IL1fKry4oz67PljekKFGsHTlcKJUA9hJDlgep9qlw5TclgwkrkZC_P_CY5_4Ap2Tb7MiAHs0-IrULHTCNngmvVwdFd5hAuD-9zR4lt73fmZYcfxirGrJUNSSb8Iq7-E6jQop6a23W2BWtAfQ0wJZLJ_eX5DWcCWHxeFsjQQCK5ptqqFrnjRRQELJD2qRu1HDsGxWX7N5uUv6DYAfhQAAACKeNaUTrYbcf5PBNfd6O0q0oFneQ
Content-Type:
application/json; charset=utf-8
Host:
localhost:7070
Content-Length:
439
Expect:
100-continue
{"CariTemelBilgi":{"Sube_Kodu":0,"CARI_KOD":"J0112","CARI_TEL":"2322225566","CARI_IL":"izmir","CARI_ISIM":"Rest
Cari
2","CARI_TIP":"S","CARI_ADRES":"izmir","CARI_ILCE":"ksk","CM_RAP_TARIH":"2015-10-09T11:25:17.4131237+03:00","ACIK1":"acik1","ACIK2":"acik2","ACIK3":"acik3","EMAIL":"oner.kaya@logo.com.tr","WEB":"www.logo.com.tr"},"CariEkBilgi":{"CARI_KOD":"J0112","Kull1N":1.0,"Kull1S":"1","S_Yedek1":"syedek1","TcKimlikNo":"12345678911"}}
Gelen Paket
HTTP/1.1
200 OK
Content-Length:
1389
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 12:24:07 GMT
{"Meta":{"Href":"http://localhost:7070/api/v2/ARPs?limit=10&offset=0","MediaType":"application/json;
charset=UTF-8","ApiVersion":"2.0"},"IsSuccessful":true,"Data":{"CariTemelBilgi":{"Sube_Kodu":0,"ISLETME_KODU":0,"CARI_KOD":"J0112","CARI_TEL":"2322225566","CARI_IL":"izmir","CARI_ISIM":"Rest
Cari
2","CARI_TIP":"S","CARI_ADRES":"izmir","CARI_ILCE":"ksk","DETAY_KODU":0,"NAKLIYE_KATSAYISI":0.0,"RISK_SINIRI":0.0,"TEMINATI":0.0,"CARISK":0.0,"CCRISK":0.0,"SARISK":0.0,"SCRISK":0.0,"CM_BORCT":0.0,"CM_ALACT":0.0,"CM_RAP_TARIH":"2015-10-09
11:25:17","ISKONTO_ORANI":0.0,"VADE_GUNU":0,"LISTE_FIATI":0,"ACIK1":"acik1","ACIK2":"acik2","ACIK3":"acik3","DOVIZ_TIPI":0,"DOVIZ_TURU":0,"HESAPTUTMASEKLI":"Y","DOVIZLIMI":"H","Update_Kodu":"X","LOKALDEPO":0,"EMAIL":"oner.kaya@logo.com.tr","WEB":"www.logo.com.tr","F_Yedek1":0.0,"F_Yedek2":0.0,"B_Yedek1":0,"I_Yedek1":0,"L_Yedek1":0,"KayitTarihi":"1899-12-30
12:00:00","DuzeltmeTarihi":"1899-12-30
12:00:00","ODEMETIPI":0,"OnayNum":0,"AGIRLIK_ISK":0.0},"CariEkBilgi":{"CARI_KOD":"J0112","KayitTarihi":"2015-10-15
12:00:00","KayitYapanKul":"NetOpenX","DuzeltmeTarihi":"1899-12-30
12:00:00","Kull1N":1.0,"Kull2N":0.0,"Kull3N":0.0,"Kull4N":0.0,"Kull5N":0.0,"Kull6N":0.0,"Kull7N":0.0,"Kull8N":0.0,"Kull1S":"1","SALES_VOLUME":0.0,"PRIM":0.0,"S_Yedek1":"syedek1","F_Yedek1":0.0,"F_Yedek2":0.0,"B_Yedek1":0,"I_Yedek1":0,"L_Yedek1":0,"TcKimlikNo":"12345678911"}}}
a) Cari Silme Örneği;
Gönderilen Paket;
DELETE
http://localhost:7070/api/v2/ARPs/J0112
HTTP/1.1
Authorization:
Bearer
AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAACvdTxpa9XihIs__cShEVB7AAAAAASAAACgAAAAEAAAAFpz6P91GP4vMZikcbJRnly4AAAAvTszgCKQZspDvVpoH-UMxrduxIBO5AXFBFBg7IL1fKry4oz67PljekKFGsHTlcKJUA9hJDlgep9qlw5TclgwkrkZC_P_CY5_4Ap2Tb7MiAHs0-IrULHTCNngmvVwdFd5hAuD-9zR4lt73fmZYcfxirGrJUNSSb8Iq7-E6jQop6a23W2BWtAfQ0wJZLJ_eX5DWcCWHxeFsjQQCK5ptqqFrnjRRQELJD2qRu1HDsGxWX7N5uUv6DYAfhQAAACKeNaUTrYbcf5PBNfd6O0q0oFneQ
Host:
localhost:7070
Content-Length:
0
Connection:
Keep-Alive
Gelen Paket;
HTTP/1.1
200 OK
Content-Length:
31
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 12:49:15 GMT
{"IsSuccessful":true,"Data":""}
f) Cari Güncelleme Örneği;
Gönderilen Paket;
PUT http://localhost:7070/api/v2/ARPs/J0001
HTTP/1.1
Authorization:
Bearer AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAACvdTxpa9XihIs__cShEVB7AAAAAASAAACgAAAAEAAAAFpz6P91GP4vMZikcbJRnly4AAAAvTszgCKQZspDvVpoH-UMxrduxIBO5AXFBFBg7IL1fKry4oz67PljekKFGsHTlcKJUA9hJDlgep9qlw5TclgwkrkZC_P_CY5_4Ap2Tb7MiAHs0-IrULHTCNngmvVwdFd5hAuD-9zR4lt73fmZYcfxirGrJUNSSb8Iq7-E6jQop6a23W2BWtAfQ0wJZLJ_eX5DWcCWHxeFsjQQCK5ptqqFrnjRRQELJD2qRu1HDsGxWX7N5uUv6DYAfhQAAACKeNaUTrYbcf5PBNfd6O0q0oFneQ
Content-Type:
application/json; charset=utf-8
Host:
localhost:7070
Content-Length:
155
Expect:
100-continue
{"CariTemelBilgi":{"CARI_TEL":"1111","CARI_ISIM":"Rest
Cari
11"},"CariEkBilgi":{"Kull1N":1.0,"Kull1S":"1","S_Yedek1":"syedek1","TcKimlikNo":"12345678911"}}
Gelen Paket;
HTTP/1.1
200 OK
Content-Length:
1146
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 12:51:21 GMT
{"IsSuccessful":true,"Data":{"CariTemelBilgi":{"Sube_Kodu":0,"ISLETME_KODU":1,"CARI_KOD":"J0001","CARI_TEL":"1111","CARI_IL":"izmir","CARI_ISIM":"Rest
Cari 11","CARI_TIP":"S","CARI_ADRES":"izmir","CARI_ILCE":"ksk","DETAY_KODU":0,"NAKLIYE_KATSAYISI":0.0,"RISK_SINIRI":0.0,"TEMINATI":0.0,"CARISK":0.0,"CCRISK":0.0,"SARISK":0.0,"SCRISK":0.0,"CM_BORCT":0.0,"CM_ALACT":0.0,"CM_RAP_TARIH":"2015-09-21
10:19:43","ISKONTO_ORANI":0.0,"VADE_GUNU":0,"LISTE_FIATI":0,"ACIK1":"acik1
updated","ACIK2":"acik2","ACIK3":"acik3","DOVIZ_TIPI":0,"DOVIZ_TURU":0,"HESAPTUTMASEKLI":"Y","DOVIZLIMI":"H","Update_Kodu":"X","LOKALDEPO":0,"EMAIL":"oner.kaya@logo.com.tr","WEB":"www.netsis.com.tr","F_Yedek1":0.0,"F_Yedek2":0.0,"B_Yedek1":0,"I_Yedek1":0,"L_Yedek1":0,"ODEMETIPI":0,"OnayNum":0,"AGIRLIK_ISK":0.0},"CariEkBilgi":{"CARI_KOD":"J0001","KayitTarihi":"2015-08-21
12:00:00","KayitYapanKul":"NetOpenX","Kull1N":1.0,"Kull2N":0.0,"Kull3N":0.0,"Kull4N":0.0,"Kull5N":0.0,"Kull6N":0.0,"Kull7N":0.0,"Kull8N":0.0,"Kull1S":"1","SALES_VOLUME":0.0,"PRIM":0.0,"S_Yedek1":"syedek1","F_Yedek1":0.0,"F_Yedek2":0.0,"B_Yedek1":0,"I_Yedek1":0,"L_Yedek1":0,"TcKimlikNo":"12345678911"}}}
f) Sipariş listesi Getirme Örneği;
Gönderilen Paket;
GET http://localhost:7070/api/v2/ItemSlips?doctype=ftSSip&limit=2
HTTP/1.1
Authorization:
Bearer AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAACvdTxpa9XihIs__cShEVB7AAAAAASAAACgAAAAEAAAAFpz6P91GP4vMZikcbJRnly4AAAAvTszgCKQZspDvVpoH-UMxrduxIBO5AXFBFBg7IL1fKry4oz67PljekKFGsHTlcKJUA9hJDlgep9qlw5TclgwkrkZC_P_CY5_4Ap2Tb7MiAHs0-IrULHTCNngmvVwdFd5hAuD-9zR4lt73fmZYcfxirGrJUNSSb8Iq7-E6jQop6a23W2BWtAfQ0wJZLJ_eX5DWcCWHxeFsjQQCK5ptqqFrnjRRQELJD2qRu1HDsGxWX7N5uUv6DYAfhQAAACKeNaUTrYbcf5PBNfd6O0q0oFneQ
Host:
localhost:7070
Gelen Paket;
HTTP/1.1
200 OK
Content-Length:
2531
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 12:57:48 GMT
HTTP/1.1
200 OK
Content-Length:
5643
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 12:59:25 GMT
{"Offset":0,"TotalCount":674,"Limit":2,"First":{"Href":"http://localhost:7070/api/v2/ItemSlips?limit=2&offset=0&doctype=ftSSip","MediaType":"application/json;
charset=UTF-8","ApiVersion":"2.0"},"Next":{"Href":"http://localhost:7070/api/v2/ItemSlips?limit=2&offset=2&doctype=ftSSip","MediaType":"application/json;
charset=UTF-8","ApiVersion":"2.0"},"Previous":{},"Meta":{"Href":"http://localhost:7070/api/v2/ItemSlips?limit=2&offset=0&doctype=ftSSip","MediaType":"application/json;
charset=UTF-8","ApiVersion":"2.0"},"IsSuccessful":true,"Data":[{"Seri":null,"FatUst":{"Sube_Kodu":0,"CariKod":"000001","FATIRS_NO":"000000000000000","Tarih":"2015-09-26
12:00:00","Tip":7,"KOD1":"A","TIPI":2,"BRUTTUTAR":121.0,"KDV":0.0,"DovizTut":0.0,"SAT_ISKT":0.0,"GENELTOPLAM":121.0,"YUVARLAMA":0.0,"MFAZ_ISKT":0.0,"GEN_ISK1O":0.0,"GEN_ISK2O":0.0,"GEN_ISK3O":0.0,"FAT_ALTM1":0.0,"FAT_ALTM2":0.0,"KS_KODU":"01","ODEMEGUNU":0,"ODEMETARIHI":"2015-09-26
12:00:00","KDV_DAHILMI":true,"SIPARIS_TEST":"2015-09-21
12:00:00","PLA_KODU":"1","SIRANO":0,"DOVIZTIP":0,"Proje_Kodu":"1","GENISK1TIP":0,"GENISK2TIP":0,"GENISK3TIP":0,"EXPORTTYPE":0,"OnayTipi":"A","OnayNum":0,"GEN_ISK1T":0.0,"GEN_ISK2T":0.0,"GEN_ISK3T":0.0,"TopDepo":0,"KOSVADEGUNU":0,"BrMaliyet":0.0,"BOLGE_FARKI_ISK":0.0},"Kalems":[{"DovizAdi":null,"STra_DovizAdi":null,"KalemSeri":null,"StokKodu":"051","Sira":1,"STra_FATIRSNO":"000000000000000","STra_GCMIK":11.0,"STra_GCMIK2":0.0,"CEVRIM":0.0,"STra_TAR":"2015-09-26
12:00:00","STra_NF":11.0,"STra_BF":11.0,"STra_IAF":0.0,"STra_KDV":0.0,"STra_SatIsk":0.0,"STra_SatIsk2":0.0,"STra_MALFISK":0.0,"STra_HTUR":"H","STra_DOVTIP":0,"PROMASYON_KODU":0,"STra_DOVFIAT":0.0,"STra_ODEGUN":0,"STra_KOD1":"A","Plasiyer_Kodu":"1","Redneden":0,"STra_SIPKONT":1,"Firmadovtip":0,"Firmadovtut":0.0,"Firmadovmal":0.0,"Irsaliyetar":"2015-09-21
12:00:00","Stra_KosulK":"21.09.2015
00:00:00","Ecza_fat_tip":0,"STra_testar":"2015-09-21
12:00:00","Olcubr":1,"Vadetar":"2015-09-21
12:00:00","BaglantiNo":0,"STra_BGTIP":"I","ProjeKodu":"1","STra_FTIRSIP":"6","STra_CARI_KOD":"000001","STra_GC":"C","DEPO_KODU":1,"Gir_Depo_Kodu":0,"STra_ACIK":"000001","Stra_OnayTipi":"A","Stra_OnayNum":0,"Stra_SubeKodu":0,"Stra_Exporttype":0,"IncKeyNo":1019,"TesMik":0.0,"TesMFMik":0.0,"Stra_Exportmik":0.0,"STra_SatIsk3":0.0,"Sat_IskTipleri1":0,"Sat_IskTipleri2":0,"Sat_IskTipleri3":0,"STra_SatIsk4":0.0,"STra_SatIsk5":0.0,"STra_SatIsk6":0.0,"KKMalF":0.0,"Stra_IrsKont":0,"D_YEDEK10":"2015-09-21
12:00:00","Sat_IskTipleri4":0,"Sat_IskTipleri5":0,"Sat_IskTipleri6":0,"Stra_OTVFiat":0.0}]},{"Seri":null,"FatUst":{"Sube_Kodu":0,"CariKod":"00053","FATIRS_NO":"000000000000001","Tarih":"2009-08-20
12:00:00","Tip":7,"TIPI":2,"BRUTTUTAR":650.0,"KDV":117.0,"DovizTut":0.0,"SAT_ISKT":0.0,"GENELTOPLAM":767.0,"YUVARLAMA":0.0,"MFAZ_ISKT":0.0,"GEN_ISK1O":0.0,"GEN_ISK2O":0.0,"GEN_ISK3O":0.0,"FAT_ALTM1":0.0,"FAT_ALTM2":0.0,"KS_KODU":"00","ODEMEGUNU":0,"ODEMETARIHI":"2009-08-20
12:00:00","KDV_DAHILMI":false,"SIPARIS_TEST":"2009-08-20
12:00:00","SIRANO":0,"DOVIZTIP":0,"GENISK1TIP":0,"GENISK2TIP":0,"GENISK3TIP":0,"EXPORTTYPE":0,"EXGUMTARIH":"1899-12-30
12:00:00","EXFIILITARIH":"1899-12-30
12:00:00","OnayTipi":"A","OnayNum":0,"GEN_ISK1T":0.0,"GEN_ISK2T":0.0,"GEN_ISK3T":0.0,"TopDepo":0,"KOSVADEGUNU":0,"BrMaliyet":0.0,"BOLGE_FARKI_ISK":0.0},"Kalems":[{"DovizAdi":null,"STra_DovizAdi":null,"KalemSeri":null,"StokKodu":"GIH003","Sira":2,"STra_FATIRSNO":"000000000000001","STra_GCMIK":1.0,"STra_GCMIK2":0.0,"CEVRIM":0.0,"STra_TAR":"2009-08-20
12:00:00","STra_NF":500.0,"STra_BF":500.0,"STra_IAF":0.0,"STra_KDV":18.0,"STra_SatIsk":0.0,"STra_SatIsk2":0.0,"STra_MALFISK":0.0,"STra_HTUR":"H","STra_DOVTIP":0,"PROMASYON_KODU":0,"STra_DOVFIAT":0.0,"STra_ODEGUN":0,"Redneden":0,"STra_SIPKONT":2,"Firmadovtip":0,"Firmadovtut":1.0,"Firmadovmal":0.0,"Irsaliyetar":"2009-08-20
12:00:00","Stra_KosulK":"20.08.2009
00:00:00","Ecza_fat_tip":0,"STra_testar":"2009-08-20
12:00:00","Olcubr":0,"Vadetar":"2009-08-20
12:00:00","BaglantiNo":0,"STra_BGTIP":"I","STra_FTIRSIP":"6","STra_CARI_KOD":"00053","STra_GC":"C","DEPO_KODU":0,"Gir_Depo_Kodu":0,"STra_ACIK":"00053","Stra_OnayTipi":"A","Stra_OnayNum":0,"Stra_SubeKodu":0,"Stra_Exporttype":0,"IncKeyNo":1,"TesMik":1.0,"TesMFMik":0.0,"Stra_Exportmik":0.0,"STra_SatIsk3":0.0,"Sat_IskTipleri1":0,"Sat_IskTipleri2":0,"Sat_IskTipleri3":0,"STra_SatIsk4":0.0,"STra_SatIsk5":0.0,"STra_SatIsk6":0.0,"KKMalF":0.0,"Stra_IrsKont":0,"Sat_IskTipleri4":0,"Sat_IskTipleri5":0,"Sat_IskTipleri6":0,"Stra_OTVFiat":0.0},{"DovizAdi":null,"STra_DovizAdi":null,"KalemSeri":null,"StokKodu":"GIH002","Sira":3,"STra_FATIRSNO":"000000000000001","STra_GCMIK":1.0,"STra_GCMIK2":0.0,"CEVRIM":0.0,"STra_TAR":"2009-08-20
12:00:00","STra_NF":150.0,"STra_BF":150.0,"STra_IAF":0.0,"STra_KDV":18.0,"STra_SatIsk":0.0,"STra_SatIsk2":0.0,"STra_MALFISK":0.0,"STra_HTUR":"H","STra_DOVTIP":0,"PROMASYON_KODU":0,"STra_DOVFIAT":0.0,"STra_ODEGUN":0,"Redneden":0,"STra_SIPKONT":3,"Firmadovtip":0,"Firmadovtut":1.0,"Firmadovmal":0.0,"Irsaliyetar":"2009-08-20
12:00:00","Stra_KosulK":"20.08.2009
00:00:00","Ecza_fat_tip":0,"STra_testar":"2009-08-20
12:00:00","Olcubr":0,"Vadetar":"2009-08-20
12:00:00","BaglantiNo":0,"STra_BGTIP":"I","STra_FTIRSIP":"6","STra_CARI_KOD":"00053","STra_GC":"C","DEPO_KODU":0,"Gir_Depo_Kodu":0,"STra_ACIK":"00053","Stra_OnayTipi":"A","Stra_OnayNum":0,"Stra_SubeKodu":0,"Stra_Exporttype":0,"IncKeyNo":2,"TesMik":1.0,"TesMFMik":0.0,"Stra_Exportmik":0.0,"STra_SatIsk3":0.0,"Sat_IskTipleri1":0,"Sat_IskTipleri2":0,"Sat_IskTipleri3":0,"STra_SatIsk4":0.0,"STra_SatIsk5":0.0,"STra_SatIsk6":0.0,"KKMalF":0.0,"Stra_IrsKont":0,"Sat_IskTipleri4":0,"Sat_IskTipleri5":0,"Sat_IskTipleri6":0,"Stra_OTVFiat":0.0}]}]}
h) Sipariş Detayı getirme Örneği;
Gönderilen Paket;
POST http://localhost:7070/api/v2/ItemSlips/details
HTTP/1.1
Authorization:
Bearer
AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA1boUtni8dUOk5qKq7E-DtAAAAAACAAAAAAADZgAAwAAAABAAAADBnE8PX5NR06kDjiZnYbD_AAAAAASAAACgAAAAEAAAAPFCQKq04paXSeXoqAbHp5q4AAAAvPHETk9NQmF1OyHkqKZkBuP9v_SfmqBekvSIdchxaum4kqFgEm7cwzCiWtQ817STwVbo5Sw0hXoq3xCTXDbQQOxZRiaQczFqqj2UTl2KRRHBqW4YYqIjlENXy3FkoyjUsKJqtopoKeVqU7alZqgFmRzbizln5n2ptOM_viknywIqCIaSdW21VEgCwP8sNLSDBZAa-FJ36pS-ycqZLJl8zFEdJLFDr8LcTruVOHGo5FYshpnt0xdSrBQAAACLXpl7Q1CTb61ZAh9FraDft8QzUw
Content-Type:
application/json; charset=utf-8
Host:
localhost:7070
Content-Length:
76
Expect:
100-continue
{"DocumentType":7,"DocumentNumber":"000000000000463","CustomerCode":"00042"}
Gelen Paket;
HTTP/1.1
200 OK
Content-Length:
4021
Content-Type:
application/json; charset=utf-8
Server:
Microsoft-HTTPAPI/2.0
Date:
Thu, 15 Oct 2015 13:05:23 GMT
{"Meta":{"Href":"http://localhost:7070/api/v2/ItemSlips/details?limit=10&offset=0","MediaType":"application/json; charset=UTF-8","ApiVersion":"2.0"},"IsSuccessful":true,"Data":{"Seri":null,"FatUst":{"Sube_Kodu":0,"CariKod":"00042","FATIRS_NO":"000000000000463","Tarih":"2011-04-22
12:00:00","Tip":7,"KOD1":"A","YEDEK":"\u0000","KOD2":"\u0000","TIPI":2,"BRUTTUTAR":8334.15,"KDV":1500.15,"DovizTut":0.0,"SAT_ISKT":0.0,"GENELTOPLAM":9834.3,"YUVARLAMA":0.0,"MFAZ_ISKT":0.0,"GEN_ISK1O":0.0,"GEN_ISK2O":0.0,"GEN_ISK3O":0.0,"FAT_ALTM1":0.0,"FAT_ALTM2":0.0,"KS_KODU":"00","ODEMEGUNU":0,"ODEMETARIHI":"2011-04-22
12:00:00","ENTEGRE_TRH":"2015-10-15
12:00:00","KDV_DAHILMI":false,"SIPARIS_TEST":"2011-04-22
12:00:00","SIRANO":0,"DOVIZTIP":0,"GENISK1TIP":0,"GENISK2TIP":0,"GENISK3TIP":0,"EXPORTTYPE":0,"EXFIILITARIH":"2011-04-22
12:00:00","AMBHARTUR":4,"OnayTipi":"A","OnayNum":0,"GCKOD_GIRIS":0,"GCKOD_CIKIS":0,"EKACK1":"OLUŞUM
ELEKTRİK
B2B","GEN_ISK1T":0.0,"GEN_ISK2T":0.0,"GEN_ISK3T":0.0,"CikisYeri":4,"Degissin":0,"TopGirDepo":0,"TopDepo":0,"FiiliTarih":"2011-04-22
12:00:00","OTV":0.0,"KOSVADEGUNU":0,"BrMaliyet":0.0,"BOLGE_FARKI_ISK":0.0,"KDV1T":0.0,"KDV1O":0.0,"KDV2O":0.0,"KDV2T":0.0,"KDV3O":0.0,"KDV3T":0.0,"KDV4O":0.0,"KDV4T":0.0,"KDV5O":0.0,"KDV5T":0.0,"EfaturaCarisiMi":true,"BaglantiNo":0,"EFatOzelKod":0},"TransactSupport":true,"MuhasebelesmisBelge":false,"KalemAdedi":1,"FaturaTip":7,"SonNumaraYazilsin":true,"OtoIskontoGetir":true,"KosulluHesapla":false,"InternalObjectAddress":168269408,"SeriliHesapla":true,"FiyatSistemineGoreHesapla":false,"StokKartinaGoreHesapla":false,"OtoVadeGunGetir":true,"OtomatikIslemTipiGetir":false,"OtomatikOdemeKoduGetir":false,"MaliyetTipineGoreHesapla":false,"OtomatikCevrimYapilsin":false,"KayitliNumaraOtomatikGuncellensin":false,"Siralama":"\u0000","EPostaGonderilsin":true,"OtoNakliyeKatSayisiGetir":true,"OtoBolgeFarkIskGetir":true,"RiskKontrol":true,"TahsilatKalemAdedi":0,"TahsilatKayitKullan":false,"AcikBelgeTahsilat":false,"BaglantiKontrol":true,"Kalems":[{"DovizAdi":null,"STra_DovizAdi":null,"KalemSeri":[],"StokKodu":"GIH010","Sira":1,"STra_FATIRSNO":"000000000000463","STra_GCMIK":1.0,"STra_GCMIK2":0.0,"CEVRIM":0.0,"STra_TAR":"2011-04-22
12:00:00","STra_NF":8334.15,"STra_BF":8334.15,"STra_IAF":0.0,"STra_KDV":18.0,"STra_SatIsk":0.0,"STra_SatIsk2":0.0,"STra_MALFISK":0.0,"STra_HTUR":"H","STra_DOVTIP":0,"PROMASYON_KODU":0,"STra_DOVFIAT":0.0,"STra_ODEGUN":0,"STra_KOD1":"A","STra_KOD2":"\u0000","STra_SIP_TURU":"\u0000","Ekalanneden":"\u0000","Stra_Otv":0.0,"Redneden":0,"STra_SIPKONT":1,"Firmadovtip":0,"Firmadovtut":1.0,"Firmadovmal":0.0,"Update_Kodu":"\u0000","Irsaliyetar":"2011-04-22
12:00:00","Ecza_fat_tip":0,"STra_testar":"2011-04-22
12:00:00","Olcubr":0,"Vadetar":"2011-04-22
12:00:00","BaglantiNo":0,"BrCevrim1":1.0,"BrCevrim2":1.0,"Yed_Bf":8334.15,"STra_BGTIP":"I","C_Yedek6":"
","STra_FTIRSIP":"6","STra_CARI_KOD":"00042","STra_GC":"C","DEPO_KODU":0,"Gir_Depo_Kodu":0,"STra_ACIK":"00042","Stra_OnayTipi":"A","Stra_OnayNum":0,"Stra_SubeKodu":0,"Stok_IsletmeKod":1,"Stok_SubeKod":0,"Stra_Exporttype":0,"IncKeyNo":107,"IncKeyNo2":0,"TesMik":1.0,"TesMFMik":0.0,"MALADI":"E-TİCARET
B2B HİZMETİ","STMUHDKOD":1,"SONGIRBFIAT":0.0,"SabitDepKod":0,"DOVTIP":1,"DOVIZ_TURU":0,"Fiyatlar1":0.0,"Fiyatlar2":0.0,"Fiyatlar3":0.0,"Fiyatlar4":0.0,"Fiyatlar5":0.0,"Fiyatlar6":0.0,"Fiyatlar7":0.0,"Kilit":"\u0000","SatisKDVOran":18.0,"AlisKDVOran":18.0,"Isk_Flag":0,"SipTesKont":0,"Mamulmu":"H","SeriTakibi":"H","Stra_Exportmik":0.0,"STra_SatIsk3":0.0,"Kul_Mik":0.0,"Fiat_birimi":1,"Sat_IskTipleri1":0,"Sat_IskTipleri2":0,"Sat_IskTipleri3":0,"Koli_Inc":0,"KoliStok":false,"Tur":"D","BirimPuan":0,"PuanDeger":0.0,"KalemGenIskOran1":0.0,"KalemGenIskOran2":0.0,"KalemGenIskOran3":0.0,"OtvFlag":0,"Otvtut":0.0,"STra_SatIsk4":0.0,"STra_SatIsk5":0.0,"STra_SatIsk6":0.0,"KKMalF":0.0,"Stra_FiyatBirimi":0,"Stra_IrsKont":0,"SatisKilit":"H","Payda_1":1.0,"Sat_IskTipleri4":0,"Sat_IskTipleri5":0,"Sat_IskTipleri6":0,"EsnekMi":false,"SeriSayisi":0,"Stra_OTVFiat":0.0,"BolgeFark":0.0}]}}