Genel Bakış

Versiyon bilgisi

Versiyon : v1

URI şeması

Sunucu : gop.epias.com.tr
Kök Dizin : /gop-servis/rest
Şemalar : HTTPS

Etiketler

  • collateral

  • contract

  • gate-operation

  • market

  • minmaxprice

  • objection

  • offer

  • operationhistory

Doküman Hakkında

Bu dokümanda Gün Öncesi Rest Servislerinin tanımları ve bu servislerin nasıl çağrılacağı anlatılmaktadır. Dokümanın PDF versiyonuna gerçek ortam için https://gop.epias.com.tr/gop-servis/technical/tr/index.pdf test ortamı için https://testgop.epias.com.tr/gop-servis/technical/tr/index.pdf adresinden erişebilirsiniz.

Doküman her sürümde güncellendiğinden test ve gerçek ortam içerisindeki servisler farklılık gösterebilir. Sürüm notlarını takip ediniz.

Değişiklikler

v1.0.0

Teklif Servisleri eklendi.

v1.0.1

İkili Anlaşmalar Servileri eklendi.

v1.0.2

XML Mesajları eklendi.

v1.0.3

PostMan mesajları eklendi.

v1.0.4

GitHub repo eklendi.

v1.0.5

İtiraz ve Teminat Servisleri eklendi.

v1.0.6

PTF İstatistik Servisleri eklendi.

v1.0.7

Süreç Durum Servisleri eklendi.

v1.0.8

İngilizce dil desteği eklendi.

1. Gün Öncesi Uygulaması Hakkında

Gün Öncesi Piyasası uygulaması REST servisleri üzerine kuruludur. JSON ve XML isteklerini kabul eder ve gelen isteğe göre JSON yada XML cevap döner.

Uygulamanın kullanıcı arayüzünde görmüş olduğunuz bilgilerin tamamı dışarıya açık olan bu servislerden alınmaktadır. Bu arayüzü kullanmadan da sahip olduğunuz uygulamalar ile sistemi kullanmanız mümkündür.

Uygulamayı çağırabilmek için EKYS de kayıtlı bir kullanıcınız olmalı ve bu kullanıcının ilgili servisleri çağırabilmek için yeterli yetkisi olmalıdır. Uygulamaya gelen tüm istekler Merkezi Yetkilendirme Sunucusu’ndan (cas.epias.com.tr) etiket alınarak gönderilmelidir.

2. İstemci Oluşturmak

Servis dokümantasyonu Swagger ile hazırlanmıştır. Test ortamı için https://testgop.epias.com.tr/gop-servis/test/swagger.json gerçek ortam için https://gop.epias.com.tr/gop-servis/test/swagger.json dosyasını kullanarak https://generator.swagger.io adresinden kullandığınız dile uygun istemci kodlarını oluşturabilirsiniz.

3. Örnek XML ve JSON Mesajları

Geliştiriciler için hazırlanmış örnek mesajlara Chrome Postman eklentisi ile erişebilirsiniz. https://www.getpostman.com/ adresinden eklentiyi kurduktan sonra aşağıdaki linke tıkladığınızda örnek mesaj listesi Postman uygulamasında açılacaktır.

Postman Link https://www.getpostman.com/collections/0f24178aaad7959918bc

4. Örnek Kodlar

Geliştiricler için hazırlanmış olan örnek istemci kodlarına EPİAŞ GitHub (https://github.com/epiastr) hesabından erişebilirsiniz.

C#

https://github.com/epiastr/gopcsharpclient

java

https://github.com/epiastr/gopjavaclient

5. Yardım ve Destek

Gün Öncesi uygulaması için gorusleriniz.gop@epias.com.tr adresine görüş, öneri ve yardım isteklerinizi gönderebilirsiniz.

6. Gün Öncesi Uygulaması Servis Çağrımı

TGT (Ticket Granting Ticket) kullanıcının oturumunu kontrol eder. TGT Servisinden alacağınız değer 45 dakika boyunca kullanmasanız bile aktiftir. TGT değerini her kullanışınızda 45 dakikalık süre tekrar başlar.

TGT ile servisi çağırmanız mümkün değildir. Her servis çağrımında TGT üzerinden ST (Service Ticket) almanız gerekir. TGT tekrar kullanılabilen bir değerdir. Her istek için TGT almanıza gerek yoktur. Her istek için TGT almanız halinde CAS (Merkezi Yetkilendirme Sunucusu) tarafından bloke edilebilirsiniz.

Örneğin teklif servislerini çağırdığınızı varsayalım. Teklif gönderebilmek bölgeleri,para birimlerini , minimum maksimum fiyat bilgisini, teklife eklemeniz gereken period bilgisini almanız gerektiğini varsayalım. Teklifinizi tamamladıktan sonra teklif süreci açıkmı onu kontrol ediyorsunuz ve sonunda teklifi gönderiyorsunuz. Burada altı (6) adet servis çağrımı yapılır. Bu altı (6) çağrımın herbiri için TGT almanıza gerek yoktur. Tek bir TGT ile işleminizi yapabilirsiniz. Çok sayıda TGT oluşturmanız halinde TGT lerinizin bir bölümü öldürülebilir. Bu da entegrasyonunuzun aksamasına neden olabilir.

Akış Diyagramı
Mesaj Oluşturma Diyagramı

6.1. Ticket Granting Ticket (TGT) Oluşturma

TGT oluşturmak için https://cas.epias.com.tr/cas/v1/tickets?format=text (test ortamı için https://testcas.epias.com.tr/cas/v1/tickets?format=text) adresine aşağıdaki değerleri POST metodu ile göndermeniz gerekmektedir.

Gönderilen HTTP isteğinin header kısmında Content-Type karşılığında ise application/x-www-form-urlencoded yazmalıdır.

parametre değer

username

EKYS Kullanıcı Adı

password

EKYS Şifresi

örnek http isteği
POST /cas/v1/tickets HTTP/1.1
Host: cas.epias.com.tr
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded

username=DGPYSUSER&password=DGPYSSIFRE

Servisten HTTP 200 cevabını beklemelisiniz. Sonuç olarak aşağıdaki gibi bir örnek dönecektir.

örnek cevap
TGT-237-U0TU0jUHLyOEIrdoDBEEf3AdRFAXGLifK2ITn4LoY3HfhstGtx-cas02.epias.com.tr

6.2. Service Ticket (ST) Oluşturma

ST oluşturmak için önce TGT alınmalıdır. TGT alındıktan sonra şu şekilde bir istek adresi oluşturulur. https://cas.epias.com.tr/cas/v1/tickets/{TGT} (test ortamı için https://testcas.epias.com.tr/cas/v1/tickets/{TGT})

Bir servis için alınan ST başka bir servis için kullanılamaz.
ST nin geçerlilik süresi 30 saniyedir.
Gün Öncesi Uygulamasının servis adı gerçek ortam için https://gop.epias.com.tr test ortamı için https://testgop.epias.com.tr
örnek
https://cas.epias.com.tr/cas/v1/tickets/TGT-229-2hmcHafszagAAxtCh017nax1en3U9TouWeGvIrq9KbSbeKE9Zk-cas02.epias.com.tr

Bu adrese aşağıdaki parametreler POST metodu ile gönderilir.

parametre değer

service

test ortamı için https://testgop.epias.com.tr gerçek ortam için https://gop.epias.com.tr

Sonuç olarak aşağıdaki cevap döner. Bu servisten HTTP 200 döndüğünde ST yi başarılı olarak almış olursunuz.

örnek
ST-29962-hSwyzWCP0xC0eRi0bmna-cas01.epias.com.tr

6.3. Gün Öncesi Uygulaması Örnek Mesaj Yapısı

Gün Öncesi servislerinin standart bir mesaj yapısı bulunmaktadır. Gönderdiğiniz tüm isteklerde bu formata uygun veri göndermelisiniz.

Öncelikle her isteğin HTTP header alanına aşağıdaki değerleri eklemelisiniz.

parametre değer

gop-service-ticket

Service Ticket (ST) Örneğin : ST-30247-uNWazHn52sKZU71v5Ar4-cas02.epias.com.tr

Accept

application/json veya application/xml

Content-Type

application/json veya application/xml

Servis mesajları iki bölümden oluşur.

Birinci bölüm header olarak kullanılan ve isteği, gönderdiğiniz servisten bağımsız olarak isteği tanımlayan mesaj alanıdır. header alanında aşağıdaki anahtarlar bulunmalıdır.

parametre değer açıklama

transactionId

isteği tanımlayan benzersiz anahtar (Universal Unique Identifier)

isteğiniz ile ilgili sorularınızda bu id değerini sizden isteyeceğiz

application

servisi çağırırken kullanmış olduğunuz uygulamanın adı

language

dil "en" veya "tr"

İkinci bölüm ise çağırdığınız servise has parametreleri içeren body alanıdır. Tüm servisler için farklılık gösterebilir.

Aşağıdaki örnekte teslim gününün doğru olup olmadığını kontrol eden bir mesaj bulunmaktadır.

header alanını anahtar (key) ve değer (value) şeklinde gönderilmelidir.
Servise gelen ve giden tüm mesajlardaki tarih alanları ISO-8601 formatındadır. Format yyyy-MM-dd’T’HH:mm:ss.SSSZ şeklinde olmalıdır. Timezone değeri Yaz Saati Uygulamasında için +03:00 Kış Saatin Uygulamasında +02:00 olarak değişmektedir. O yüzden dokümanın içerisinde verilen örnek JSON dosyalarındaki tarih alanlarına dikkat ediniz. Örnek bir zaman değeri şu şekildedir. 2016-03-25T00:00:00.000+0300
Örnek ISO8601 Parser Java 8
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil
{

    public static Date fromISO8601Date(String v)
    {
        if (null == v) return null;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        try
        {
            return sdf.parse(v);
        } catch (ParseException e)
        {
            throw new RuntimeException(e);
        }
    }

    public static String toISO8601Date(Date v)
    {
        if (null == v) return null;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        return sdf.format(v);
    }
}
Örnek HTTP Mesajı
POST /gop-servis/rest/offer/validatedeliveryday HTTP/1.1
Host: testgop.epias.com.tr
Accept: application/json
Content-Type: application/json
gop-service-ticket: ST-31352-VjHOo5iDV4fDkOod3jZc-cas02.epias.com.tr
Cache-Control: no-cache
{
"header":[
        {"key":"transactionId","value":"7da7ffb7-01d0-4b37-9bd5-eaba72854693"},
        {"key":"application","value":"gopweb"}
],
"body":{
        "deliveryDay":"2016-03-25T00:00:00.000+0200"
        }
}
Örnek JSON Mesajı
{
"header":[
        {"key":"transactionId","value":"7da7ffb7-01d0-4b37-9bd5-eaba72854693"},
        {"key":"application","value":"gopweb"}
],
"body":{
        "deliveryDay":"2016-03-25T00:00:00.000+0200"
        }
}

Gönderilen tüm isteklere dönen cevaplar da iki bölümden oluşur. Birinci bölüm isteğin başarılı olup olmadığını dönen result ile başlayan değerler. İkinci bölüm ise body alanında sonucu dönen kısım.

Her sonuç mesajında aşağıdaki alanlar sabit olarak bulunur.

parametre tip değer açıklama

resultCode

string

"0" başarılı diğer hallerde hatakodu içerir

aldığınız hatalar ile ilgili bilgi almak isterseniz bu alanı sizden isteyeceğiz.

resultDescription

string

başarılı durumda "OK" diğer hallerde hatanın açıklamasını içerir

aldığınız hatalar ile ilgili bilgi almak isterseniz bu alanı sizden isteyeceğiz.

resultType

string

başarılı isteklerde SUCCESS , bir iş kuralına takıldıysanız BUSINESSERROR , bir sistem hatası ile karşılaşırsanız SYSTEMERROR

BUSINESSERROR : Göndermiş olduğunuz istek ile ilgili bir sorun olduğunu belirtir. İsteğinizi gözden geçirmelisiniz. SYSTEMERROR : Sistemde bir hata olduğunu belirtir. Bizimle irtibata geçmelisiniz.
Örnek Başarılı JSON Cevap Mesajı
{"resultCode":"0","resultDescription":"OK","body":true,"resultType":"SUCCESS"}

7. Servis Detayları

Bu bölümden kategorilerine göre Servis çağırım detayları ile ilgili bilgilere ulaşabilirsiniz.

7.1. Teklif Servisleri

7.1.1. Teklif Servisleri Nasıl Çağrılır?

Teklif servisleri girdi olarak minimum ve maksimum fiyat değerlerini içeren fiyat-miktar ikilileri,teklifin ait olduğu bölge, teklifin kur tipi (TRY,EUR vs.) ve periyot bilgilerini alır.

Teklife girilebilecek periyotları buradaki servisten alabilirsiniz. Periyotlar güne göre değişiklik gösterebilir.

Yaz saatinden kış saatine ya da kış saatinden yaz saatine geçişlerde, teklif periyotları değişeceğinden her gün için bu servisi çağırıp doğru periyotlara değer gönderdiğinizi kontrol ediniz.

Teklife girilebilecek kur bilgisini buradaki servisten , teklifin girilebileceği bölge listesini buradan, tekliflerin içinde göndermeniz gereken minimum ve maksimum fiyaları bu servisten alabilirsiniz.

Belirtilen teslim gününe teklif girip giremeyeceğiniz bu servise sorabilirsiniz.

Teklifinizi gönderirken önce periyot daha sonra bu periyotun altına fiyat miktar ikilileri girmelisiniz. Fiyatlar kırılımları belirlediğinden, kırılımlar yönetmelik ile belirtilenden daha fazla olamaz.

7.1.2. Teklif Servisleri Test Arayüzü

Teklif servisleri mesajlarınızı denemek için https://testgop.epias.com.tr/gop-servis/test/ prod ortamı için https://gop.epias.com.tr/gop-servis/test/ adresinden test arayüzüne ulaşabilirsiniz. Burada body alanına mesajınızı girip gop-service-ticket alanına cas tan aldığınız ST değerini girerek servisi çağırabilirsiniz.

Aşağıda örnek isteği görüntüleyebilirsiniz.

screen1
Bu kısımda isteğin aldığı input parametreleri , servis adresi vs model bilgileri bulunmaktadır.
screen2
Bu kısımda içerik bilgisi bulunmaktadır
screen3
Bu kısımda servisten dönen örnek cevap bulunmaktadır

7.1.3. Teklif / Oluşturma / Saatlik

Bu servis saatlik teklif oluşturmanızı sağlar. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "611449be-6e39-40f5-8349-7df6d7f16b8e"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "currencyCode": "TRY",
        "deliveryDay": "2016-04-01T00:00:00.000+0300",
        "offerType": "HOURLY",
        "regionCode": "TR1",
        "offerDetails": [{
            "startPeriod": 1,
            "duration": 1,
            "offerPrices": [{
                "price": 10,
                "amount": 5.0
            }, {
                "price": 1960,
                "amount": 5.0
            }]
        }, {
            "startPeriod": 2,
            "duration": 1,
            "offerPrices": [{
                "price": 10,
                "amount": 5.0
            }, {
                "price": 1960,
                "amount": 5.0
            }]
        }, {
            "startPeriod": 22,
            "duration": 1,
            "offerPrices": [{
                "price": 10,
                "amount": 5.0
            }, {
                "price": 1960,
                "amount": 5.0
            }]
        }, {
            "startPeriod": 23,
            "duration": 1,
            "offerPrices": [{
                "price": 10,
                "amount": 5.0
            }, {
                "price": 1960,
                "amount": 5.0
            }]
        }]
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "HOURLY",
            "offerVersion": 4,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 7,
                "duration": 1,
                "periodDescription": "07:00 - 08:00",
                "dst": true,
                "offerPrices": [{
                    "price": 10,
                    "amount": 5.0
                }, {
                    "price": 1960,
                    "amount": 5.0
                }],
                "block": null,
                "relatedBlock": null
            }, {
                "offerDetailId": null,
                "startPeriod": 6,
                "duration": 1,
                "periodDescription": "06:00 - 07:00",
                "dst": true,
                "offerPrices": [{
                    "price": 10,
                    "amount": 5.0
                }, {
                    "price": 1960,
                    "amount": 5.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": {
                "id": 1000083475,
                "date": "2016-03-30T00:00:00.000+0300",
                "dollar": 2.8334,
                "euro": 3.2081,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-03-30T16:44:10.613+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>e60dbc70-8efb-4a90-a229-e371cd69fb38</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerRequest">
        <currencyCode>TRY</currencyCode>
        <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
        <offerType>HOURLY</offerType>
        <regionCode>TR1</regionCode>
        <offerDetails>
            <startPeriod>1</startPeriod>
            <duration>1</duration>
            <offerPrices>
                <price>0</price>
                <amount>100</amount>
            </offerPrices>
            <offerPrices>
                <price>2000</price>
                <amount>100</amount>
            </offerPrices>
        </offerDetails>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>00:00 - 01:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyInfo>
                <date>2016-04-19T00:00:00.000+0300</date>
                <dollar>2.8329</dollar>
                <euro>3.2102</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2016-04-20T09:58:12.121+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.4. Teklif / Oluşturma / Blok

Bu servis blok teklif oluşturmanızı sağlar. Buradan servis parametre detaylarına erişebilirsiniz.

Blok teklif ekleme isteklerinde girilmek istenilen başlangıç saati periyot olarak gönderilmelidir. Teklif periyotları servis üzerinden alınmalıdır. 00:00 saati periyot olarak 1’e denk gelmektedir. Ayrıca bitiş saati teklif içerisinde gönderilen duration' alanından hesaplanmaktadır. startPeriod 1 ve duration 4 ise 00:00 - 01:00 - 02:00 - 03:00 dilimlerini kapsayan blok teklif girmiş olursunuz.
Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "967b9afc-a985-4ea8-be1e-131c28a5435e"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "currencyCode": "TRY",
        "deliveryDay": "2016-04-01T00:00:00.000+0300",
        "offerType": "BLOCK",
        "regionCode": "TR1",
        "offerDetails": [{
            "startPeriod": 1,
            "duration": 11,
            "block": "BLK_1",
            "offerPrices": [{
                "price": 250.0,
                "amount": 50.0
            }]
        }]
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "BLOCK",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 1,
                "duration": 11,
                "periodDescription": "00:00",
                "dst": true,
                "offerPrices": [{
                    "price": 250,
                    "amount": 50.0
                }],
                "block": "BLK_1",
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": {
                "id": 1000083475,
                "date": "2016-03-30T00:00:00.000+0300",
                "dollar": 2.8334,
                "euro": 3.2081,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-03-30T15:01:55.014+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>967b9afc-a985-4ea8-be1e-131c28a5435e</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="offerRequest">
                <currencyCode>TRY</currencyCode>
                <deliveryDay>2016-04-20T00:00:00.000+0300</deliveryDay>
                <offerType>BLOCK</offerType>
                <regionCode>TR1</regionCode>
                <offerDetails>
                        <startPeriod>1</startPeriod>
                        <duration>11</duration>
                        <block>BLK_1</block>
                        <offerPrices>
                                <price>250</price>
                                <amount>50</amount>
                        </offerPrices>
                </offerDetails>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryOfferResponse">
                <offers>
                        <deliveryDay>2016-04-20T00:00:00.000+0300</deliveryDay>
                        <offerType>BLOCK</offerType>
                        <offerVersion>1</offerVersion>
                        <regionCode>TR1</regionCode>
                        <regionName>TR1</regionName>
                        <currencyCode>TRY</currencyCode>
                        <currencyName>TRY</currencyName>
                        <dayLightSavingDay>false</dayLightSavingDay>
                        <offerDetails>
                                <block>BLK_1</block>
                                <dst>false</dst>
                                <duration>11</duration>
                                <offerPrices>
                                        <amount>50.0</amount>
                                        <price>250</price>
                                </offerPrices>
                                <periodDescription>00:00</periodDescription>
                                <startPeriod>1</startPeriod>
                        </offerDetails>
                        <user>dgpysuser</user>
                        <availableActions>EDITABLE</availableActions>
                        <availableActions>CANCELABLE</availableActions>
                        <currencyInfo>
                                <date>2016-04-19T00:00:00.000+0300</date>
                                <dollar>2.8329</dollar>
                                <euro>3.2102</euro>
                                <turkishLira>1.0</turkishLira>
                        </currencyInfo>
                        <lastModifyDate>2016-04-19T18:13:31.319+0300</lastModifyDate>
                </offers>
        </body>
        <resultType>SUCCESS</resultType>
</response>

Bağlı blok teklif oluşturma Json ve XML' leri aşağıdaki gibidir.

Örnek Json İstek (Bağlı Blok ile)
{
    "header": [{
        "key": "transactionId",
        "value": "9d126fde-85ff-434f-80f8-bf1afb7a41a5"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "currencyCode": "TRY",
        "deliveryDay": "2016-04-30T00:00:00.000+0300",
        "offerType": "BLOCK",
        "regionCode": "TR1",
        "offerDetails": [{
            "startPeriod": 12,
            "duration": 4,
            "block": "BLK_1",
            "relatedBlock": "BLK_2",
            "offerPrices": [{
                "price": 12.0,
                "amount": 12.0
            }]
        }, {
            "startPeriod": 15,
            "duration": 5,
            "block": "BLK_2",
            "offerPrices": [{
                "price": 21.0,
                "amount": 18.0
            }]
        }]
    }
}
Örnek Json Cevap (Bağlı Blok ile)
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-30T00:00:00.000+0300",
            "offerType": "BLOCK",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": false,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 12,
                "duration": 4,
                "periodDescription": "11:00",
                "dst": false,
                "offerPrices": [{
                    "price": 12,
                    "amount": 12.0
                }],
                "block": "BLK_1",
                "relatedBlock": "BLK_2"
            }, {
                "offerDetailId": null,
                "startPeriod": 15,
                "duration": 5,
                "periodDescription": "14:00",
                "dst": false,
                "offerPrices": [{
                    "price": 21,
                    "amount": 18.0
                }],
                "block": "BLK_2",
                "relatedBlock": null
            }],
            "user": "PK183",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyInfo": {
                "date": "2016-04-28T00:00:00.000+0300",
                "dollar": 2.815,
                "euro": 3.1944,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-04-29T10:36:49.562+0300",
            "organization": null
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek (Bağlı Blok ile)
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>9d126fde-85ff-434f-80f8-bf1afb7a41a5</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerRequest">
        <currencyCode>TRY</currencyCode>
        <deliveryDay>2016-04-30T00:00:00.000+0300</deliveryDay>
        <offerType>BLOCK</offerType>
        <regionCode>TR1</regionCode>
        <offerDetails>
            <startPeriod>12</startPeriod>
            <duration>4</duration>
            <block>BLK_1</block>
            <relatedBlock>BLK_2</relatedBlock>
            <offerPrices>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
        </offerDetails>
        <offerDetails>
            <startPeriod>15</startPeriod>
            <duration>5</duration>
            <block>BLK_2</block>
            <offerPrices>
                <price>21</price>
                <amount>18</amount>
            </offerPrices>
        </offerDetails>
    </body>
</serviceRequest>
Örnek XML Cevap (Bağlı Blok ile)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-30T00:00:00.000+0300</deliveryDay>
            <offerType>BLOCK</offerType>
            <offerVersion>2</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <block>BLK_1</block>
                <dst>false</dst>
                <duration>4</duration>
                <offerPrices>
                    <amount>12.0</amount>
                    <price>12</price>
                </offerPrices>
                <periodDescription>11:00</periodDescription>
                <relatedBlock>BLK_2</relatedBlock>
                <startPeriod>12</startPeriod>
            </offerDetails>
            <offerDetails>
                <block>BLK_2</block>
                <dst>false</dst>
                <duration>5</duration>
                <offerPrices>
                    <amount>18.0</amount>
                    <price>21</price>
                </offerPrices>
                <periodDescription>14:00</periodDescription>
                <startPeriod>15</startPeriod>
            </offerDetails>
            <user>PK195</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyInfo>
                <date>2016-04-28T00:00:00.000+0300</date>
                <dollar>2.815</dollar>
                <euro>3.1944</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2016-04-29T10:46:53.424+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.5. Teklif / Oluşturma / Esnek

Bu servis esnek teklif oluşturmanızı sağlar. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "3b853f53-8784-4440-91bf-478bf314170e"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "currencyCode": "TRY",
        "deliveryDay": "2016-04-01T00:00:00.000+0300",
        "offerType": "FLEXIBLE",
        "regionCode": "TR1",
        "offerDetails": [{
            "startPeriod": 0,
            "duration": 1,
            "offerPrices": [{
                "price": 200,
                "amount": -100.0
            }]
        }, {
            "startPeriod": 0,
            "duration": 1,
            "offerPrices": [{
                "price": 100,
                "amount": -400.0
            }]
        }]
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "FLEXIBLE",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 0,
                "duration": 1,
                "periodDescription": null,
                "dst": true,
                "offerPrices": [{
                    "price": 200,
                    "amount": -100.0
                }],
                "block": null,
                "relatedBlock": null
            }, {
                "offerDetailId": null,
                "startPeriod": 0,
                "duration": 1,
                "periodDescription": null,
                "dst": true,
                "offerPrices": [{
                    "price": 100,
                    "amount": -400.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": {
                "id": 1000083475,
                "date": "2016-03-30T00:00:00.000+0300",
                "dollar": 2.8334,
                "euro": 3.2081,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-03-30T16:49:11.528+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>3b853f53-8784-4440-91bf-478bf314170e</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerRequest">
        <currencyCode>TRY</currencyCode>
        <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
        <offerType>FLEXIBLE</offerType>
        <regionCode>TR1</regionCode>
        <offerDetails>
            <startPeriod>0</startPeriod>
            <duration>1</duration>
            <offerPrices>
                <price>200</price>
                <amount>-100</amount>
            </offerPrices>
        </offerDetails>
        <offerDetails>
            <startPeriod>0</startPeriod>
            <duration>1</duration>
            <offerPrices>
                <price>100</price>
                <amount>-400</amount>
            </offerPrices>
        </offerDetails>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-100.0</amount>
                    <price>200</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-400.0</amount>
                    <price>100</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyInfo>
                <date>2016-04-19T00:00:00.000+0300</date>
                <dollar>2.8329</dollar>
                <euro>3.2102</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2016-04-20T09:45:13.838+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.6. Teklif / Avans Listeleme

Bu servis avansları listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "b16ed2a4-7430-4d87-88b4-22238267a9c7"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-03-31T00:00:00.000+0300",
        "region": "TR1"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "advances": [{
            "period": 1,
            "periodDescription": "00:00 - 01:00",
            "marketTradePrice": 1188.51,
            "quantityOfMatchHourly": 92,
            "quantityOfMatchBlock": 0,
            "quantityOfMatchFlexible": 0,
            "totalOfPurchasingTowardsHourly": 10934.29,
            "totalOfPurchasingTowardsBlock": 0.00,
            "totalOfPurchasingTowards": 10934.29,
            "totalOfSalesTowardsHourly": 0.00,
            "totalOfSalesTowardsBlock": 0.00,
            "totalOfSalesTowardsFlexible": 0.00,
            "totalOfSalesTowards": 0.00,
            "sidePayment": 0.00,
            "blockDetails": [],
            "hourlyDetails": [{
                "offerPrice": 10,
                "amount": 100
            }, {
                "offerPrice": 520,
                "amount": 95
            }, {
                "offerPrice": 1960,
                "amount": 90
            }],
            "flexibleDetails": []
        }],
        "sidePayment": {
            "totalOfPurchasingTowards": 790586.26,
            "totalOfSalesTowards": 791456.34,
            "total": -870.08,
            "countOfOrganization": 651,
            "totalOfConstantSidePayment": -8.60,
            "quantityOfMatch": 15325,
            "quantityOfMatchByOrganization": 2216,
            "totalOfVariableSidePayment": -2434.92
        }
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>b16ed2a4-7430-4d87-88b4-22238267a9c7</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="advanceResultRequest">
                <deliveryDay>2016-03-31T00:00:00.000+0300</deliveryDay>
                <region>TR1</region>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="advanceResultResponse">
                <advances>
                        <period>1</period>
                        <periodDescription>00:00 - 01:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>2</period>
                        <periodDescription>01:00 - 02:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>3</period>
                        <periodDescription>02:00 - 03:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>4</period>
                        <periodDescription>03:00 - 04:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>5</period>
                        <periodDescription>04:00 - 05:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>6</period>
                        <periodDescription>05:00 - 06:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>7</period>
                        <periodDescription>06:00 - 07:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>8</period>
                        <periodDescription>07:00 - 08:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>9</period>
                        <periodDescription>08:00 - 09:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>10</period>
                        <periodDescription>09:00 - 10:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>11</period>
                        <periodDescription>10:00 - 11:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>12</period>
                        <periodDescription>11:00 - 12:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>13</period>
                        <periodDescription>12:00 - 13:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>14</period>
                        <periodDescription>13:00 - 14:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>15</period>
                        <periodDescription>14:00 - 15:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>16</period>
                        <periodDescription>15:00 - 16:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>17</period>
                        <periodDescription>16:00 - 17:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>18</period>
                        <periodDescription>17:00 - 18:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>19</period>
                        <periodDescription>18:00 - 19:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>20</period>
                        <periodDescription>19:00 - 20:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>21</period>
                        <periodDescription>20:00 - 21:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>22</period>
                        <periodDescription>21:00 - 22:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>23</period>
                        <periodDescription>22:00 - 23:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <advances>
                        <period>24</period>
                        <periodDescription>23:00 - 24:00</periodDescription>
                        <quantityOfMatchBlock>0</quantityOfMatchBlock>
                        <quantityOfMatchFlexible>0</quantityOfMatchFlexible>
                        <quantityOfMatchHourly>0</quantityOfMatchHourly>
                        <sidePayment>0.00</sidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfPurchasingTowardsBlock>0.00</totalOfPurchasingTowardsBlock>
                        <totalOfPurchasingTowardsHourly>0.00</totalOfPurchasingTowardsHourly>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfSalesTowardsBlock>0.00</totalOfSalesTowardsBlock>
                        <totalOfSalesTowardsFlexible>0.00</totalOfSalesTowardsFlexible>
                        <totalOfSalesTowardsHourly>0.00</totalOfSalesTowardsHourly>
                </advances>
                <sidePayment>
                        <countOfOrganization>649</countOfOrganization>
                        <quantityOfMatchByOrganization>0</quantityOfMatchByOrganization>
                        <total>0.00</total>
                        <totalOfConstantSidePayment>0.00</totalOfConstantSidePayment>
                        <totalOfPurchasingTowards>0.00</totalOfPurchasingTowards>
                        <totalOfSalesTowards>0.00</totalOfSalesTowards>
                        <totalOfVariableSidePayment>0.00</totalOfVariableSidePayment>
                </sidePayment>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.1.7. Teklif / Para Birimleri

Bu servis teklif para birimlerini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [
        {
            "key": "transactionId",
            "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
        {
            "key": "application",
            "value": "UYGULAMA_ADI"
    }
  ],
    "body": {
        "deliveryDay": "2016-04-01T00:00:00.000+0300"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "parameters": [
            {
                "value": "EUR",
                "description": "EUR"
      }, {
                "value": "TRY",
                "description": "TRY"
      }
    ]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="currencyRequest">
                <deliveryDay>2016-04-19T00:00:00.000+0300</deliveryDay>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="parameterQueryResponse">
        <parameters>
            <description>TRY</description>
            <value>TRY</value>
        </parameters>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.8. Minimum Maksimum / Teklif Fiyatları / Teslim Tarihli / Listeleme

Bu servis belirtilen teslim tarihinde aktif olan minimum maksimum teklif fiyatlarını listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "572aec9e-ce05-4424-a6b3-eea673193805"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "effectiveDate": "2016-04-04T00:00:00.000+0300"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "minMaxPriceId": 1757260289,
        "minimumPrice": 0.0,
        "maximumPrice": 2000.0,
        "startDate": "2016-04-04T00:00:00.000+0300",
        "endDate": "2036-04-04T00:00:00.000+0300",
        "active": true
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>11e0f830-aa7e-45de-89f8-1490e9a98ca6</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="minMaxPriceListRequest">
                <effectiveDate>2016-04-21T00:00:00.000+0300</effectiveDate>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="minMaxPriceResponse">
                <minMaxPriceId>1</minMaxPriceId>
                <minimumPrice>0.0</minimumPrice>
                <maximumPrice>2000.0</maximumPrice>
                <startDate>2010-01-01T00:00:00.000+0200</startDate>
                <endDate>2026-01-01T00:00:00.000+0200</endDate>
                <active>true</active>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.1.9. Teklif / Teslim Tarihi Geçerlilik Kontrolü

Bu servis teklif girilmek istenen tarihin geçerliliğini kontrol eder. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "631de3f8-9811-4c14-b3dd-aa7f4350ce1b"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-03-31T00:00:00.000+0300"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": false,
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>631de3f8-9811-4c14-b3dd-aa7f4350ce1b</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryDeliveryDayRequest">
        <deliveryDay>2016-03-31T00:00:00.000+0300</deliveryDay>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">false</body>
    <resultType>SUCCESS</resultType>
</response>

7.1.10. Teklif / Bölgeler

Bu servis teklif bölgelerini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [
        {
            "key": "transactionId",
            "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
        {
            "key": "application",
            "value": "UYGULAMA_ADI"
    }
  ],
    "body": {
        "deliveryDay": "2016-03-27T00:00:00.000+0200"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "parameters": [
            {
                "value": "TR1",
                "description": "TR1"
      }
    ]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="regionRequest">
                <deliveryDay>2016-04-19T00:00:00.000+0300</deliveryDay>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="parameterQueryResponse">
        <parameters>
            <description>TR1</description>
            <value>TR1</value>
        </parameters>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.11. Teklif / Periyot Saatleri Listeleme

Bu servis teklif saat periyotlarını listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [
        {
            "key": "transactionId",
            "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
        {
            "key": "application",
            "value": "UYGULAMA_ADI"
    }
  ],
    "body": {
        "date": "2016-04-03T00:00:00.000+0200"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offerBlockHours": [
            {
                "text": "00:00",
                "period": 1
      },
            {
                "text": "01:00",
                "period": 2
      },
            {
                "text": "02:00",
                "period": 3
      },
            {
                "text": "03:00",
                "period": 4
      },
            {
                "text": "04:00",
                "period": 5
      },
            {
                "text": "05:00",
                "period": 6
      },
            {
                "text": "06:00",
                "period": 7
      },
            {
                "text": "07:00",
                "period": 8
      },
            {
                "text": "08:00",
                "period": 9
      },
            {
                "text": "09:00",
                "period": 10
      },
            {
                "text": "10:00",
                "period": 11
      },
            {
                "text": "11:00",
                "period": 12
      },
            {
                "text": "12:00",
                "period": 13
      },
            {
                "text": "13:00",
                "period": 14
      },
            {
                "text": "14:00",
                "period": 15
      },
            {
                "text": "15:00",
                "period": 16
      },
            {
                "text": "16:00",
                "period": 17
      },
            {
                "text": "17:00",
                "period": 18
      },
            {
                "text": "18:00",
                "period": 19
      },
            {
                "text": "19:00",
                "period": 20
      },
            {
                "text": "20:00",
                "period": 21
      },
            {
                "text": "21:00",
                "period": 22
      },
            {
                "text": "22:00",
                "period": 23
      },
            {
                "text": "23:00",
                "period": 24
      },
            {
                "text": "24:00",
                "period": 25
      }
    ]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryOfferHourBlockRequest">
        <date>2016-04-03T00:00:00.000+0200</date>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferHourBlockResponse">
        <offerBlockHours>
            <period>1</period>
            <text>00:00</text>
        </offerBlockHours>
        <offerBlockHours>
            <period>2</period>
            <text>01:00</text>
        </offerBlockHours>
        <offerBlockHours>
            <period>24</period>
            <text>23:00</text>
        </offerBlockHours>
        <offerBlockHours>
            <period>25</period>
            <text>24:00</text>
        </offerBlockHours>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.12. Teklif / Listeleme / Saatlik

Bu servis saatlik teklifleri listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "9bf6a2f7-b05e-4e03-97d7-ca8e29f35e8b"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "start": "2016-04-01T00:00:00.000+0300",
        "end": "2016-04-01T00:00:00.000+0300",
        "offerType": "HOURLY",
        "regionCode": "TR1",
        "version": null
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "HOURLY",
            "offerVersion": 5,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": 1757020252,
                "startPeriod": 1,
                "duration": 1,
                "periodDescription": "00:00 - 01:00",
                "dst": true,
                "offerPrices": [{
                    "price": 10,
                    "amount": 5.0
                }, {
                    "price": 1960,
                    "amount": 5.0
                }],
                "block": null,
                "relatedBlock": null
            }, {
                "offerDetailId": 1757020411,
                "startPeriod": 2,
                "duration": 1,
                "periodDescription": "01:00 - 02:00",
                "dst": true,
                "offerPrices": [{
                    "price": 10,
                    "amount": 5.0
                }, {
                    "price": 1960,
                    "amount": 5.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": {
                "id": 1000012402,
                "date": "2016-03-29T00:00:00.000+0300",
                "dollar": 2.8695,
                "euro": 3.2114,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-03-30T16:53:38.677+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>a9742575-713b-45d8-8781-ace4b7dab0ab</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferRequest">
        <start>2016-04-20T10:33:56.000+0300</start>
        <end>2016-04-21T00:00:00.000+0300</end>
        <offerType>HOURLY</offerType>
        <regionCode>TR1</regionCode>
        <version>null</version>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerDetailId>318142</offerDetailId>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>00:00 - 01:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyInfo>
                <date>2016-04-19T00:00:00.000+0300</date>
                <dollar>2.8329</dollar>
                <euro>3.2102</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2016-04-20T09:58:12.121+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.13. Teklif / Listeleme / Blok

Bu servis Blok teklifleri listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "a9742575-713b-45d8-8781-ace4b7dab0ab"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "start": "2016-04-01T00:00:00.000+0300",
        "end": "2016-04-01T00:00:00.000+0300",
        "offerType": "BLOCK",
        "regionCode": "TR1",
        "version": null
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "BLOCK",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": 1756985325,
                "startPeriod": 1,
                "duration": 11,
                "periodDescription": "00:00",
                "dst": true,
                "offerPrices": [{
                    "price": 250,
                    "amount": 50.0
                }],
                "block": "BLK_1",
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": {
                "id": 1000012402,
                "date": "2016-03-29T00:00:00.000+0300",
                "dollar": 2.8695,
                "euro": 3.2114,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-03-30T15:01:55.014+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>a9742575-713b-45d8-8781-ace4b7dab0ab</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferRequest">
        <start>2016-04-20T10:33:56.000+0300</start>
        <end>2016-04-21T00:00:00.000+0300</end>
        <offerType>BLOCK</offerType>
        <regionCode>TR1</regionCode>
        <version>null</version>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>BLOCK</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <block>BLK_1</block>
                <dst>false</dst>
                <duration>4</duration>
                <offerDetailId>319573</offerDetailId>
                <offerPrices>
                    <amount>500.0</amount>
                    <price>1000</price>
                </offerPrices>
                <periodDescription>00:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyInfo>
                <date>2016-04-19T00:00:00.000+0300</date>
                <dollar>2.8329</dollar>
                <euro>3.2102</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2016-04-20T10:18:03.201+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.14. Teklif / Listeleme / Esnek

Bu servis Esnek teklifleri listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "72a0f328-f8db-419b-abf6-7e1f7df4284e"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "start": "2016-04-01T00:00:00.000+0300",
        "end": "2016-04-01T00:00:00.000+0300",
        "offerType": "FLEXIBLE",
        "regionCode": "TR1",
        "version": null
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "FLEXIBLE",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": 1757019563,
                "startPeriod": 0,
                "duration": 1,
                "periodDescription": null,
                "dst": true,
                "offerPrices": [{
                    "price": 200,
                    "amount": -100.0
                }],
                "block": null,
                "relatedBlock": null
            }, {
                "offerDetailId": 1757019669,
                "startPeriod": 0,
                "duration": 1,
                "periodDescription": null,
                "dst": true,
                "offerPrices": [{
                    "price": 100,
                    "amount": -400.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": {
                "id": 1756997939,
                "date": "2016-03-30T00:00:00.000+0300",
                "dollar": 2.8334,
                "euro": 3.2081,
                "turkishLira": 1.0
            },
            "state": null,
            "lastModifyDate": "2016-03-30T16:49:11.528+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>72a0f328-f8db-419b-abf6-7e1f7df4284e</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferRequest">
        <start>2016-04-15T00:00:00.000+0300</start>
        <end>2016-04-21T00:00:00.000+0300</end>
        <offerType>FLEXIBLE</offerType>
        <regionCode>TR1</regionCode>
        <version>null</version>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerDetailId>316923</offerDetailId>
                <offerPrices>
                    <amount>-100.0</amount>
                    <price>200</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerDetailId>317029</offerDetailId>
                <offerPrices>
                    <amount>-400.0</amount>
                    <price>100</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyInfo>
                <date>2016-04-19T00:00:00.000+0300</date>
                <dollar>2.8329</dollar>
                <euro>3.2102</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2016-04-20T09:45:13.838+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.15. Teklif / Silme / Saatlik

Bu servis saatlik teklifleri siler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "447bee29-3263-4a44-89b5-e45624df31c5"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-02T00:00:00.000+0300",
        "offerType": "HOURLY"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "version": 2,
        "lastModifyDate": "2016-03-31T16:47:36.130+0300"
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>4f9a05c4-8c7d-4711-bf76-86ae2eeca1fd</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="deleteOfferRequest">
                <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
                <offerType>HOURLY</offerType>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="deleteOfferResponse">
                <version>5</version>
                <lastModifyDate>2016-04-20T14:29:35.808+0300</lastModifyDate>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.1.16. Teklif / Silme / Blok

Bu servis blok teklifleri siler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "4f9a05c4-8c7d-4711-bf76-86ae2eeca1fd"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-02T00:00:00.000+0300",
        "offerType": "BLOCK"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "version": 2,
        "lastModifyDate": "2016-03-31T16:44:17.180+0300"
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>4f9a05c4-8c7d-4711-bf76-86ae2eeca1fd</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="deleteOfferRequest">
                <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
                <offerType>BLOCK</offerType>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="deleteOfferResponse">
                <version>5</version>
                <lastModifyDate>2016-04-20T14:26:36.582+0300</lastModifyDate>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.1.17. Teklif / Silme / Esnek

Bu servis esnek teklifleri siler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "ebb0870a-5688-4ff6-b134-ad487e7d7cfe"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-02T00:00:00.000+0300",
        "offerType": "FLEXIBLE"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "version": 2,
        "lastModifyDate": "2016-03-31T16:32:18.452+0300"
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>4f9a05c4-8c7d-4711-bf76-86ae2eeca1fd</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="deleteOfferRequest">
                <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
                <offerType>FLEXIBLE</offerType>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="deleteOfferResponse">
        <version>5</version>
        <lastModifyDate>2016-04-20T14:28:11.002+0300</lastModifyDate>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.18. Teklif / Listeleme / Tarihçe / Saatlik

Bu servis saatlik tekliflerin tarihçesini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "b711eb13-a3eb-4d08-b155-b12513c7fc80"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-01T00:00:00.000+0300",
        "offerType": "HOURLY",
        "regionCode": "TR1"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "HOURLY",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 1,
                "duration": 1,
                "periodDescription": "00:00 - 01:00",
                "dst": true,
                "offerPrices": [{
                    "price": 10,
                    "amount": 5.0
                }, {
                    "price": 1960,
                    "amount": 4.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": null,
            "state": null,
            "lastModifyDate": "2016-03-30T10:56:36.380+0300"
        }, {
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "HOURLY",
            "offerVersion": 2,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 1,
                "duration": 1,
                "periodDescription": "00:00 - 01:00",
                "dst": true,
                "offerPrices": [{
                    "price": 10,
                    "amount": 0.0
                }, {
                    "price": 1960,
                    "amount": 0.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "AZIZ2",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": null,
            "state": "Otomatik iptal. Yeni versiyon eklendi.",
            "lastModifyDate": "2016-03-30T10:56:36.392+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>8051f38f-e5b6-4daf-bda8-e04abdc7a483</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferHistoryRequest">
        <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
        <offerType>HOURLY</offerType>
        <regionCode>TR1</regionCode>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>00:00 - 01:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T09:58:12.121+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <offerVersion>4</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>500.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>00:00 - 01:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>500.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>01:00 - 02:00</periodDescription>
                <startPeriod>2</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>500.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>23:00 - 24:00</periodDescription>
                <startPeriod>24</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <lastModifyDate>2016-04-20T13:30:54.480+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <offerVersion>2</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>50.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>10.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>00:00 - 01:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>50.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>10.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>01:00 - 02:00</periodDescription>
                <startPeriod>2</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>50.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>10.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>23:00 - 24:00</periodDescription>
                <startPeriod>24</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T11:36:41.368+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <offerVersion>3</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>40.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>10.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>00:00 - 01:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>50.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>10.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>01:00 - 02:00</periodDescription>
                <startPeriod>2</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>50.0</amount>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>10.0</amount>
                    <price>2000</price>
                </offerPrices>
                <periodDescription>23:00 - 24:00</periodDescription>
                <startPeriod>24</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T11:38:29.968+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.19. Teklif / Listeleme / Tarihçe / Blok

Bu servis blok tekliflerin tarihçesini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "8051f38f-e5b6-4daf-bda8-e04abdc7a483"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-01T00:00:00.000+0300",
        "offerType": "BLOCK",
        "regionCode": "TR1"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "BLOCK",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 1,
                "duration": 11,
                "periodDescription": "00:00",
                "dst": true,
                "offerPrices": [{
                    "price": 250,
                    "amount": 50.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": null,
            "state": null,
            "lastModifyDate": "2016-03-30T15:01:55.014+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>8051f38f-e5b6-4daf-bda8-e04abdc7a483</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferHistoryRequest">
        <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
        <offerType>BLOCK</offerType>
        <regionCode>TR1</regionCode>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>BLOCK</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>4</duration>
                <offerPrices>
                    <amount>500.0</amount>
                    <price>1000</price>
                </offerPrices>
                <periodDescription>00:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T10:18:03.201+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>BLOCK</offerType>
            <offerVersion>2</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>4</duration>
                <offerPrices>
                    <amount>70.0</amount>
                    <price>1000</price>
                </offerPrices>
                <periodDescription>00:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T11:37:22.404+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>BLOCK</offerType>
            <offerVersion>3</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>4</duration>
                <offerPrices>
                    <amount>80.0</amount>
                    <price>1000</price>
                </offerPrices>
                <periodDescription>00:00</periodDescription>
                <startPeriod>1</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Teminat yetersizliği nedeni ile otomatik iptal edildi.</state>
            <lastModifyDate>2016-04-20T11:39:38.042+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.20. Teklif / Listeleme / Tarihçe / Esnek

Bu servis esnek tekliflerin tarihçesini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "e1d5f504-a345-4444-b353-4bbc9fdbaf2e"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-01T00:00:00.000+0300",
        "offerType": "FLEXIBLE",
        "regionCode": "TR1"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [{
            "deliveryDay": "2016-04-01T00:00:00.000+0300",
            "offerType": "FLEXIBLE",
            "offerVersion": 1,
            "regionCode": "TR1",
            "regionName": "TR1",
            "currencyCode": "TRY",
            "currencyName": "TRY",
            "dayLightSavingDay": true,
            "offerDetails": [{
                "offerDetailId": null,
                "startPeriod": 0,
                "duration": 1,
                "periodDescription": null,
                "dst": true,
                "offerPrices": [{
                    "price": 200,
                    "amount": -100.0
                }],
                "block": null,
                "relatedBlock": null
            }, {
                "offerDetailId": null,
                "startPeriod": 0,
                "duration": 1,
                "periodDescription": null,
                "dst": true,
                "offerPrices": [{
                    "price": 100,
                    "amount": -400.0
                }],
                "block": null,
                "relatedBlock": null
            }],
            "user": "DGPYSUSER",
            "availableActions": ["EDITABLE", "CANCELABLE"],
            "currencyModel": null,
            "state": null,
            "lastModifyDate": "2016-03-30T16:49:11.528+0300"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>8051f38f-e5b6-4daf-bda8-e04abdc7a483</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferHistoryRequest">
        <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
        <offerType>FLEXIBLE</offerType>
        <regionCode>TR1</regionCode>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <offerVersion>1</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-100.0</amount>
                    <price>200</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-400.0</amount>
                    <price>100</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T09:45:13.838+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <offerVersion>2</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-500.0</amount>
                    <price>1000</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Otomatik iptal. Yeni versiyon eklendi.</state>
            <lastModifyDate>2016-04-20T11:37:51.580+0300</lastModifyDate>
        </offers>
        <offers>
            <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <offerVersion>3</offerVersion>
            <regionCode>TR1</regionCode>
            <regionName>TR1</regionName>
            <currencyCode>TRY</currencyCode>
            <currencyName>TRY</currencyName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-500.0</amount>
                    <price>1000</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <offerDetails>
                <dst>false</dst>
                <duration>1</duration>
                <offerPrices>
                    <amount>-250.0</amount>
                    <price>480</price>
                </offerPrices>
                <startPeriod>0</startPeriod>
            </offerDetails>
            <user>dgpysuser</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <state>Teminat yetersizliği nedeni ile otomatik iptal edildi.</state>
            <lastModifyDate>2016-04-20T11:40:18.499+0300</lastModifyDate>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.1.21. Teklif / Eşleşme Sonuç

Bu servis eşleşme sonuçlarını listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "317ec740-95fa-4345-bf25-2df733afd322"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-03-31T00:00:00.000+0300",
        "region": "TR1"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "optimizationSummaryByOrganizations": [{
            "period": 1,
            "duration": 1,
            "periodDescription": "00:00 - 01:00",
            "offerCode": 1745277572,
            "offerType": "HOURLY",
            "offerVersion": 0,
            "volume": 92,
            "marketTradePrice": 1188.51,
            "offerDetailResponses": [{
                "price": 10,
                "amount": 100.0,
                "avgMarketTradePrice": null
            }, {
                "price": 520,
                "amount": 95.0,
                "avgMarketTradePrice": null
            }, {
                "price": 1960,
                "amount": 90.0,
                "avgMarketTradePrice": null
            }]
        }, {
            "period": 2,
            "duration": 1,
            "periodDescription": "01:00 - 02:00",
            "offerCode": 1745277784,
            "offerType": "HOURLY",
            "offerVersion": 0,
            "volume": 92,
            "marketTradePrice": 1188.51,
            "offerDetailResponses": [{
                "price": 10,
                "amount": 100.0,
                "avgMarketTradePrice": null
            }, {
                "price": 520,
                "amount": 95.0,
                "avgMarketTradePrice": null
            }, {
                "price": 1960,
                "amount": 90.0,
                "avgMarketTradePrice": null
            }]
        }, {
            "period": 23,
            "duration": 1,
            "periodDescription": "22:00 - 23:00",
            "offerCode": 1745282236,
            "offerType": "HOURLY",
            "offerVersion": 0,
            "volume": 92,
            "marketTradePrice": 1121.55,
            "offerDetailResponses": [{
                "price": 10,
                "amount": 100.0,
                "avgMarketTradePrice": null
            }, {
                "price": 520,
                "amount": 95.0,
                "avgMarketTradePrice": null
            }, {
                "price": 1960,
                "amount": 90.0,
                "avgMarketTradePrice": null
            }]
        }, {
            "period": 24,
            "duration": 1,
            "periodDescription": "23:00 - 24:00",
            "offerCode": 1745282448,
            "offerType": "HOURLY",
            "offerVersion": 0,
            "volume": 92,
            "marketTradePrice": 1155.03,
            "offerDetailResponses": [{
                "price": 10,
                "amount": 100.0,
                "avgMarketTradePrice": null
            }, {
                "price": 520,
                "amount": 95.0,
                "avgMarketTradePrice": null
            }, {
                "price": 1960,
                "amount": 90.0,
                "avgMarketTradePrice": null
            }]
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>317ec740-95fa-4345-bf25-2df733afd322</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerResultRequest">
        <deliveryDay>2016-03-31T00:00:00.000+0300</deliveryDay>
        <region>TR1</region>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" ?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerResultResponse">
                <optimizationSummaryByOrganizations>
                        <period>1</period>
                        <duration>1</duration>
                        <periodDescription>00:00 - 01:00</periodDescription>
                        <offerCode>1745277572</offerCode>
                        <offerType>HOURLY</offerType>
                        <offerVersion>0</offerVersion>
                        <volume>92</volume>
                        <marketTradePrice>1188.51</marketTradePrice>
                        <offerDetailResponses>
                                <price>10</price>
                                <amount>100</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>520</price>
                                <amount>95</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>1960</price>
                                <amount>90</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                </optimizationSummaryByOrganizations>
                <optimizationSummaryByOrganizations>
                        <period>2</period>
                        <duration>1</duration>
                        <periodDescription>01:00 - 02:00</periodDescription>
                        <offerCode>1745277784</offerCode>
                        <offerType>HOURLY</offerType>
                        <offerVersion>0</offerVersion>
                        <volume>92</volume>
                        <marketTradePrice>1188.51</marketTradePrice>
                        <offerDetailResponses>
                                <price>10</price>
                                <amount>100</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>520</price>
                                <amount>95</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>1960</price>
                                <amount>90</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                </optimizationSummaryByOrganizations>
                <optimizationSummaryByOrganizations>
                        <period>23</period>
                        <duration>1</duration>
                        <periodDescription>22:00 - 23:00</periodDescription>
                        <offerCode>1745282236</offerCode>
                        <offerType>HOURLY</offerType>
                        <offerVersion>0</offerVersion>
                        <volume>92</volume>
                        <marketTradePrice>1121.55</marketTradePrice>
                        <offerDetailResponses>
                                <price>10</price>
                                <amount>100</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>520</price>
                                <amount>95</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>1960</price>
                                <amount>90</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                </optimizationSummaryByOrganizations>
                <optimizationSummaryByOrganizations>
                        <period>24</period>
                        <duration>1</duration>
                        <periodDescription>23:00 - 24:00</periodDescription>
                        <offerCode>1745282448</offerCode>
                        <offerType>HOURLY</offerType>
                        <offerVersion>0</offerVersion>
                        <volume>92</volume>
                        <marketTradePrice>1155.03</marketTradePrice>
                        <offerDetailResponses>
                                <price>10</price>
                                <amount>100</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>520</price>
                                <amount>95</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                        <offerDetailResponses>
                                <price>1960</price>
                                <amount>90</amount>
                                <avgMarketTradePrice />
                        </offerDetailResponses>
                </optimizationSummaryByOrganizations>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2. İkili Anlaşma Servisleri

7.2.1. İkili Anlaşma Servisleri Nasıl Çağrılır?

İkili anlaşma oluşturabilmek için bölge, karşı organizasyon etso kodu, karşı organizasyonun bölgesi, miktar ve periyot bilgilerini servise göndermemiz gerekiyor.

İkili anlaşma teklifi oluştururken, anlaşma tipi olarak "Tek Taraflı" ve "Çift Taraflı" olmak üzere iki alternatif sunulur.

"Tek Taraflı" anlaşma tipi seçilerek onaylanan ikili anlaşmanın iptal edilebilmesi için taraflardan herhangi birinin iradesi yeterli olacaktır. Onaylanan ikili anlaşmayı taraflardan herhangi birisi diğer tarafın rızası olmaksızın iptal edebilecektir.

"Çift Taraflı" anlaşma tipi seçilerek onaylanan ikili anlaşmanın iptal edilebilmesi için her iki tarafın da onayı gerekmektedir. Her iki tarafın onayı olmadan ikili anlaşma iptal edilemeyecektir.

Anlaşma tipinin değiştirilebilmesi için ikili anlaşmanın öncelikle iptal edilmesi gerekmektedir. İptal edilen ikili anlaşmaların anlaşma tipi seçilerek tekrar kaydedilmesi gerekmektedir.

Anlaşma tipi alanı zorunlu değildir, servise hiçbir değer gönderilmez ise varsayılan olarak "Çift Taraflı" olarak işlem görülür.

Periyot bilgisini bu servisi kullanarak edinebilirsiniz.
Karşı Organizasyon Etso Kod bilgisini bu servisi kullanarak edinebilirsiniz.
Bölge ve Karşı Organizasyon Bölge bilgisini bu servisi kullanarak edinebilirsiniz.
Anlaşma tipi bilgisinin alabileceği değerler: BILATERAL(Çift Taraflı), UNILITERAL(Tek Taraflı).

7.2.2. İkili Anlaşmalar / Listeleme

Bu servis ikili anlaşmaları listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Eğer EIC gönderilmezse login olan kullanıcın tüm ikili anlaşmaları aksi halde girilen EIC’ye ait olan katılımcı ile login olan katılımcı arasındaki ikili anlaşmalar listelenir.
Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "548cf8b2-cc19-4694-8a40-46e94caa3825"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-04T00:00:00.000+0300",
        "regionCode": "TR1",
        "counterRegionCode": "TR1",
        "eic": null,
        "status": "WAITING_FOR_APPROVAL"
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "contracts": [{
            "contractId": 1745213707,
            "deliveryDay": "2016-04-04T00:00:00.000+0300",
            "version": 1,
            "offer": {
                "eicCode": "40X000000000195P",
                "organization": "EÜAŞ",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [{
                    "period": 1,
                    "amount": 20.0
                }, {
                    "period": 2,
                    "amount": 30.0
                }, {
                    "period": 24,
                    "amount": 20.0
                }],
                "user": "DGPYSUSER"
            },
            "counterOffer": {
                "eicCode": "40X000000004389T",
                "organization": "ELEKTRA",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [],
                "user": "DGPYSUSER"
            },
            "status": "WAITING_FOR_APPROVAL",
            "state": null,
            "user": "DGPYSUSER",
            "originator": "40X000000000195P",
            "cancellationType":"BILATERAL"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>548cf8b2-cc19-4694-8a40-46e94caa3825</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryContractRequest">
                <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                <regionCode>TR1</regionCode>
                <counterRegionCode>TR1</counterRegionCode>
                <eic />
                <status>WAITING_FOR_APPROVAL</status>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="contractResponse">
                <contracts>
                        <contractId>81550</contractId>
                        <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                        <version>1</version>
                        <offer>
                                <eicCode>40X000000000195P</eicCode>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>1</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>2</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>3</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>4</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>5</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>6</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>7</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>8</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>9</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>10</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>11</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>12</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>13</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>14</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>15</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>16</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>17</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>18</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>19</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>20</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>21</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>22</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>23</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>24</period>
                                </offerAmount>
                                <organization>EÜAŞ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                                <user>dgpysuser</user>
                        </offer>
                        <counterOffer>
                                <eicCode>40X100000001964N</eicCode>
                                <organization>CENGİZ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                                <user>dgpysuser</user>
                        </counterOffer>
                        <status>WAITING_FOR_APPROVAL</status>
                        <user>dgpysuser</user>
                        <organizationShortName>EÜAŞ</organizationShortName>
                        <originator>40X000000000195P</originator>
                        <cancellationType>BILATERAL</cancellationType>
                </contracts>
                <contracts>
                        <contractId>77098</contractId>
                        <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                        <version>1</version>
                        <offer>
                                <eicCode>40X000000000195P</eicCode>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>1</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>2</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>3</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>4</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>5</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>6</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>7</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>8</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>9</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>10</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>11</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>12</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>13</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>14</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>15</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>16</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>17</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>18</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>19</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>20</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>21</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>22</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>23</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>24</period>
                                </offerAmount>
                                <organization>EÜAŞ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                                <user>PK195</user>
                        </offer>
                        <counterOffer>
                                <eicCode>40X000000000183W</eicCode>
                                <organization>TETAŞ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                                <user>dgpysuser</user>
                        </counterOffer>
                        <status>WAITING_FOR_APPROVAL</status>
                        <user>dgpysuser</user>
                        <organizationShortName>EÜAŞ</organizationShortName>
                        <originator>40X000000000195P</originator>
                        <cancellationType>BILATERAL</cancellationType>
                </contracts>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.3. İkili Anlaşmalar / Oluşturma

Bu servis ikili anlaşmalar oluşturur. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "cc212e26-0236-4b03-917a-5c0c1bdef7c8"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-07T00:00:00.000+0300",
        "counterEic": "40X000000009426O",
        "counterRegionCode": "TR1",
        "cancellationType":"BILATERAL",
        "offer": {
            "regionCode": "TR1",
            "contractOfferAmounts": [{
                "period": 1,
                "amount": 4
            }, {
                "period": 2,
                "amount": 4
            }, {
                "period": 3,
                "amount": 6
            }, {
                "period": 4,
                "amount": 3
            }, {
                "period": 24,
                "amount": 0
            }]
        }
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "contracts": [{
            "contractId": 1000000583,
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "version": 1,
            "offer": {
                "eicCode": "40X000000000195P",
                "organization": "EÜAŞ",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [{
                "period": 1,
                "amount": 4
            }, {
                "period": 2,
                "amount": 4
            }, {
                "period": 3,
                "amount": 6
            }, {
                "period": 4,
                "amount": 3
            }, {
                "period": 24,
                "amount": 0
            }],
                "user": "DGPYS"
            },
            "counterOffer": {
                "eicCode": "40X000000009426O",
                "organization": "2M EL.ÜR.",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [],
                "user": "DGPYS"
            },
            "status": "WAITING_FOR_APPROVAL",
            "state": null,
            "user": "DGPYS",
            "originator": "40X000000000195P",
            "cancellationType":"BILATERAL"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>7e994df1-f03b-4188-abe9-5cdfeffb8b95</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="contractRequest">
                <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                <counterEic>40X100000001964N</counterEic>
                <counterRegionCode>TR1</counterRegionCode>
                <cancellationType>BILATERAL</cancellationType>
                <offer>
                        <regionCode>TR1</regionCode>
                        <contractOfferAmounts>
                                <period>1</period>
                                <amount>5</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>2</period>
                                <amount>5</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>3</period>
                                <amount>5</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>4</period>
                                <amount>10</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>5</period>
                                <amount>10</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>6</period>
                                <amount>10</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>7</period>
                                <amount>20</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>8</period>
                                <amount>20</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>9</period>
                                <amount>20</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>10</period>
                                <amount>20</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>11</period>
                                <amount>20</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>12</period>
                                <amount>20</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>13</period>
                                <amount>30</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>14</period>
                                <amount>30</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>15</period>
                                <amount>30</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>16</period>
                                <amount>30</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>17</period>
                                <amount>30</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>18</period>
                                <amount>30</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>19</period>
                                <amount>40</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>20</period>
                                <amount>40</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>21</period>
                                <amount>40</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>22</period>
                                <amount>40</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>23</period>
                                <amount>40</amount>
                        </contractOfferAmounts>
                        <contractOfferAmounts>
                                <period>24</period>
                                <amount>40</amount>
                        </contractOfferAmounts>
                </offer>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="contractResponse">
                <contracts>
                        <contractId>81550</contractId>
                        <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                        <version>1</version>
                        <offer>
                                <eicCode>40X000000000195P</eicCode>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>1</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>2</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>5.0</amount>
                                        <period>3</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>4</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>5</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>6</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>7</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>8</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>9</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>10</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>11</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>12</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>13</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>14</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>15</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>16</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>17</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>18</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>19</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>20</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>21</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>22</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>23</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>24</period>
                                </offerAmount>
                                <organization>EÜAŞ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                                <user>PK195</user>
                        </offer>
                        <counterOffer>
                                <eicCode>40X100000001964N</eicCode>
                                <organization>CENGİZ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                                <user>dgpysuser</user>
                        </counterOffer>
                        <status>WAITING_FOR_APPROVAL</status>
                        <user>dgpysuser</user>
                        <organizationShortName>EÜAŞ</organizationShortName>
                        <originator>40X000000000195P</originator>
                        <cancellationType>BILATERAL</cancellationType>
                </contracts>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.4. İkili Anlaşmalar / Silme

Bu servis seçilen ikili anlaşmaları silmeyi sağlar. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "0ccd7121-658a-4d32-b982-1f81d0f8a727"
    }, {
        "key": "application",
        "value": "gopweb"
    }],
    "body": {
        "contracts": [{
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "regionCode": "TR1",
            "counterRegionCode": "TR1",
            "eic": "40X000000001184P",
            "status": "WAITING_FOR_APPROVAL"
        }, {
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "regionCode": "TR1",
            "counterRegionCode": "TR1",
            "eic": "40X000000000379F",
            "status": "WAITING_FOR_APPROVAL"
        }, {
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "regionCode": "TR1",
            "counterRegionCode": "TR1",
            "eic": "40X000000008001O",
            "status": "WAITING_FOR_APPROVAL"
        }]
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "contracts": [{
            "contractId": 1000017543,
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "version": 2,
            "offer": {
                "eicCode": "40X000000000195P",
                "organization": "EÜAŞ",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [{
                    "period": 1,
                    "amount": 0.0
                }, {
                    "period": 2,
                    "amount": 0.0
                }, {
                    "period": 24,
                    "amount": 0.0
                }],
                "user": "DGPYS"
            },
            "counterOffer": {
                "eicCode": "40X000000001184P",
                "organization": "TUZLA JEO",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [],
                "user": null
            },
            "status": "WAITING_FOR_APPROVAL",
            "state": null,
            "user": "PK195",
            "originator": "40X000000000195P"
        }, {
            "contractId": 1000019027,
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "version": 2,
            "offer": {
                "eicCode": "40X000000000195P",
                "organization": "EÜAŞ",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [{
                    "period": 1,
                    "amount": 0.0
                }, {
                    "period": 2,
                    "amount": 0.0
                }, {
                    "period": 24,
                    "amount": 0.0
                }],
                "user": "DGPYS"
            },
            "counterOffer": {
                "eicCode": "40X000000000379F",
                "organization": "TÜPRAŞ_İZT",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [],
                "user": "DGPYS"
            },
            "status": "WAITING_FOR_APPROVAL",
            "state": null,
            "user": "DGPYS",
            "originator": "EÜAŞ"
        }, {
            "contractId": 1000020511,
            "deliveryDay": "2016-04-07T00:00:00.000+0300",
            "version": 2,
            "offer": {
                "eicCode": "40X000000000195P",
                "organization": "EÜAŞ",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [{
                    "period": 1,
                    "amount": 0.0
                }, {
                    "period": 2,
                    "amount": 0.0
                }, {
                    "period": 24,
                    "amount": 0.0
                }],
                "user": "DGPYS"
            },
            "counterOffer": {
                "eicCode": "40X000000008001O",
                "organization": "JEOTER ÜRE",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [],
                "user": "DGPYS"
            },
            "status": "WAITING_FOR_APPROVAL",
            "state": null,
            "user": "DGPYS",
            "originator": "40X000000000195P"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>0ccd7121-658a-4d32-b982-1f81d0f8a727</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryContractListRequest">
                <contracts>
                        <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                        <regionCode>TR1</regionCode>
                        <counterRegionCode>TR1</counterRegionCode>
                        <eic>40X100000001964N</eic>
                        <status>WAITING_FOR_APPROVAL</status>
                </contracts>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="contractResponse">
                <contracts>
                        <contractId>259100</contractId>
                        <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                        <version>3</version>
                        <offer>
                                <eicCode>40X000000000195P</eicCode>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>1</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>2</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>3</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>4</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>5</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>6</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>7</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>8</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>9</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>10</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>11</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>12</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>13</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>14</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>15</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>16</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>17</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>18</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>19</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>20</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>21</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>22</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>23</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>0.0</amount>
                                        <period>24</period>
                                </offerAmount>
                                <organization>EÜAŞ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                        </offer>
                        <counterOffer>
                                <eicCode>40X100000001964N</eicCode>
                                <organization>CENGİZ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                        </counterOffer>
                        <status>WAITING_FOR_APPROVAL</status>
                        <user>dgpysuser</user>
                        <organizationShortName>EÜAŞ</organizationShortName>
                        <originator>40X000000000195P</originator>
                        <cancellationType>BILATERAL</cancellationType>
                </contracts>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.5. İkili Anlaşmalar / Periyot Saatlerini Listeleme

Bu servis ikili anlaşma periyot saatlerini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "cff6f67d-81d2-4114-944d-82e2c5ee939a"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-04T00:00:00.000+0300"
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "contractHourPeriods": [{
            "text": "00:00",
            "period": 1
        }, {
            "text": "01:00",
            "period": 2
        }, {
            "text": "02:00",
            "period": 3
        }, {
            "text": "23:00",
            "period": 24
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>2806fab9-a6bb-49a4-8ca3-51a8a101dcc4</value>
        </header>
        <header>
                <key>application</key>
                <value>gopweb</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryContractPeriodRequest">
                <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryContractPeriodResponse">
                <contractHourPeriods>
                        <period>1</period>
                        <text>00:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>2</period>
                        <text>01:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>3</period>
                        <text>02:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>4</period>
                        <text>03:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>5</period>
                        <text>04:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>6</period>
                        <text>05:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>7</period>
                        <text>06:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>8</period>
                        <text>07:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>9</period>
                        <text>08:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>10</period>
                        <text>09:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>11</period>
                        <text>10:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>12</period>
                        <text>11:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>13</period>
                        <text>12:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>14</period>
                        <text>13:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>15</period>
                        <text>14:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>16</period>
                        <text>15:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>17</period>
                        <text>16:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>18</period>
                        <text>17:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>19</period>
                        <text>18:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>20</period>
                        <text>19:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>21</period>
                        <text>20:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>22</period>
                        <text>21:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>23</period>
                        <text>22:00</text>
                </contractHourPeriods>
                <contractHourPeriods>
                        <period>24</period>
                        <text>23:00</text>
                </contractHourPeriods>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.6. İkili Anlaşmalar / Statü / Listeleme

Bu servis ikili anlaşma statülerini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "04bf604c-19cd-4b9f-aeee-d78f0920f758"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {}
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "statuses": [{
            "status": "APPROVED",
            "description": "Geçerli"
        }, {
            "status": "WAITING_FOR_APPROVAL",
            "description": "Onay Bekliyor"
        }, {
            "status": "INVALID",
            "description": "Geçersiz"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>04bf604c-19cd-4b9f-aeee-d78f0920f758</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryContractStatusResponse">
                <statuses>
                        <description>Geçerli</description>
                        <status>APPROVED</status>
                </statuses>
                <statuses>
                        <description>Onay Bekliyor</description>
                        <status>WAITING_FOR_APPROVAL</status>
                </statuses>
                <statuses>
                        <description>Geçersiz</description>
                        <status>INVALID</status>
                </statuses>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.7. İkili Anlaşmalar / Tarihçe / Listeleme

Bu servis ikili anlaşma tarihçesini listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "89395570-3667-459d-a993-025fefdd5e36"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-04T00:00:00.000+0300",
        "regionCode": "TR1",
        "counterRegionCode": "TR1",
        "eic": "40X000000004389T",
        "status": "WAITING_FOR_APPROVAL"
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "contracts": [{
            "contractId": 1745213707,
            "deliveryDay": "2016-04-04T00:00:00.000+0300",
            "version": 1,
            "offer": {
                "eicCode": "40X000000000195P",
                "organization": "EÜAŞ",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [{
                    "period": 1,
                    "amount": 20.0
                }, {
                    "period": 2,
                    "amount": 30.0
                }, {
                    "period": 24,
                    "amount": 20.0
                }],
                "user": "DGPYSUSER"
            },
            "counterOffer": {
                "eicCode": "40X000000004389T",
                "organization": "ELEKTRA",
                "regionCode": "TR1",
                "regionName": "TR1",
                "offerAmount": [],
                "user": "DGPYSUSER"
            },
            "status": "WAITING_FOR_APPROVAL",
            "state": null,
            "user": "DGPYSUSER",
            "originator": "40X000000000195P",
            "cancellationType":"BILATERAL"
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>daf8a7d3-aea4-4e96-9f54-37f59fb65d97</value>
        </header>
        <header>
                <key>application</key>
                <value>gopweb</value>
        </header>
        <header>
                <key>override-organization</key>
                <value>40X000000000195P</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryContractRequest">
                <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                <regionCode>TR1</regionCode>
                <counterRegionCode>TR1</counterRegionCode>
                <eic>40X100000001964N</eic>
                <status>WAITING_FOR_APPROVAL</status>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="contractResponse">
                <contracts>
                        <contractId>256238</contractId>
                        <deliveryDay>2016-04-22T00:00:00.000+0300</deliveryDay>
                        <version>2</version>
                        <offer>
                                <eicCode>40X000000000195P</eicCode>
                                <offerAmount>
                                        <amount>1.0</amount>
                                        <period>1</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>1.0</amount>
                                        <period>2</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>1.0</amount>
                                        <period>3</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>4</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>5</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>10.0</amount>
                                        <period>6</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>7</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>8</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>9</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>10</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>11</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>20.0</amount>
                                        <period>12</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>13</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>14</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>15</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>16</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>17</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>30.0</amount>
                                        <period>18</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>19</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>20</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>21</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>22</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>23</period>
                                </offerAmount>
                                <offerAmount>
                                        <amount>40.0</amount>
                                        <period>24</period>
                                </offerAmount>
                                <organization>EÜAŞ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                        </offer>
                        <counterOffer>
                                <eicCode>40X100000001964N</eicCode>
                                <organization>CENGİZ</organization>
                                <regionCode>TR1</regionCode>
                                <regionName>TR1</regionName>
                        </counterOffer>
                        <status>WAITING_FOR_APPROVAL</status>
                        <user>dgpysuser</user>
                        <organizationShortName>EÜAŞ</organizationShortName>
                        <originator>40X000000000195P</originator>
                        <cancellationType>BILATERAL</cancellationType>
                </contracts>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.8. İkili Anlaşmalar / Teslim Tarihi Geçerlilik Kontrolü

Bu servis ikili anlaşma girilmek istenen tarihin geçerliliğini kontrol eder. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "2df9d9bf-ca23-46b3-8044-3c5257da81d5"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-04T00:00:00.000+0300"
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": true,
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>2df9d9bf-ca23-46b3-8044-3c5257da81d5</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="queryDeliveryDayRequest">
                <deliveryDay>2016-04-04T00:00:00.000+0300</deliveryDay>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">false</body>
        <resultType>SUCCESS</resultType>
</response>

7.2.9. İkili Anlaşmalar / Organizasyon / Listeleme

Bu servis ikili anlaşma oluşturmak için gerekli karşı organizasyon listesini getirir. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "5533891a-1129-4525-830a-5328bcc7f4af"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-07T00:00:00.000+0300"
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "organizations": [{
            "name": "Piyasa Mali Uzlastirma Merkezi",
            "shortName": "PMUM",
            "eic": "40X000000000002P",
            "organizationId": {
                "id": userid,
                "period": "2016-04-01T00:00:00.000+0300"
            },
            "status": 2
        }, {
            "name": "Milli Yuk Tevzi Merkezi",
            "shortName": "MYTM",
            "eic": "40X000000000003N",
            "organizationId": {
                "id": userid,
                "period": "2016-04-01T00:00:00.000+0300"
            },
            "status": 2
        }, {
            "name": "ÇELİKLER PAMUKÖREN JEOTERMAL ELEKTRİK ÜRETİM A.Ş.",
            "shortName": "Ç.PAMUKÖRE",
            "eic": "40X000000009451P",
            "organizationId": {
                "id": userid,
                "period": "2016-04-01T00:00:00.000+0300"
            },
            "status": 2
}]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>5533891a-1129-4525-830a-5328bcc7f4af</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="contractOrganizationRequest">
                <deliveryDay>2016-04-21T00:00:00.000+0300</deliveryDay>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="organizationResponse">
                <organizations>
                        <name>TÜRKİYE ELEKTRİK TİCARET VE TAAHHÜT A.Ş.</name>
                        <shortName>TETAŞ</shortName>
                        <eic>40X000000000183W</eic>
                        <organizationId>
                                <id>183</id>
                                <period>2016-04-01T00:00:00.000+0300</period>
                        </organizationId>
                        <status>2</status>
                </organizations>
                <organizations>
                        <name>MOPAK KAĞIT-KARTON SAN. VE TİC. A.Ş.</name>
                        <shortName>MOPAK</shortName>
                        <eic>40X000000000184U</eic>
                        <organizationId>
                                <id>184</id>
                                <period>2016-04-01T00:00:00.000+0300</period>
                        </organizationId>
                        <status>2</status>
                </organizations>
                <organizations>
                        <name>ELEKTRİK ÜRETİM A.Ş.</name>
                        <shortName>EÜAŞ</shortName>
                        <eic>40X000000000195P</eic>
                        <organizationId>
                                <id>195</id>
                                <period>2016-04-01T00:00:00.000+0300</period>
                        </organizationId>
                        <status>2</status>
                </organizations>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.2.10. İkili Anlaşmalar / Bölge / Listeleme

Bu servis ikili anlaşma oluşturmak için bölge ve karşı bölge listelerini getirir. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
  "header": [
    {
      "key": "transactionId",
      "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
    {
      "key": "application",
      "value": "gopweb"
    }
  ],
  "body": {
    "deliveryDay": "2016-03-27T00:00:00.000+0200"
  }
}
Örnek JSON Cevap
{
  "resultCode": "0",
  "resultDescription": "OK",
  "body": {
    "parameters": [
      {
        "value": "TR1",
        "description": "TR1"
      }
    ]
  },
  "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="regionRequest">
                <deliveryDay>2016-03-27T00:00:00.000+0200</deliveryDay>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <resultCode>0</resultCode>
        <resultDescription>OK</resultDescription>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="parameterQueryResponse">
                <parameters>
                        <description>TR1</description>
                        <value>TR1</value>
                </parameters>
        </body>
        <resultType>SUCCESS</resultType>
</response>

7.3. Bölgesel Sonuçlar Servisleri

7.3.1. Bölgesel Sonuçlar Servisleri Nasıl Çağrılır?

Bölgesel sonuçlar servisini çağırabilmek için bölge bilgisini servise göndermemiz gerekiyor.

Bölge bilgisini bu servisi kullanarak edinebilirsiniz.

7.3.2. Sonuçlar / Bölgesel / Listeleme

Bu servis bölgesel sonuçları listeler. Buradan servis parametre detaylarına erişebilirsiniz.

Örnek JSON İstek
{
    "header": [{
        "key": "transactionId",
        "value": "8d0c54a8-759f-464c-9cd9-08607b5a5a3b"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-12T00:00:00.000+0300",
        "region": "TR1"
    }
}
Örnek JSON Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "summaries": [{
            "period": 1,
            "periodDescription": "00:00 - 01:00",
            "marketTradePrice": 499.96,
            "amountOfPurchasingTowardsMatchHourly": 200,
            "amountOfPurchasingTowardsMatchBlock": 0,
            "amountOfPurchasingTowardsMatchTotal": 200,
            "amountOfSalesTowardsMatchHourly": 0,
            "amountOfSalesTowardsMatchBlock": -200,
            "amountOfSalesTowardsMatchFlexible": 0,
            "amountOfSalesTowardsMatchTotal": 200,
            "priceIndependentPurchasing": 0,
            "priceIndependentSales": 0,
            "minLevelPurchasing": 250,
            "maxLevelSales": -500
        }, {
            "period": 2,
            "periodDescription": "01:00 - 02:00",
            "marketTradePrice": 499.96,
            "amountOfPurchasingTowardsMatchHourly": 200,
            "amountOfPurchasingTowardsMatchBlock": 0,
            "amountOfPurchasingTowardsMatchTotal": 200,
            "amountOfSalesTowardsMatchHourly": 0,
            "amountOfSalesTowardsMatchBlock": -200,
            "amountOfSalesTowardsMatchFlexible": 0,
            "amountOfSalesTowardsMatchTotal": 200,
            "priceIndependentPurchasing": 0,
            "priceIndependentSales": 0,
            "minLevelPurchasing": 250,
            "maxLevelSales": -500,
        }, {
            "period": 24,
            "periodDescription": "23:00 - 24:00",
            "marketTradePrice": 486.73,
            "amountOfPurchasingTowardsMatchHourly": 201,
            "amountOfPurchasingTowardsMatchBlock": 0,
            "amountOfPurchasingTowardsMatchTotal": 201,
            "amountOfSalesTowardsMatchHourly": -201,
            "amountOfSalesTowardsMatchBlock": 0,
            "amountOfSalesTowardsMatchFlexible": 0,
            "amountOfSalesTowardsMatchTotal": 201,
            "priceIndependentPurchasing": 0,
            "priceIndependentSales": 0,
            "minLevelPurchasing": 250,
            "maxLevelSales": -800,
        }]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>0a861871-82e6-4115-ad6b-19b2ef8772bb</value>
    </header>
    <header>
        <key>application</key>
        <value>demoIstemci</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryFinalResultRequest">
        <deliveryDay>2016-05-10T00:00:00.000+0300</deliveryDay>
        <region>TR1</region>
    </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<optimizationResultServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="optimizationResult">
        <summaries>
            <amountOfPurchasingTowardsMatchBlock>0</amountOfPurchasingTowardsMatchBlock>
            <amountOfPurchasingTowardsMatchHourly>86</amountOfPurchasingTowardsMatchHourly>
            <amountOfPurchasingTowardsMatchTotal>86</amountOfPurchasingTowardsMatchTotal>
            <amountOfSalesTowardsMatchBlock>0</amountOfSalesTowardsMatchBlock>
            <amountOfSalesTowardsMatchFlexible>0</amountOfSalesTowardsMatchFlexible>
            <amountOfSalesTowardsMatchHourly>-86</amountOfSalesTowardsMatchHourly>
            <amountOfSalesTowardsMatchTotal>-86</amountOfSalesTowardsMatchTotal>
            <marketTradePrice>974.83</marketTradePrice>
            <maxLevelSales>-159</maxLevelSales>
            <minLevelPurchasing>132</minLevelPurchasing>
            <period>1</period>
            <periodDescription>00:00 - 01:00</periodDescription>
            <priceIndependentPurchasing>12</priceIndependentPurchasing>
            <priceIndependentSales>16</priceIndependentSales>
        </summaries>
        <summaries>
            <amountOfPurchasingTowardsMatchBlock>0</amountOfPurchasingTowardsMatchBlock>
            <amountOfPurchasingTowardsMatchHourly>86</amountOfPurchasingTowardsMatchHourly>
            <amountOfPurchasingTowardsMatchTotal>86</amountOfPurchasingTowardsMatchTotal>
            <amountOfSalesTowardsMatchBlock>0</amountOfSalesTowardsMatchBlock>
            <amountOfSalesTowardsMatchFlexible>0</amountOfSalesTowardsMatchFlexible>
            <amountOfSalesTowardsMatchHourly>-86</amountOfSalesTowardsMatchHourly>
            <amountOfSalesTowardsMatchTotal>-86</amountOfSalesTowardsMatchTotal>
            <marketTradePrice>974.83</marketTradePrice>
            <maxLevelSales>-159</maxLevelSales>
            <minLevelPurchasing>132</minLevelPurchasing>
            <period>2</period>
            <periodDescription>01:00 - 02:00</periodDescription>
            <priceIndependentPurchasing>12</priceIndependentPurchasing>
            <priceIndependentSales>16</priceIndependentSales>
        </summaries>
        <summaries>
            <amountOfPurchasingTowardsMatchBlock>0</amountOfPurchasingTowardsMatchBlock>
            <amountOfPurchasingTowardsMatchHourly>86</amountOfPurchasingTowardsMatchHourly>
            <amountOfPurchasingTowardsMatchTotal>86</amountOfPurchasingTowardsMatchTotal>
            <amountOfSalesTowardsMatchBlock>0</amountOfSalesTowardsMatchBlock>
            <amountOfSalesTowardsMatchFlexible>0</amountOfSalesTowardsMatchFlexible>
            <amountOfSalesTowardsMatchHourly>-86</amountOfSalesTowardsMatchHourly>
            <amountOfSalesTowardsMatchTotal>-86</amountOfSalesTowardsMatchTotal>
            <marketTradePrice>974.83</marketTradePrice>
            <maxLevelSales>-159</maxLevelSales>
            <minLevelPurchasing>132</minLevelPurchasing>
            <period>24</period>
            <periodDescription>23:00 - 24:00</periodDescription>
            <priceIndependentPurchasing>12</priceIndependentPurchasing>
            <priceIndependentSales>16</priceIndependentSales>
        </summaries>
    </body>
    <resultType>SUCCESS</resultType>
</optimizationResultServiceResponse>

7.4. İşlem Geçmişi Servisleri

7.4.1. İşlem Geçmişi Servisleri Nasıl Çağrılır?

İşlem Servislerini çağırabilmek için, 'startDate', 'endDate', 'userName', 'organizationEic', 'operationCode', 'operationType', 'operationPriority' değerleri istenilen bilgiye uygun olarak servise gönderilmelidir. 'startDate' ve 'endDate' ile sorgulanmak istenilen İşlem Geçmişi aralığı tanımlanır. 'organizationEic' sorgulanmak istenilen organizasyonun kodudur.

İşlem Geçmişi servisleri ile her kullanıcı sadece kendi organizyonuna ait sorgulamaları yapabilir.

'operationType' işlemin kullanıcı veya sistem tarafından yapıldığının bilgisidir. Aşağıdaki tabloda detayları mevcuttur.

operationType Açıklama

SYSTEM

Sistem tarafından yapılan işlemlerin tipi

USER

Bir kullanıcı tarafından yapılan işlemlerin tipi

'operationPriority' işlemin öneminin bilgisidir. Aşağıdaki tabloda detayları mevcuttur.

operationPriority Açıklama

ERROR

Hata mesajları

INFO

Bilgi mesajları

WARNING

Uyarı mesajları

'operationCode' işlemin hangi durum ile ilgili olduğunun bilgisidir. Parametrik olarak tutulan bu değerleri elde etmek için bu servis kullanılmalıdır.

7.4.2. İşlem Geçmişi Sorgulama Servisi

Bu servis işlem geçmişini sorgulamak için kullanılır. Buradan servis parametre detaylarına erişebilirsiniz.
Örnek Json İstek
{
    "header": [{
        "key": "transactionId",
        "value": "688ce8cc-47af-4ea6-85d9-1f964425bece"
    }, {
        "key": "application",
        "value": "demoClient"
    }],
    "body": {
        "startDate": "2016-04-21T14:06:40.548+0300",
        "endDate": "2016-04-21T14:06:40.548+0300",
        "userName": null,
        "organizationEic": null,
        "operationCode": null,
        "operationType": null,
        "operationPriority": null
    }
}
Örnek Json Cevap
{
  "resultCode": "0",
  "resultDescription":