Overview

Version information

Version : v1

URI scheme

Host : gop.epias.com.tr
BasePath : /gop-servis/rest
Schemes : HTTPS

Tags

  • collateral

  • contract

  • gate-operation

  • market

  • minmaxprice

  • objection

  • offer

  • operationhistory

About This Document

This document contains Gun Oncesi Rest Service definitons and describes how these services will be invoked. Production version of PDF is available at https://gop.epias.com.tr/gop-servis/technical/en/index.pdf Production version of PDF is available at https://testgop.epias.com.tr/gop-servis/technical/en/index.pdf.

This is a live document and features may differ beyween test and production versions. Sürüm notlarını takip ediniz.

Changes

v1.0.0

Offer bidding services added.

v1.0.1

Billateral agreement services added.

v1.0.2

XML Requests and Responses added.

v1.0.3

PostMan messages added.

v1.0.4

GitHub repository added.

v1.0.5

Collateral and Objection services added.

v1.0.6

Market Trade Price Statistics services added.

v1.0.7

Gate Status services added.

v1.0.8

English language support.

1. About Application

Gun Oncesi Piyasasi running on REST services. It consumes JSON and XML requests and produces JSON and XML requests.

Client interface uses same services described at here. It is possible to use your application without logging in our web client.

You need a authorized user at EKYS to use theese services. Every request needs to be authorize by Central Authentication Server (cas.epias.com.tr).

2. Building Client Application Library

Service documentation based on Swagger. You can use following files https://testgop.epias.com.tr/gop-servis/test/swagger.json for test environment, https://gop.epias.com.tr/gop-servis/test/swagger.json for production environment to generate client. There is a code generator located on https://generator.swagger.io which helps you to build client in any language.

3. Example XMl and JSON Messages

Example JSON and XML messages can be accessible by PostMan. PostMan is a Chrome Browser extension and it is available at following url https://www.getpostman.com/.

After you downloaded and installed PostMan you can access messages via url below.

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

4. Sample Clients

Sample codes can be accessible via EPİAŞ GitHub (https://github.com/epiastr) account.

C#

https://github.com/epiastr/gopcsharpclient

java

https://github.com/epiastr/gopjavaclient

5. Help and Support

You can send your opinions or support request to gorusleriniz.gop@epias.com.tr mail address.

6. Gun Oncesi Application Call Procedure

TGT (Ticket Granting Ticket) controls users session. TGT is active at 45 even if you don’t use it.

You can not use TGT as token to call rest services. For each call you need to create a token (Called ST - Service Token) using TGT. You should reuse TGT.You don’t need to create TGT for each request. If you do that you may blocked by Central Authentication Server.

Flow Diagram
Message Creation Diagram

6.1. Ticket Granting Ticket (TGT)

You should post following request to https://cas.epias.com.tr/cas/v1/tickets?format=text (for test environment https://testcas.epias.com.tr/cas/v1/tickets?format=text) url to create TGT. Service accepts only POST requests.

HTTP header should contain Content-Type = application/x-www-form-urlencoded key value pair.

parameter value

username

EKYS user

password

EKYS password

Raw Http Request
POST /cas/v1/tickets HTTP/1.1
Host: cas.epias.com.tr
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded

username=EKYSUSER&password=EKYSPASSWORD

You should wait HTTP 200 status code for successful requests.

Sample Response
TGT-237-U0TU0jUHLyOEIrdoDBEEf3AdRFAXGLifK2ITn4LoY3HfhstGtx-cas02.epias.com.tr

6.2. Service Ticket (ST) Procedure

You need to have a valid TGT to create ST. If you have a valid TGT. You need to construct ST request URL. URL should have following format https://cas.epias.com.tr/cas/v1/tickets/{TGT} (for test environment https://testcas.epias.com.tr/cas/v1/tickets/{TGT})

You can not reuse ST.
ST is valid for 30 seconds.
Service name is for production https://gop.epias.com.tr and https://testgop.epias.com.tr for test
Sample URL
https://cas.epias.com.tr/cas/v1/tickets/TGT-229-2hmcHafszagAAxtCh017nax1en3U9TouWeGvIrq9KbSbeKE9Zk-cas02.epias.com.tr

You should post following parameter as an input using POST method.

parameter value

service

for test environmant : https://testgop.epias.com.tr, for production environment https://gop.epias.com.tr

You get following response after you call the operation. If you should wait for HTTP 200 status code for successful requests.

Sample Response
ST-29962-hSwyzWCP0xC0eRi0bmna-cas01.epias.com.tr

6.3. Gun Oncesi Application Base Message Format

Gun Oncesi Application has a standart message format.

Every http request should contain following HTTP headers.

key value

gop-service-ticket

Service Ticket (ST) e.g. : ST-30247-uNWazHn52sKZU71v5Ar4-cas02.epias.com.tr

Accept

application/json or application/xml

Content-Type

application/json or application/xml

Service messages are splitted in two parts.

First part is called header which defines your requests. This area is independent from service bussiness logic. header should contain following key value pair.

key value description

transactionId

this should be unique (Universal Unique Identifier)

we will request this value if you have some trouble using rest services.

application

your application name

language

"en" or "tr"

Second part called body. This part may differ across all other services.

Following request validates delivery day for offer services.

header is a (key) (value) pair area.
All services uses ISO-8601 as date-time format. Format : yyyy-MM-dd’T’HH:mm:ss.SSSZ. You should use Europe/Istanbul as timezone. Timezone may differ daylight saving days. Sample : 2016-03-25T00:00:00.000+0300
Example ISO8601 Parser for 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);
    }
}
Sample Raw HTTP Request
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"
        }
}
Sample JSON Request
{
"header":[
        {"key":"transactionId","value":"7da7ffb7-01d0-4b37-9bd5-eaba72854693"},
        {"key":"application","value":"gopweb"}
],
"body":{
        "deliveryDay":"2016-03-25T00:00:00.000+0200"
        }
}

Response contains two section. Fields start with result describes whether your reques is valid or not. Section body contains response.

Every response contains following fields

parameter type value description

resultCode

string

"0" means success other values may differ for each request

if you had a problem we will ask this value.

resultDescription

string

if requests succeed return "OK" otherwise returs error description

.

resultType

string

returns SUCCESS for valid operation, if you violate a business rule you will get BUSINESSERROR , if our system can not process your request, you will get SYSTEMERROR

BUSINESSERROR : This means you send an invalid request. Check your input. if you belive your request is valid contact with us. SYSTEMERROR : This means we can not process your request. You should contact with us.
Sample Success Message
{"resultCode":"0","resultDescription":"OK","body":true,"resultType":"SUCCESS"}

6.3.1. Service Testbed

You can use test interface to try your requests.

body means your request and gop-service-ticket means ST

screen1
This section contains , service information model objects and so on.
screen2
This section contains your request
screen3
This section contains response

7. Service Details

From this point document contains service description and call details.

7.1. Offer Services

7.1.1. How to call offer services?

Offer services requires minimum and maximum prices, amount-price pairs, region information, currency and period information as input.

You can get periods from this service. Periods may be different for delivery day. Especially day light saving days. You should call this service for every delivery day.

You need to call this service for available currency codes. , this service for available regions, this service for minimum and maximum prices.

You can ask whether the delivery day is active or not to this service.

7.1.2. Offer / Create / Hourly

This service creates Hourly Offer.

Sample JSON Request
{
    "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
            }]
        }]
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.3. Offer / Create / Block

This service creates Block Offer.

The beginning hour of the block offer has to be a period number, not the hour itself. The periods that is going to be used to create a new block offer will be taken from service. For example, The hour 00:00 corresponds to the period number 1 and the ending hour of the block offer is calculated by using the field duration. Let’s say that period number is 1 and duration is 4. This offer includes the hours 00:00 - 01:00 - 02:00 - 03:00.
Sample JSON Request
{
    "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
            }]
        }]
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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>
Sample Json Request (Related Block)
{
    "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
            }]
        }]
    }
}
Sample Json Response (Related Block)
{
    "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"
}
Sample XML Request (Related Block)
<?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>
Sample XML Response (Related Block)
<?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.4. Offer / Create / Flexible

This service creates Flexible Offer.

Sample JSON Request
{
    "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
            }]
        }]
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.5. Offer / List Advances

This service lists offer advance.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.6. Offer / Currency

This service returns available currencies for offer services.

Sample JSON Request
{
    "header": [
        {
            "key": "transactionId",
            "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
        {
            "key": "application",
            "value": "UYGULAMA_ADI"
    }
  ],
    "body": {
        "deliveryDay": "2016-04-01T00:00:00.000+0300"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "parameters": [
            {
                "value": "EUR",
                "description": "EUR"
      }, {
                "value": "TRY",
                "description": "TRY"
      }
    ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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.7. MinMax / Offer Price / List By Day

This service returns minimum and maximum price information by delivery day.

Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "572aec9e-ce05-4424-a6b3-eea673193805"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "effectiveDate": "2016-04-04T00:00:00.000+0300"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.8. Offer / Delivery Day Validation

This service returns whether delivery day is valid or not.

Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "631de3f8-9811-4c14-b3dd-aa7f4350ce1b"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-03-31T00:00:00.000+0300"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": false,
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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.9. Offer / Regions

This service returns available regions for offers.

Sample JSON Request
{
    "header": [
        {
            "key": "transactionId",
            "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
        {
            "key": "application",
            "value": "UYGULAMA_ADI"
    }
  ],
    "body": {
        "deliveryDay": "2016-03-27T00:00:00.000+0200"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "parameters": [
            {
                "value": "TR1",
                "description": "TR1"
      }
    ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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.10. Offer / Periods

This service returns available periods for given offer type.

Sample JSON Request
{
    "header": [
        {
            "key": "transactionId",
            "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
        {
            "key": "application",
            "value": "UYGULAMA_ADI"
    }
  ],
    "body": {
        "date": "2016-04-03T00:00:00.000+0200"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.11. Offer / List / Hourly

This service returns offers by given type.

Sample JSON Request
{
    "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
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.12. Offer / List / Block

This service returns offers by given type.

Sample JSON Request
{
    "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
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.13. Offer / List / Flexible

This service returns offers by given type.

Sample JSON Request
{
    "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
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.14. Offer / List / History / Hourly

This service lists version history for given offer.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.15. Offer / List / History / Block

This service lists version history for given offer.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.16. Offer / List / History / Flexible

This service lists version history for given offer.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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.17. Offer / Cancel / Hourly

This service cancels given offer.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "version": 2,
        "lastModifyDate": "2016-03-31T16:47:36.130+0300"
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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.18. Offer / Cancel / Block

This service cancels given offer.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "version": 2,
        "lastModifyDate": "2016-03-31T16:44:17.180+0300"
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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.19. Offer / Cancel / Flexible

This service cancels given offer.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "version": 2,
        "lastModifyDate": "2016-03-31T16:32:18.452+0300"
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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.20. Offer / Market Result

This service returns market result for delivery day. Market Clearing Price, Matching Amount so on…​

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements Services

7.2.1. How to call bilateral agreements services?

Bilateral Agreements are called by contract services. You need to provide region, counter organization , eic (etso) code of organization, amount and period information to create a contract.

In order to create a bilateral contract you have two option for cancellation type as ONE-SIDED and TWO-SIDED.

Any of contractors can cancel the approved bilateral aggreements without any confirmation of other contractor for ONE-SIDED contracts.

Cancellation of TWO-SIDED bilateral contracts requires both of contractors approval.

You need to cancel bilateral contract first to update cancellation type. After cancellation you can re-create bilateral contract with new cancellation type.

Cancellation type is not mandatory, default value is : TWO-SIDED.

This service returns periods for contract by given contract day.
This service returns organization lists.
This service returns region informations.
Cancellation Type can take following values : BILATERAL(ONE-SIDED), UNILITERAL(TWO-SIDED).

7.2.2. Bilateral Agreements / List

Bilateral Agreements / List Service lists bilateral agreements that you created or received from other organizations.

EIC code enables filtering functionality. If do not provide EIC you will get all contracts created by you or received from other organizations.
Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Create

You can use Bilateral Agreements / Create Service to create contract.

Sample JSON Request
{
    "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
            }]
        }
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Cancel

You can use Bilateral Agreements / Cancel Service to cancel contracts.

Sample JSON Request
{
    "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"
        }]
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Period List

Bilateral Agreements / Period List Service lists available periods for given date.

Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "cff6f67d-81d2-4114-944d-82e2c5ee939a"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-04T00:00:00.000+0300"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Status / List

Bilateral Agreements / Status / List Service returns contract status descriptions.

Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "04bf604c-19cd-4b9f-aeee-d78f0920f758"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {}
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / History / List

Bilateral Agreements / History / List Service lists history of given contract.

Sample JSON Request
{
    "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"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Delivery Day Validation

Bilateral Agreements / Delivery Day Validation Service validates whether given day is available to create contract.

Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "2df9d9bf-ca23-46b3-8044-3c5257da81d5"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-04T00:00:00.000+0300"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": true,
    "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Organization / List

Bilateral Agreements / Organization / List Service returns organization information that you need to create contract.

Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "5533891a-1129-4525-830a-5328bcc7f4af"
    }, {
        "key": "application",
        "value": "UYGULAMA_ADI"
    }],
    "body": {
        "deliveryDay": "2016-04-07T00:00:00.000+0300"
    }
}
Sample JSON Response
{
    "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"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Bilateral Agreements / Region / List

Bilateral Agreements / Region / List Service returns region information that you need to create contract.

Sample JSON Request
{
  "header": [
    {
      "key": "transactionId",
      "value": "6d553b3c-1ffc-44cc-bed6-1dce4d5b48ac"
    },
    {
      "key": "application",
      "value": "gopweb"
    }
  ],
  "body": {
    "deliveryDay": "2016-03-27T00:00:00.000+0200"
  }
}
Sample JSON Response
{
  "resultCode": "0",
  "resultDescription": "OK",
  "body": {
    "parameters": [
      {
        "value": "TR1",
        "description": "TR1"
      }
    ]
  },
  "resultType": "SUCCESS"
}
Sample XML Request
<?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>
Sample XML Response
<?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. Market Result Services

7.3.1. How to call market result services?

This service requires region information to access results.

7.3.2. Market Result / Regional / List

Market Result / Regional / List Service returns available result for market.

Sample JSON Request
{
    "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. Operation History Services

7.4.1. How to call operation history services?

7.4.2. Operation History / Operation History List

This service is used for auditing. Operation History / Operation History List Service returns audit logs.
Sample JSON Request
{
    "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
    }
}
Sample JSON Response
{
  "resultCode": "0",
  "resultDescription": "OK",
  "body": {
    "operationHistories": [
     {
        "entryDate": "2016-04-15T15:19:19.143+0300",
        "id": 77202,
        "organizationEic": "40X000000000000P",
        "organizationName": "ORGANIZASYON ISMI",
        "organizationShortName": "ORGANIZASYON KISA ISMI",
        "user": "KULLANICI",
        "description": "ACIKLAMA",
        "operationName": "Kullanıcı Hareketleri",
        "priority": "INFO",
        "params": {}
      },
      {
        "entryDate": "2016-04-15T15:19:19.143+0300",
        "id": 77204,
        "organizationEic": "40X000000000000P",
        "organizationName": "ORGANIZASYON ISMI",
        "organizationShortName": "ORGANIZASYON KISA ISMI",
        "user": "KULLANICI",
        "description": "ACIKLAMA",
        "operationName": "Hata Mesajları",
        "priority": "ERROR",
        "params": {}
      },
{
        "entryDate": "2016-04-15T15:19:19.143+0300",
        "id": 77204,
        "organizationEic": "40X000000000000P",
        "organizationName": "ORGANIZASYON ISMI",
        "organizationShortName": "ORGANIZASYON KISA ISMI",
        "user": "KULLANICI",
        "description": "ACIKLAMA",
        "operationName": "Hata Mesajları",
        "priority": "WARNING",
        "params": {}
      }
    ]
  },
  "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>688ce8cc-47af-4ea6-85d9-1f964425bece</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>