DenizBank API Market
ApiTag
Kategori | Kredi Kartı |
Başlık | GetCreditCardTransactionList |
Protokol | HTTPS |
Url | https://apigwtest.denizbank.com/api//GetCreditCardTransactionList |
Açıklama
Returns the credit card transaction list / Kredi kartı işlemlerini gösterir
Request
GetCreditCardTransactionList
RequestURL
POST https://apigwtest.denizbank.com/api//GetCreditCardTransactionList
RequestHeaders
-
(optional)stringMedia type of the body sent to the API.
-
stringSubscription key which provides access to this API. Found in your Profile.
RequestBody
GetCreditCardTransactionListRequest request object
{ "type": "object", "properties": { "Header": { "$ref": "#/definitions/Header" }, "Parameters": { "type": "array", "items": { "properties": { "CreditCardNo": { "type": "number", "description": "Credit Card No", "example": "3018274820232509" }, "LoadDonemIciHareket": { "type": "boolean", "description": "", "example": true }, "CustomerNo": { "type": "number", "description": "Customer No", "example": 211246 } } } } } }
ResponseBody
GetCreditCardTransactionListResponse response object
{ "type": "object", "properties": { "Data": { "type": "object", "properties": { "CreditCardDetail": { "type": "array", "description": "Credit Card Detail", "items": { "properties": { "AsgaridenKalanOdemeTutariYI": { "type": "number", "description": "", "example": "" }, "AsgaridenKalanOdemeTutariYD": { "type": "number", "description": "", "example": "" }, "AsgaridenKalanOdemeTutariYE": { "type": "number", "description": "", "example": "" }, "HashCardNumber": { "type": "string", "description": "", "example": "" }, "EncryptedCardNumber": { "type": "string", "description": "", "example": "" }, "ShadowCardNumber": { "type": "number", "description": "Shadow Kart Numarası", "example": "" }, "CardRefNumber": { "type": "number", "description": "Kart Referans Numarası ", "example": "" }, "MainCardRefNumber": { "type": "number", "description": "Asıl Kart Referans Numarası ", "example": "" }, "MaskedCardNumber": { "type": "string", "description": "Maskeli Kart Numarası ", "example": "" }, "InstallmentProductFlag": { "type": "boolean", "description": "", "example": "" }, "BinNumber": { "type": "number", "description": "BIN No", "example": "" }, "MaskedMainCardNumber": { "type": "string", "description": "Maskeli Asık Kart Numarası", "example": "" }, "CreditCardNo": { "type": "number", "description": "Kredi Kart Numarası", "example": "" }, "CustomerNo": { "type": "number", "description": "Müşteri Numarası", "example": "" }, "SecondCustomerNo": { "type": "number", "description": "İkinci Müşteri Numarası", "example": "" }, "MerkezMusteriNo": { "type": "number", "description": "Ana Müşteri Numarası", "example": "" }, "KartTuru": { "type": "string", "description": "Kart Türü(A:Asıl, E:Ek Kart)", "example": "" }, "KartStatusu": { "type": "string", "description": "Card Status", "example": "" }, "KartAltStatusu": { "type": "string", "description": "Card Sub Status", "example": "" }, "OriginalKartAltStatusu": { "type": "string", "description": "", "example": "" }, "ProductKodu": { "type": "number", "description": "Ürün Kodu", "example": "" }, "ProductAdi": { "type": "string", "description": "Ürün Adı", "example": "" }, "OtoOdeYI": { "type": "string", "description": "", "example": "" }, "OtoOdeYD": { "type": "string", "description": "", "example": "" }, "AsilKartNo": { "type": "number", "description": "Asıl Kart Numarası", "example": "" }, "CardOwnerName": { "type": "string", "description": "Kart Sahibinin Adı", "example": "" }, "CardOwnerMiddleName": { "type": "string", "description": "Kart Sahibinin İkinci Adı", "example": "" }, "CardOwnerSurname": { "type": "string", "description": "Kart Sahibinin Soyadı", "example": "" }, "CardOwnerFullName": { "type": "string", "description": "Kart Sahibinin Ad Soyadı", "example": "" }, "EmbossAdi": { "type": "string", "description": "Kart Üzerindeki Ad Soyad", "example": "" }, "EmbossStatus": { "type": "string", "description": "", "example": "" }, "OperationCode": { "type": "string", "description": "H: Movements, U: Card Fees", "example": "" }, "KartIptalTarihi": { "type": "string", "format": "date", "description": "Kart İptal Tarihi", "example": "" }, "CardLimits": { "type": "object", "description": "", "properties": { "MarjsizKartLimit": { "type": "number", "description": "Kart Limiti", "example": "" }, "KartKullanilabilirKredi": { "type": "number", "description": "Kullanılabilir Limit", "example": "" }, "MarjsizKartLimitNA": { "type": "number", "description": "Nakit Avans Limiti", "example": "" }, "KullanilabilirKrediNA": { "type": "number", "description": "Kullanılabilir Nakit Avans Limiti", "example": "" }, "KartTaksitLimit": { "type": "number", "description": "", "example": "" }, "KartKullanilabilirTaksitLimit": { "type": "number", "description": "", "example": "" }, "ExpressLimit": { "type": "number", "description": "Ekstra Nakit Limiti", "example": "" }, "KullanılabilirExpressLimit": { "type": "number", "description": "Kullanılabilir Ekstra Nakit Limiti", "example": "" }, "OfflineLimit": { "type": "number", "description": "", "example": "" }, "LimitRatio": { "type": "number", "description": "", "example": "" }, "LimitUsed": { "type": "number", "description": "", "example": "" } } }, "ExtendCard": { "type": "string", "description": "", "example": "" }, "EkstreInfo": { "type": "string", "description": "", "example": "" }, "Hareketler": { "type": "array", "description": "", "items": { "properties": { "DonemIciHareketlerCardList": { "type": "array", "description": "", "items": { "properties": { "TrnCodeDetail": { "type": "string", "description": "", "example": "" }, "CardNo": { "type": "string", "description": "Masking Card No", "example": "" }, "IslemTarihi": { "type": "string", "description": "Process Date", "example": "" }, "IslemAciklamasi": { "type": "string", "description": "Process Description", "example": "" }, "HareketTipi": { "type": "string", "description": "(B: Debt, A: Receivable)", "example": "" }, "CardBehaviourType": { "type": "string", "description": "", "example": "" }, "TrnProcessType": { "type": "string", "description": "", "example": "" }, "IslemTipi": { "type": "string", "description": "Transaction Type (YI: Domestic YD: International)", "example": "" }, "IslemTuru": { "type": "string", "description": "", "example": "" }, "IslemTutari": { "type": "number", "description": "Transaction Amount", "example": "" }, "OrjinalTutar": { "type": "number", "description": "Original Amount", "example": "" }, "TakasTutari": { "type": "number", "description": "Clearing Amount", "example": "" }, "MilPoint": { "type": "number", "description": "", "example": "" }, "BonusPuan": { "type": "number", "description": "Bonus Points", "example": "" }, "KalanTaksitSayi": { "type": "number", "description": "Number of Installments Remaining", "example": "" }, "ToplamTaksitSayi": { "type": "number", "description": "Total Installments Number", "example": "" }, "TaksitSayi": { "type": "number", "description": "Installment Number", "example": "" }, "KalanTaksitTutar": { "type": "number", "description": "Remaining Installment Amount", "example": "" }, "KartTipi": { "type": "string", "description": "", "example": "" }, "HareketAdi": { "type": "string", "description": "Hareket Adı", "example": "" }, "UyeIsyeriKategorisi": { "type": "number", "description": "Üye İşyeri Kategorisi", "example": "" }, "UyeIsyeriKategoriGrupKod": { "type": "number", "description": "", "example": "" }, "UyeIsyeriKategoriAciklamasi": { "type": "string", "description": "Üye İşyeri Kategori Açıklaması", "example": "" }, "UyeIsyeriAdi": { "type": "string", "description": "Üye İşyeri Adı", "example": "" }, "UyeIsyeriSehri": { "type": "string", "description": "Üye İşyeri Şehri", "example": "" }, "UyeIsyeriBolgesi": { "type": "string", "description": "Üye İşyeri Bölgesi", "example": "" }, "UyeIsyeriUlkesi": { "type": "string", "description": "Üye İşyeri Ülkesi", "example": "" }, "ProvizyonNo": { "type": "number", "description": "Provizyon Numarası", "example": "" }, "MRCCode": { "type": "string", "description": "MRC Kodu", "example": "" }, "IslemKaynagi": { "type": "string", "description": "İşlem Kaynağı", "example": "" }, "OtelemeFlag": { "type": "boolean", "description": "Otelendi mi?", "example": "" }, "Currency": { "type": "string", "description": "Currency Code", "example": "" }, "TutarIsareti": { "type": "string", "description": "", "example": "" }, "IslemParaBirimi": { "type": "string", "description": "Currency", "example": "" }, "KampanyaKodu": { "type": "string", "description": "", "example": "" }, "FirmaKodu": { "type": "string", "description": "", "example": "" }, "MCCCode": { "type": "string", "description": "", "example": "" }, "MCCDescription": { "type": "string", "description": "", "example": "" }, "ExtraBonus": { "type": "number", "description": "", "example": "" }, "IsSuitableForInstallment": { "type": "boolean", "description": "", "example": "" }, "IsSuitableForExtraInstallment": { "type": "boolean", "description": "", "example": "" }, "RRNCode": { "type": "string", "description": "", "example": "" }, "DebitCredit": { "type": "string", "description": "", "example": "" }, "ShadowCardNumber": { "type": "string", "description": "", "example": "" }, "TrnCode": { "type": "number", "description": "", "example": "" }, "TrnAmount": { "type": "number", "description": "", "example": "" }, "IsOfflineFlag": { "type": "boolean", "description": "", "example": "" }, "MainTransactionId": { "type": "number", "description": "", "example": "" }, "CardTransactionGroupId": { "type": "number", "description": "", "example": "" }, "ParaBirimi": { "type": "string", "description": "Currency", "example": "" }, "ParaBirimiTakas": { "type": "string", "description": "", "example": "" }, "ParaBirimiOrijinal": { "type": "string", "description": "", "example": "" } } } }, "ToplamHarcamaYI": { "type": "number", "description": "", "example": "" }, "ToplamHarcamaYD": { "type": "number", "description": "", "example": "" }, "ToplamHarcamaYE": { "type": "number", "description": "", "example": "" }, "ToplamOdemeYI": { "type": "number", "description": "", "example": "" }, "ToplamOdemeYD": { "type": "number", "description": "", "example": "" }, "ToplamOdemeYE": { "type": "number", "description": "", "example": "" }, "ToplamBonus": { "type": "number", "description": "", "example": "" }, "ToplamMile": { "type": "number", "description": "", "example": "" }, "ToplamSeaMile": { "type": "number", "description": "", "example": "" }, "ToplamDonemIciKazanilanBonus": { "type": "number", "description": "", "example": "" }, "ToplamDonemIciHarcananBonus": { "type": "number", "description": "", "example": "" }, "ToplamDonemIciKazanilanMile": { "type": "number", "description": "", "example": "" }, "ToplamDonemIciHarcananMile": { "type": "number", "description": "", "example": "" }, "ToplamDonemIciKazanilanSeaMile": { "type": "number", "description": "", "example": "" }, "ToplamDonemIciHarcananSeaMile": { "type": "number", "description": "", "example": "" } } } }, "BekleyenProvizyonHareketler": { "type": "string", "description": "", "example": "" }, "EkstreStatu": { "type": "string", "description": "", "example": "" }, "AccountTipi": { "type": "number", "description": "Hesap Tipi (1:TL, 2:USD)", "example": "" }, "SonEksTarih": { "type": "number", "description": "Ekstre Tarihi", "example": "" }, "SonOdemeTarih": { "type": "number", "description": "Son Ödeme Tarihi", "example": "" }, "YeniEksTarih": { "type": "number", "description": "Yeni Ekstre Tarihi", "example": "" }, "YeniOdemeTarih": { "type": "number", "description": "Yeni Ödeme Tarihi", "example": "" }, "SonEksTopBakYI": { "type": "number", "description": "Son Ekstre Toplam Bakiye (TL)", "example": "" }, "SonEksAsgOdeTutarYI": { "type": "number", "description": "Son Ekstre Asgari Ödeme Tutarı (TL)", "example": "" }, "SonEksAsgOdeKalanTutarYI": { "type": "number", "description": "Son Ekstre Asgari Kalan Ödeme Tutarı(TL)", "example": "" }, "SonEksTopBakYD": { "type": "number", "description": "Son Ekstre Toplam Bakiye (USD)", "example": "" }, "SonEksTopBakYE": { "type": "number", "description": "", "example": "" }, "SonEksAsgOdeTutarYD": { "type": "number", "description": "Son Ekstre Asgari Ödeme Tutarı (USD)", "example": "" }, "SonEksAsgOdeTutarYE": { "type": "number", "description": "", "example": "" }, "SonEksAsgOdeKalanTutarYD": { "type": "number", "description": "Son Ekstre Asgari Kalan Ödeme Tutarı (USD)", "example": "" }, "ToplamHarcamaYI": { "type": "number", "description": "Toplam Harcama (TL)", "example": "" }, "ToplamHarcamaYD": { "type": "number", "description": "Toplam Harcama (USD)", "example": "" }, "ToplamHarcamaYE": { "type": "number", "description": "", "example": "" }, "DevredenBorcYI": { "type": "number", "description": "Devreden Borç (TL)", "example": "" }, "DevredenBorcYD": { "type": "number", "description": "Devreden Borç (USD)", "example": "" }, "DevredenBorcYE": { "type": "number", "description": "", "example": "" }, "KalanBorcYI": { "type": "number", "description": "Kalan Borç (TL)", "example": "" }, "KalanBorcYD": { "type": "number", "description": "Kalan Borç (USD)", "example": "" }, "KalanBorcYE": { "type": "number", "description": "", "example": "" }, "GunBakiyeYI": { "type": "number", "description": "Güncel Bakiye (TL)", "example": "" }, "GunBakiyeYD": { "type": "number", "description": "Güncel Bakiye (USD)", "example": "" }, "GunBakiyeYE": { "type": "number", "description": "", "example": "" }, "FaizBakiyeYI": { "type": "number", "description": "", "example": "" }, "FaizBakiyeYD": { "type": "number", "description": "", "example": "" }, "FaizBakiyeYE": { "type": "number", "description": "", "example": "" }, "BonusKart": { "type": "boolean", "description": "Bonus Kart mı?", "example": "" }, "MilesKart": { "type": "boolean", "description": "Shop&Miles Kart mı?", "example": "" }, "SeaMilesKart": { "type": "boolean", "description": "Sea Miles Kart mı?", "example": "" }, "SanalKart": { "type": "boolean", "description": "Sanal Kart mı?", "example": "" }, "IsCommerceCard": { "type": "boolean", "description": "Ticari Kart mı?", "example": "" }, "IsAgricultureCard": { "type": "boolean", "description": "Tarım Kart mı?", "example": "" }, "IsBusinessCard": { "type": "boolean", "description": "Business Kart mı?", "example": "" }, "IsCashCard": { "type": "boolean", "description": "Nakit Kart mı?", "example": "" }, "CVV2": { "type": "string", "description": "CVV2", "example": "" }, "ExpirationMonth": { "type": "string", "description": "", "example": "" }, "ExpirationYear": { "type": "string", "description": "", "example": "" }, "TypeName": { "type": "string", "description": "", "example": "" }, "IsPrepaidCard": { "type": "boolean", "description": "Prepaid Kart mı?", "example": "" }, "IsOwnExtendCard": { "type": "boolean", "description": "Ek Kart Sahibi mi?", "example": "" }, "CardType": { "type": "number", "description": "Kart Tipi", "example": "" }, "EkstreStatusu": { "type": "string", "description": "Ekstre Statüsü", "example": "" }, "ExtreCode": { "type": "number", "description": "Ekstre Dönem Kodu", "example": "" }, "NewExtreCode": { "type": "string", "description": "Yeni Ekstre Dönem Kodu", "example": "" }, "RealExtreDate": { "type": "number", "description": "Gerçek Ekstre Tarihi", "example": "" }, "RealNewExtreDate": { "type": "number", "description": "Gerçek Yeni Ekstre Tarihi", "example": "" }, "KartVade": { "type": "string", "description": "Kart Vade Tarihi", "example": "" }, "ExpiryDateString": { "type": "number", "description": "Son Kullanma Tarihi (Gün ve ay birleşik)", "example": "" }, "FinancialType": { "type": "string", "description": "Kart Ücret Grubu", "example": "" }, "IsCitiCard": { "type": "boolean", "description": "", "example": "" }, "StmtSendForSuppCard": { "type": "boolean", "description": "Ek Karta Ekstre Basılsın mı?", "example": "" }, "CustomerStatCode": { "type": "string", "description": "Müşteri Statüsü", "example": "" }, "BranchCode": { "type": "number", "description": "Şube Kodu", "example": "" }, "CanUseBundlesCashPayment": { "type": "boolean", "description": "", "example": "" }, "CanUseBundlesInstallmentPayment": { "type": "boolean", "description": "", "example": "" }, "CardIssuingDate": { "type": "number", "description": "", "example": "" }, "FirstEmbossDate": { "type": "string", "format": "date", "description": "", "example": "" }, "LastRenewalDate": { "type": "string", "format": "date", "description": "", "example": "" }, "OldExpiryDateStr": { "type": "string", "description": "", "example": "" }, "DelinquencyPeriod": { "type": "number", "description": "", "example": "" }, "BlockedAccountFlag": { "type": "boolean", "description": "", "example": "" }, "FollowStatus": { "type": "string", "description": "(\"KT\":Müşteri kanuni takipte olduğu için borç bilgisine yts den bakılmalıdır. \"IT\":Müşteri idari takip statüsündedir. )", "example": "" }, "CashFee": { "type": "number", "description": "", "example": "" }, "CashFeeMinAmount": { "type": "number", "description": "", "example": "" }, "CashFeeRate": { "type": "number", "description": "", "example": "" }, "CashInterestRate": { "type": "number", "description": "", "example": "" }, "TotalPaymentActualAmount": { "type": "number", "description": "", "example": "" }, "OrderNumber": { "type": "number", "description": "", "example": "" }, "PinStatus": { "type": "string", "description": "Pin Statüsü", "example": "" }, "CardSubDomain": { "type": "string", "description": "", "example": "" }, "AvailableBonus": { "type": "number", "description": "", "example": "" }, "CurrentEarnedReward": { "type": "number", "description": "", "example": "" }, "ClearCardNumber": { "type": "string", "description": "", "example": "" }, "ShiftingFlag": { "type": "string", "description": "", "example": "" }, "DueDateOriginal": { "type": "string", "description": "", "example": "" }, "InstallmentFlag": { "type": "string", "description": "", "example": "" }, "StatementDueDateShiftingCounter": { "type": "string", "description": "", "example": "" }, "Delinquency": { "type": "string", "description": "", "example": "" }, "RenewalFlag": { "type": "boolean", "description": "Yenilenme Durumu", "example": "" }, "SuitableFlag": { "type": "boolean", "description": "Uygunluk Durumu", "example": "" }, "RenewalCardNo": { "type": "string", "description": "Yenilenen Kart Numarası", "example": "" }, "RenewalSuitableFlag": { "type": "boolean", "description": "Yenilenen Uygunluk Durumu", "example": "" }, "HceCardFlag": { "type": "boolean", "description": "", "example": "" }, "CurrentDebtDomestic": { "type": "number", "description": "", "example": "" }, "CurrentDebtForeign": { "type": "number", "description": "", "example": "" }, "InstallmentForSaleFlag": { "type": "boolean", "description": "", "example": "" }, "OfflinePinStatus": { "type": "string", "description": "", "example": "" }, "PinRetryCount": { "type": "number", "description": "", "example": "" }, "PaymentTotalCurrentDomestic": { "type": "number", "description": "", "example": "" }, "PaymentTotalCurrentForeign": { "type": "number", "description": "", "example": "" }, "PaymentTotalCurrentEuro": { "type": "number", "description": "", "example": "" }, "ToShadowCardNumber": { "type": "string", "description": "", "example": "" }, "TotalInstallmentAmountForNextStatement": { "type": "number", "description": "", "example": "" } } } }, "CreditCardDetailForIvr": { "type": "string", "description": "", "example": "" }, "CreditCardNo": { "type": "number", "description": "Credit Card No", "example": "" }, "CartListTable": { "type": "array", "description": "", "items": { "properties": { "KartTuru": { "type": "string", "description": "", "example": "" }, "KartStatusu": { "type": "string", "description": "", "example": "" }, "KartStatusuAciklama": { "type": "string", "description": "", "example": "" }, "KartAltStatusu": { "type": "string", "description": "", "example": "" }, "OtoOdeYI": { "type": "string", "description": "", "example": "" }, "OtoOdeYD": { "type": "string", "description": "", "example": "" }, "AccountTipi": { "type": "number", "description": "", "example": "" }, "EkstreStatu": { "type": "string", "description": "", "example": "" }, "ProductKodu": { "type": "number", "description": "", "example": "" }, "ProductAdi": { "type": "string", "description": "", "example": "" }, "BonusKart": { "type": "boolean", "description": "", "example": "" }, "MilesKart": { "type": "boolean", "description": "", "example": "" }, "SeaMilesKart": { "type": "boolean", "description": "", "example": "" }, "SanalKart": { "type": "boolean", "description": "", "example": "" }, "EmailOnly": { "type": "boolean", "description": "", "example": "" }, "AsilKartNo": { "type": "string", "description": "", "example": "" }, "EmbossAdi": { "type": "string", "description": "", "example": "" }, "MMCardNo": { "type": "string", "description": "", "example": "" }, "MFocusId": { "type": "string", "description": "", "example": "" }, "BirimKodu": { "type": "number", "description": "", "example": "" }, "KartIptalTarihi": { "type": "string", "format": "date", "description": "", "example": "" }, "ExtendCard": { "type": "string", "description": "", "example": "" }, "HceCards": { "type": "string", "description": "", "example": "" } } } } } } } };
CodeSamples
@ECHO OFF curl -v -X POST "https://apigwtest.denizbank.com/api//Accounts/GetCorporateAccountTransactionList" -H "Content-Type: application/json" -H "SubscriptionKey: {subscription key}" --data-ascii "{body}"
using System; using System.Net.Http.Headers; using System.Text; using System.Net.Http; using System.Web; namespace CSHttpClientSample { static class Program { static void Main() { MakeRequest(); Console.WriteLine("Hit ENTER to exit..."); Console.ReadLine(); } static async void MakeRequest() { var client = new HttpClient(); var queryString = HttpUtility.ParseQueryString(string.Empty); // Request headers client.DefaultRequestHeaders.Add("SubscriptionKey", "{subscription key}"); var uri = "https://apigwtest.denizbank.com/api//Accounts/GetCreditCardTransactionList" + queryString; HttpResponseMessage response; // Request body byte[] byteData = Encoding.UTF8.GetBytes("{body}"); using (var content = new ByteArrayContent(byteData)) { content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >"); response = await client.PostAsync(uri, content); } } } }
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/) import java.net.URI; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.utils.URIBuilder; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; public class JavaSample { public static void main(String[] args) { HttpClient httpclient = HttpClients.createDefault(); try { URIBuilder builder = new URIBuilder("https://apigwtest.denizbank.com/api//Accounts/GetAccountDetail"); URI uri = builder.build(); HttpPost request = new HttpPost(uri); request.setHeader("Content-Type", "application/json"); request.setHeader("SubscriptionKey", "{subscription key}"); // Request body StringEntity reqEntity = new StringEntity("{body}"); request.setEntity(reqEntity); HttpResponse response = httpclient.execute(request); HttpEntity entity = response.getEntity(); if (entity != null) { System.out.println(EntityUtils.toString(entity)); } } catch (Exception e) { System.out.println(e.getMessage()); } } }
<!DOCTYPE html> <html> <head> <title>JSSample</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> </head> <body> <script type="text/javascript"> $(function() { var params = { // Request parameters }; $.ajax({ url: "https://apigwtest.denizbank.com/api//Accounts/GetAccountDetail?" + $.param(params), beforeSend: function(xhrObj){ // Request headers xhrObj.setRequestHeader("Content-Type","application/json"); xhrObj.setRequestHeader("SubscriptionKey","{subscription key}"); }, type: "POST", // Request body data: "{body}", }) .done(function(data) { alert("success"); }) .fail(function() { alert("error"); }); }); </script> </body> </html>
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString* path = @"https://apigwtest.denizbank.com/api//Accounts/GetAccountDetail"; NSArray* array = @[ // Request parameters @"entities=true", ]; NSString* string = [array componentsJoinedByString:@"&"]; path = [path stringByAppendingFormat:@"?%@", string]; NSLog(@"%@", path); NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]]; [_request setHTTPMethod:@"POST"]; // Request headers [_request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; [_request setValue:@"{subscription key}" forHTTPHeaderField:@"SubscriptionKey"]; // Request body [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]]; NSURLResponse *response = nil; NSError *error = nil; NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error]; if (nil != error) { NSLog(@"Error: %@", error); } else { NSError* error = nil; NSMutableDictionary* json = nil; NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding]; NSLog(@"%@", dataString); if (nil != _connectionData) { json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error]; } if (error || !json) { NSLog(@"Could not parse loaded json with error:%@", error); } NSLog(@"%@", json); _connectionData = nil; } [pool drain]; return 0; }
<?php // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/) require_once 'HTTP/Request2.php'; $request = new Http_Request2('https://apigwtest.denizbank.com/api//Accounts/GetAccountDetail'); $url = $request->getUrl(); $headers = array( // Request headers 'Content-Type' => 'application/json', 'SubscriptionKey' => '{subscription key}', ); $request->setHeader($headers); $parameters = array( // Request parameters ); $url->setQueryVariables($parameters); $request->setMethod(HTTP_Request2::METHOD_POST); // Request body $request->setBody("{body}"); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; } ?>
########### Python 2.7 ############# import httplib, urllib, base64 headers = { # Request headers 'Content-Type': 'application/json', 'SubscriptionKey': '{subscription key}', } params = urllib.urlencode({ }) try: conn = httplib.HTTPSConnection('api-gateway.intertech.com.tr') conn.request("POST", "/BankingApiV01/Accounts/GetAccountDetail?%s" % params, "{body}", headers) response = conn.getresponse() data = response.read() print(data) conn.close() except Exception as e: print("[Errno {0}] {1}".format(e.errno, e.strerror)) #################################### ########### Python 3.2 ############# import http.client, urllib.request, urllib.parse, urllib.error, base64 headers = { # Request headers 'Content-Type': 'application/json', 'SubscriptionKey': '{subscription key}', } params = urllib.parse.urlencode({ }) try: conn = http.client.HTTPSConnection('api-gateway.intertech.com.tr') conn.request("POST", "/BankingApiV01/Accounts/GetAccountDetail?%s" % params, "{body}", headers) response = conn.getresponse() data = response.read() print(data) conn.close() except Exception as e: print("[Errno {0}] {1}".format(e.errno, e.strerror)) ####################################
require 'net/http' uri = URI('https://apigwtest.denizbank.com/api//Accounts/GetAccountDetail') request = Net::HTTP::Post.new(uri.request_uri) # Request headers request['Content-Type'] = 'application/json' # Request headers request['SubscriptionKey'] = '{subscription key}' # Request body request.body = "{body}" response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http| http.request(request) end puts response.body
Try API Console
POST
GetCreditCardTransactionList
addHeaders
addParameters
Waiting...