Overview

Version information

Version : v1

URI scheme

BasePath : /gop-servis/rest
Schemes : HTTPS

Tags

  • collateral

  • contract

  • contractObjection

  • gate-operation

  • market

  • minmaxprice

  • objection

  • offer

  • operationhistory

  • tradeincrease

  • tradinglimits

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": "d1c63c6f-8ebd-4b37-b6ed-b34b8dfad9fb"
        },
        {
                "key": "application",
                "value": "UYGULAMANIZIN_ADI"
        },
        {
                "key": "language",
                "value": "TR"
        }],
        "body": {
                "currencyCode": "TRY",
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "HOURLY",
                "regionCode": "TR1",
                "offerDetails": [{
                        "startPeriod": 1,
                        "duration": 1,
                        "endPeriod": 1,
                        "offerPrices": [{
                                "index": 1,
                                "price": 0.0,
                                "amount": 100.0
                        },
                        {
                                "index": 2,
                                "price": 2000.0,
                                "amount": -100.0
                        }]
                },
                {
                        "startPeriod": 2,
                        "duration": 1,
                        "endPeriod": 2,
                        "offerPrices": [{
                                "index": 1,
                                "price": 0.0,
                                "amount": 200.0
                        },
                        {
                                "index": 2,
                                "price": 2000.0,
                                "amount": -200.0
                        }]
                }]
        }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [
            {
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "HOURLY",
                "regionCode": "TR1",
                "currencyCode": "TRY",
                "user": "KULLANICI_ADINIZ",
                "availableActions": [
                    "EDITABLE",
                    "CANCELABLE"
                ],
                "currencyName": "TRY",
                "regionName": "TR1",
                "dayLightSavingDay": false,
                "currencyInfo": {
                    "date": "2018-10-24T00:00:00.000+0300",
                    "dollar": 5.717,
                    "euro": 6.5295,
                    "turkishLira": 1
                },
                "state": null,
                "lastModifyDate": "2018-10-25T12:20:43.952+0300",
                "offerVersion": 1,
                "organization": null,
                "offerDetails": [
                    {
                        "offerDetailId": 7186156139,
                        "startPeriod": 1,
                        "duration": 1,
                        "endPeriod": 1,
                        "periodDescription": "00:00 - 01:00",
                        "dst": false,
                        "block": null,
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 0,
                                "amount": 100
                            },
                            {
                                "index": 2,
                                "price": 2000,
                                "amount": -100
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186156298,
                        "startPeriod": 2,
                        "duration": 1,
                        "endPeriod": 2,
                        "periodDescription": "01:00 - 02:00",
                        "dst": false,
                        "block": null,
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 0,
                                "amount": 200
                            },
                            {
                                "index": 2,
                                "price": 2000,
                                "amount": -200
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>d1c63c6f-8ebd-4b37-b6ed-b34b8dfad9fb</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMANIZIN_ADI</value>
        </header>
        <header>
                <key>language</key>
                <value>TR</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerRequest">
                <currencyCode>TRY</currencyCode>
                <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
                <offerType>HOURLY</offerType>
                <regionCode>TR1</regionCode>
                <offerDetails>
                        <startPeriod>1</startPeriod>
                        <duration>1</duration>
                        <endPeriod>1</endPeriod>
                        <offerPrices>
                                <index>1</index>
                                <price>0</price>
                                <amount>100</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>2</index>
                                <price>2000</price>
                                <amount>-100</amount>
                        </offerPrices>
                </offerDetails>
                <offerDetails>
                        <startPeriod>2</startPeriod>
                        <duration>1</duration>
                        <endPeriod>2</endPeriod>
                        <offerPrices>
                                <index>1</index>
                                <price>0</price>
                                <amount>200</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>2</index>
                                <price>2000</price>
                                <amount>-200</amount>
                        </offerPrices>
                </offerDetails>
        </body>
</serviceRequest>
Sample XML Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryOfferServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <regionCode>TR1</regionCode>
            <currencyCode>TRY</currencyCode>
            <offerDetails>
                <offerDetailId>7186235851</offerDetailId>
                <startPeriod>1</startPeriod>
                <duration>1</duration>
                <endPeriod>1</endPeriod>
                <periodDescription>00:00 - 01:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>-100.0</amount>
                    <index>1</index>
                    <price>2000</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <index>1</index>
                    <price>0</price>
                </offerPrices>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186236010</offerDetailId>
                <startPeriod>2</startPeriod>
                <duration>1</duration>
                <endPeriod>2</endPeriod>
                <periodDescription>01:00 - 02:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>200.0</amount>
                    <index>1</index>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>-200.0</amount>
                    <index>1</index>
                    <price>2000</price>
                </offerPrices>
            </offerDetails>
            <user>KULLANICI_ADINIZ</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyName>TRY</currencyName>
            <regionName>TR1</regionName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <currencyInfo>
                <date>2018-10-26T00:00:00.000+0300</date>
                <dollar>5.6186</dollar>
                <euro>6.3835</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2018-10-30T11:27:01.883+0300</lastModifyDate>
            <offerVersion>1</offerVersion>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</queryOfferServiceResponse>

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": 4,
                                "endPeriod": 4,
                                "block": "BLK_1",
                                "offerPrices": [
                                        {
                                                "index": 1,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 2,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 3,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 4,
                                                "price": 250,
                                                "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": 4,
                                                "endPeriod": 4,
                                                "periodDescription": "00:00",
                                                "dst": true,
                                                "offerPrices": [
                                                        {
                                                                "index": 1,
                                                                "price": 250,
                                                                "amount": 50.0
                                                        },
                                                        {
                                                                "index": 2,
                                                                "price": 250,
                                                                "amount": 50.0
                                                        },
                                                        {
                                                                "index": 3,
                                                                "price": 250,
                                                                "amount": 50.0
                                                        },
                                                        {
                                                                "index": 4,
                                                                "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>
                        <endPeriod>4</endPeriod>
                        <duration>4</duration>
                        <block>BLK_1</block>
                        <offerPrices>
                    <index>1</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>2</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>3</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>4</index>
                <price>12</price>
                <amount>12</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>
                                <startPeriod>1</startPeriod>
                                <block>BLK_1</block>
                                <endPeriod>4</endPeriod>
                                <dst>false</dst>
                                <duration>4</duration>
                                <offerPrices>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <periodDescription>00:00</periodDescription>
                        </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,
                                "endPeriod": 15,
                                "duration": 4,
                                "block": "BLK_1",
                                "relatedBlock": "BLK_2",
                                "offerPrices": [
                                        {
                                                "index": 1,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 2,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 3,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 4,
                                                "price": 250,
                                                "amount": 50.0
                                        }
                                ]
                        },
                        {
                                "startPeriod": 15,
                                "duration": 5,
                                "endPeriod": 19,
                                "block": "BLK_2",
                                "offerPrices": [
                                        {
                                                "index": 1,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 2,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 3,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 4,
                                                "price": 250,
                                                "amount": 50.0
                                        },
                                        {
                                                "index": 5,
                                                "price": 250,
                                                "amount": 50.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,
                "endPeriod": 15,
                "duration": 4,
                "periodDescription": "11:00",
                "dst": false,
                "offerPrices": [{
                        "index":1,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":2,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":3,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":4,
                    "price": 250,
                    "amount": 50.0
                }],
                "block": "BLK_1",
                "relatedBlock": "BLK_2"
            }, {
                "offerDetailId": null,
                "startPeriod": 15,
                "duration": 4,
                "endPeriod": 19,
                "periodDescription": "14:00",
                "dst": false,
                "offerPrices": [{
                        "index":1,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":2,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":3,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":4,
                    "price": 250,
                    "amount": 50.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>
            <endPeriod>15</endPeriod>
            <duration>4</duration>
            <block>BLK_1</block>
            <relatedBlock>BLK_2</relatedBlock>
            <offerPrices>
                    <index>1</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>2</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>3</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>4</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
        </offerDetails>
        <offerDetails>
            <startPeriod>15</startPeriod>
            <endPeriod>19</endPeriod>
            <duration>5</duration>
            <block>BLK_2</block>
                       <offerPrices>
                    <index>1</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>2</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>3</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>4</index>
                <price>12</price>
                <amount>12</amount>
            </offerPrices>
            <offerPrices>
                    <index>5</index>
                <price>12</price>
                <amount>12</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>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <periodDescription>11:00</periodDescription>
                                <relatedBlock>BLK_2</relatedBlock>
                                <startPeriod>12</startPeriod>
                                <endPeriod>15</endPeriod>
                        </offerDetails>
                        <offerDetails>
                                <block>BLK_2</block>
                                <dst>false</dst>
                                <duration>4</duration>
                                <offerPrices>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <periodDescription>14:00</periodDescription>
                                <startPeriod>15</startPeriod>
                                <endPeriod>19</endPeriod>
                        </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": "BENZERSIZ_BIR_DEGER_141c3f55-6eab-4dc1-9825-4359d7fda400"
        },
        {
                "key": "application",
                "value": "UYGULAMANIZIN_ADI"
        },
        {
                "key": "language",
                "value": "TR"
        }],
        "body": {
                "currencyCode": "TRY",
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "FLEXIBLE",
                "regionCode": "TR1",
                "offerDetails": [{
                        "startPeriod": 1,
                        "duration": 2,
                        "endPeriod": 9,
                        "block": "FH_1",
                        "offerPrices": [{
                                "index": 1,
                                "price": 150.0,
                                "amount": 30.0
                        },
                        {
                                "index": 2,
                                "price": 150.0,
                                "amount": 25.0
                        }]
                },
                {
                        "startPeriod": 9,
                        "duration": 4,
                        "endPeriod": 19,
                        "block": "FH_2",
                        "offerPrices": [{
                                "index": 1,
                                "price": 350.0,
                                "amount": 80.0
                        },
                        {
                                "index": 2,
                                "price": 350.0,
                                "amount": 65.0
                        },
                        {
                                "index": 3,
                                "price": 350.0,
                                "amount": 60.0
                        },
                        {
                                "index": 4,
                                "price": 350.0,
                                "amount": 40.0
                        }]
                },
                {
                        "startPeriod": 19,
                        "duration": 3,
                        "endPeriod": 24,
                        "block": "FH_3",
                        "offerPrices": [{
                                "index": 1,
                                "price": 225.0,
                                "amount": 50.0
                        },
                        {
                                "index": 2,
                                "price": 225.0,
                                "amount": 45.0
                        },
                        {
                                "index": 3,
                                "price": 225.0,
                                "amount": 35.0
                        }]
                }]
        }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [
            {
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "FLEXIBLE",
                "regionCode": "TR1",
                "currencyCode": "TRY",
                "user": "KULLANICI_ADINIZ",
                "availableActions": [
                    "EDITABLE",
                    "CANCELABLE"
                ],
                "currencyName": "TRY",
                "regionName": "TR1",
                "dayLightSavingDay": false,
                "currencyInfo": {
                    "date": "2018-10-24T00:00:00.000+0300",
                    "dollar": 5.717,
                    "euro": 6.5295,
                    "turkishLira": 1
                },
                "state": null,
                "lastModifyDate": "2018-10-25T10:16:13.138+0300",
                "offerVersion": 1,
                "organization": null,
                "offerDetails": [
                    {
                        "offerDetailId": 7186147394,
                        "startPeriod": 9,
                        "duration": 4,
                        "endPeriod": 19,
                        "periodDescription": "08:00",
                        "dst": false,
                        "block": "FH_2",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 350,
                                "amount": 80
                            },
                            {
                                "index": 2,
                                "price": 350,
                                "amount": 65
                            },
                            {
                                "index": 3,
                                "price": 350,
                                "amount": 60
                            },
                            {
                                "index": 4,
                                "price": 350,
                                "amount": 40
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186147235,
                        "startPeriod": 1,
                        "duration": 2,
                        "endPeriod": 9,
                        "periodDescription": "00:00",
                        "dst": false,
                        "block": "FH_1",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 150,
                                "amount": 25
                            },
                            {
                                "index": 2,
                                "price": 150,
                                "amount": 30
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186147659,
                        "startPeriod": 19,
                        "duration": 3,
                        "endPeriod": 24,
                        "periodDescription": "18:00",
                        "dst": false,
                        "block": "FH_3",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 225,
                                "amount": 50
                            },
                            {
                                "index": 2,
                                "price": 225,
                                "amount": 45
                            },
                            {
                                "index": 3,
                                "price": 225,
                                "amount": 35
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>BENZERSIZ_BIR_DEGER_141c3f55-6eab-4dc1-9825-4359d7fda400</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMANIZIN_ADI</value>
        </header>
        <header>
                <key>language</key>
                <value>TR</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="offerRequest">
                <currencyCode>TRY</currencyCode>
                <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
                <offerType>FLEXIBLE</offerType>
                <regionCode>TR1</regionCode>
                <offerDetails>
                        <startPeriod>1</startPeriod>
                        <duration>2</duration>
                        <endPeriod>9</endPeriod>
                        <block>FH_1</block>
                        <offerPrices>
                                <index>1</index>
                                <price>150</price>
                                <amount>30</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>2</index>
                                <price>150</price>
                                <amount>25</amount>
                        </offerPrices>
                </offerDetails>
                <offerDetails>
                        <startPeriod>9</startPeriod>
                        <duration>4</duration>
                        <endPeriod>19</endPeriod>
                        <block>FH_2</block>
                        <offerPrices>
                                <index>1</index>
                                <price>350</price>
                                <amount>80</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>2</index>
                                <price>350</price>
                                <amount>65</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>3</index>
                                <price>350</price>
                                <amount>60</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>4</index>
                                <price>350</price>
                                <amount>40</amount>
                        </offerPrices>
                </offerDetails>
                <offerDetails>
                        <startPeriod>19</startPeriod>
                        <duration>3</duration>
                        <endPeriod>24</endPeriod>
                        <block>FH_3</block>
                        <offerPrices>
                                <index>1</index>
                                <price>225</price>
                                <amount>50</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>2</index>
                                <price>225</price>
                                <amount>45</amount>
                        </offerPrices>
                        <offerPrices>
                                <index>3</index>
                                <price>225</price>
                                <amount>35</amount>
                        </offerPrices>
                </offerDetails>
        </body>
</serviceRequest>
Sample XML Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryOfferServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <regionCode>TR1</regionCode>
            <currencyCode>TRY</currencyCode>
            <offerDetails>
                <offerDetailId>7186234844</offerDetailId>
                <startPeriod>1</startPeriod>
                <duration>2</duration>
                <endPeriod>9</endPeriod>
                <periodDescription>00:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>30.0</amount>
                    <index>1</index>
                    <price>150</price>
                </offerPrices>
                <offerPrices>
                    <amount>25.0</amount>
                    <index>2</index>
                    <price>150</price>
                </offerPrices>
                <block>FH_1</block>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186235003</offerDetailId>
                <startPeriod>9</startPeriod>
                <duration>4</duration>
                <endPeriod>19</endPeriod>
                <periodDescription>08:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>80.0</amount>
                    <index>1</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>65.0</amount>
                    <index>2</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>60.0</amount>
                    <index>3</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>40.0</amount>
                    <index>4</index>
                    <price>350</price>
                </offerPrices>
                <block>FH_2</block>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186235268</offerDetailId>
                <startPeriod>19</startPeriod>
                <duration>3</duration>
                <endPeriod>24</endPeriod>
                <periodDescription>18:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>50.0</amount>
                    <index>1</index>
                    <price>225</price>
                </offerPrices>
                <offerPrices>
                    <amount>45.0</amount>
                    <index>2</index>
                    <price>225</price>
                </offerPrices>
                <offerPrices>
                    <amount>35.0</amount>
                    <index>3</index>
                    <price>225</price>
                </offerPrices>
                <block>FH_3</block>
            </offerDetails>
            <user>KULLANICI_ADINIZ</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyName>TRY</currencyName>
            <regionName>TR1</regionName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <currencyInfo>
                <date>2018-10-26T00:00:00.000+0300</date>
                <dollar>5.6186</dollar>
                <euro>6.3835</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2018-10-30T11:13:21.777+0300</lastModifyDate>
            <offerVersion>1</offerVersion>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</queryOfferServiceResponse>

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": "2018-10-29T00:00:00.000+0300",
        "end": "2018-10-29T00:00:00.000+0300",
        "offerType": "HOURLY",
        "regionCode": "TR1",
        "version": null
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [
            {
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "HOURLY",
                "regionCode": "TR1",
                "currencyCode": "TRY",
                "user": "KULLANICI_ADINIZ",
                "availableActions": [
                    "EDITABLE",
                    "CANCELABLE"
                ],
                "currencyName": "TRY",
                "regionName": "TR1",
                "dayLightSavingDay": false,
                "currencyInfo": {
                    "date": "2018-10-24T00:00:00.000+0300",
                    "dollar": 5.717,
                    "euro": 6.5295,
                    "turkishLira": 1
                },
                "state": null,
                "lastModifyDate": "2018-10-25T12:20:43.952+0300",
                "offerVersion": 1,
                "organization": null,
                "offerDetails": [
                    {
                        "offerDetailId": 7186156139,
                        "startPeriod": 1,
                        "duration": 1,
                        "endPeriod": 1,
                        "periodDescription": "00:00 - 01:00",
                        "dst": false,
                        "block": null,
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 0,
                                "amount": 100
                            },
                            {
                                "index": 2,
                                "price": 2000,
                                "amount": -100
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186156298,
                        "startPeriod": 2,
                        "duration": 1,
                        "endPeriod": 2,
                        "periodDescription": "01:00 - 02:00",
                        "dst": false,
                        "block": null,
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 0,
                                "amount": 200
                            },
                            {
                                "index": 2,
                                "price": 2000,
                                "amount": -200
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>9bf6a2f7-b05e-4e03-97d7-ca8e29f35e8b</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>2018-10-31T00:00:00.000+0300</start>
                <end>2018-10-31T00: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"?>
<queryOfferServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <regionCode>TR1</regionCode>
            <currencyCode>TRY</currencyCode>
            <offerDetails>
                <offerDetailId>7186235851</offerDetailId>
                <startPeriod>1</startPeriod>
                <duration>1</duration>
                <endPeriod>1</endPeriod>
                <periodDescription>00:00 - 01:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>-100.0</amount>
                    <index>1</index>
                    <price>2000</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <index>1</index>
                    <price>0</price>
                </offerPrices>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186236010</offerDetailId>
                <startPeriod>2</startPeriod>
                <duration>1</duration>
                <endPeriod>2</endPeriod>
                <periodDescription>01:00 - 02:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>200.0</amount>
                    <index>1</index>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>-200.0</amount>
                    <index>1</index>
                    <price>2000</price>
                </offerPrices>
            </offerDetails>
            <user>KULLANICI_ADINIZ</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyName>TRY</currencyName>
            <regionName>TR1</regionName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <currencyInfo>
                <date>2018-10-26T00:00:00.000+0300</date>
                <dollar>5.6186</dollar>
                <euro>6.3835</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2018-10-30T11:27:01.883+0300</lastModifyDate>
            <offerVersion>1</offerVersion>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</queryOfferServiceResponse>

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": 4,
                                                "endPeriod": 4,
                                                "periodDescription": "00:00",
                                                "dst": true,
                                                "offerPrices": [
                                                        {
                                                                "index": 1,
                                                                "price": 250,
                                                                "amount": 50.0
                                                        },
                                                        {
                                                                "index": 2,
                                                                "price": 250,
                                                                "amount": 50.0
                                                        },
                                                        {
                                                                "index": 3,
                                                                "price": 250,
                                                                "amount": 50.0
                                                        },
                                                        {
                                                                "index": 4,
                                                                "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>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <periodDescription>00:00</periodDescription>
                                <startPeriod>1</startPeriod>
                                <endPeriod>4</endPeriod>
                        </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": "2018-10-29T00:00:00.000+0300",
                "end": "2018-10-29T00:00:00.000+0300",
                "offerType": "FLEXIBLE",
                "regionCode": "TR1",
                "version": null
        }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [
            {
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "FLEXIBLE",
                "regionCode": "TR1",
                "currencyCode": "TRY",
                "user": "KULLANICI_ADINIZ",
                "availableActions": [
                    "EDITABLE",
                    "CANCELABLE"
                ],
                "currencyName": "TRY",
                "regionName": "TR1",
                "dayLightSavingDay": false,
                "currencyInfo": {
                    "date": "2018-10-24T00:00:00.000+0300",
                    "dollar": 5.717,
                    "euro": 6.5295,
                    "turkishLira": 1
                },
                "state": null,
                "lastModifyDate": "2018-10-25T10:16:13.138+0300",
                "offerVersion": 1,
                "organization": null,
                "offerDetails": [
                    {
                        "offerDetailId": 7186147394,
                        "startPeriod": 9,
                        "duration": 4,
                        "endPeriod": 19,
                        "periodDescription": "08:00",
                        "dst": false,
                        "block": "FH_2",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 350,
                                "amount": 80
                            },
                            {
                                "index": 2,
                                "price": 350,
                                "amount": 65
                            },
                            {
                                "index": 3,
                                "price": 350,
                                "amount": 60
                            },
                            {
                                "index": 4,
                                "price": 350,
                                "amount": 40
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186147235,
                        "startPeriod": 1,
                        "duration": 2,
                        "endPeriod": 9,
                        "periodDescription": "00:00",
                        "dst": false,
                        "block": "FH_1",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 2,
                                "price": 150,
                                "amount": 25
                            },
                            {
                                "index": 1,
                                "price": 150,
                                "amount": 30
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186147659,
                        "startPeriod": 19,
                        "duration": 3,
                        "endPeriod": 24,
                        "periodDescription": "18:00",
                        "dst": false,
                        "block": "FH_3",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 225,
                                "amount": 50
                            },
                            {
                                "index": 2,
                                "price": 225,
                                "amount": 45
                            },
                            {
                                "index": 3,
                                "price": 225,
                                "amount": 35
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "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>2018-10-29T00:00:00.000+0300</start>
                <end>2018-10-29T00: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"?>
<queryOfferServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2018-10-29T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <regionCode>TR1</regionCode>
            <currencyCode>TRY</currencyCode>
            <offerDetails>
                <offerDetailId>7186147394</offerDetailId>
                <startPeriod>9</startPeriod>
                <duration>4</duration>
                <endPeriod>19</endPeriod>
                <periodDescription>08:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>80.0</amount>
                    <index>1</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>65.0</amount>
                    <index>2</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>60.0</amount>
                    <index>3</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>40.0</amount>
                    <index>4</index>
                    <price>350</price>
                </offerPrices>
                <block>FH_2</block>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186147235</offerDetailId>
                <startPeriod>1</startPeriod>
                <duration>2</duration>
                <endPeriod>9</endPeriod>
                <periodDescription>00:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>25.0</amount>
                    <index>2</index>
                    <price>150</price>
                </offerPrices>
                <offerPrices>
                    <amount>30.0</amount>
                    <index>1</index>
                    <price>150</price>
                </offerPrices>
                <block>FH_1</block>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186147659</offerDetailId>
                <startPeriod>19</startPeriod>
                <duration>3</duration>
                <endPeriod>24</endPeriod>
                <periodDescription>18:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>50.0</amount>
                    <index>1</index>
                    <price>225</price>
                </offerPrices>
                <offerPrices>
                    <amount>45.0</amount>
                    <index>2</index>
                    <price>225</price>
                </offerPrices>
                <offerPrices>
                    <amount>35.0</amount>
                    <index>3</index>
                    <price>225</price>
                </offerPrices>
                <block>FH_3</block>
            </offerDetails>
            <user>KULLANICI_ADINIZ</user>
            <currencyName>TRY</currencyName>
            <regionName>TR1</regionName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <currencyInfo>
                <date>2018-10-24T00:00:00.000+0300</date>
                <dollar>5.717</dollar>
                <euro>6.5295</euro>
                <turkishLira>1.0</turkishLira>
            </currencyInfo>
            <lastModifyDate>2018-10-25T10:16:13.138+0300</lastModifyDate>
            <offerVersion>1</offerVersion>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</queryOfferServiceResponse>

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": "2018-10-29T00:00:00.000+0300",
        "offerType": "HOURLY",
        "regionCode": "TR1"
    }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [
            {
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "HOURLY",
                "regionCode": "TR1",
                "currencyCode": "TRY",
                "user": "KULLANICI_ADINIZ",
                "availableActions": [
                    "EDITABLE",
                    "CANCELABLE"
                ],
                "currencyName": "TRY",
                "regionName": "TR1",
                "dayLightSavingDay": false,
                "currencyInfo": null,
                "state": null,
                "lastModifyDate": "2018-10-25T12:20:43.952+0300",
                "offerVersion": 1,
                "organization": null,
                "offerDetails": [
                    {
                        "offerDetailId": 7186156139,
                        "startPeriod": 1,
                        "duration": 1,
                        "endPeriod": 1,
                        "periodDescription": "00:00 - 01:00",
                        "dst": false,
                        "block": null,
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 0,
                                "amount": 100
                            },
                            {
                                "index": 2,
                                "price": 2000,
                                "amount": -100
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186156298,
                        "startPeriod": 2,
                        "duration": 1,
                        "endPeriod": 2,
                        "periodDescription": "01:00 - 02:00",
                        "dst": false,
                        "block": null,
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 0,
                                "amount": 200
                            },
                            {
                                "index": 2,
                                "price": 2000,
                                "amount": -200
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>b711eb13-a3eb-4d08-b155-b12513c7fc80</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>2018-10-31T00: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"?>
<queryOfferServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
            <offerType>HOURLY</offerType>
            <regionCode>TR1</regionCode>
            <currencyCode>TRY</currencyCode>
            <offerDetails>
                <offerDetailId>7186235851</offerDetailId>
                <startPeriod>1</startPeriod>
                <duration>1</duration>
                <endPeriod>1</endPeriod>
                <periodDescription>00:00 - 01:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>-100.0</amount>
                    <index>1</index>
                    <price>2000</price>
                </offerPrices>
                <offerPrices>
                    <amount>100.0</amount>
                    <index>1</index>
                    <price>0</price>
                </offerPrices>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186236010</offerDetailId>
                <startPeriod>2</startPeriod>
                <duration>1</duration>
                <endPeriod>2</endPeriod>
                <periodDescription>01:00 - 02:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>200.0</amount>
                    <index>1</index>
                    <price>0</price>
                </offerPrices>
                <offerPrices>
                    <amount>-200.0</amount>
                    <index>1</index>
                    <price>2000</price>
                </offerPrices>
            </offerDetails>
            <user>KULLANICI_ADINIZ</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyName>TRY</currencyName>
            <regionName>TR1</regionName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <lastModifyDate>2018-10-30T11:27:01.883+0300</lastModifyDate>
            <offerVersion>1</offerVersion>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</queryOfferServiceResponse>

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": 4,
                "endPeriod": 4,
                "periodDescription": "00:00",
                "dst": true,
                "offerPrices": [{
                        "index":1,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":2,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":3,
                    "price": 250,
                    "amount": 50.0
                },{
                        "index":4,
                    "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>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <periodDescription>00:00</periodDescription>
                                <startPeriod>1</startPeriod>
                                <endPeriod>4</endPeriod>
                        </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>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <periodDescription>00:00</periodDescription>
                                <startPeriod>1</startPeriod>
                                <endPeriod>4</endPeriod>
                        </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>
                                        <index>1</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>2</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>3</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </offerPrices>
                                <offerPrices>
                                        <index>4</index>
                                        <price>12</price>
                                        <amount>12</amount>
                                </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": "2018-10-29T00:00:00.000+0300",
                "offerType": "FLEXIBLE",
                "regionCode": "TR1"
        }
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "offers": [
            {
                "deliveryDay": "2018-10-29T00:00:00.000+0300",
                "offerType": "FLEXIBLE",
                "regionCode": "TR1",
                "currencyCode": "TRY",
                "user": "KULLANICI_ADINIZ",
                "availableActions": [
                    "EDITABLE",
                    "CANCELABLE"
                ],
                "currencyName": "TRY",
                "regionName": "TR1",
                "dayLightSavingDay": false,
                "currencyInfo": null,
                "state": null,
                "lastModifyDate": "2018-10-25T10:16:13.138+0300",
                "offerVersion": 1,
                "organization": null,
                "offerDetails": [
                    {
                        "offerDetailId": 7186147394,
                        "startPeriod": 9,
                        "duration": 4,
                        "endPeriod": 19,
                        "periodDescription": "08:00",
                        "dst": false,
                        "block": "FH_2",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 350,
                                "amount": 80
                            },
                            {
                                "index": 2,
                                "price": 350,
                                "amount": 65
                            },
                            {
                                "index": 3,
                                "price": 350,
                                "amount": 60
                            },
                            {
                                "index": 4,
                                "price": 350,
                                "amount": 40
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186147235,
                        "startPeriod": 1,
                        "duration": 2,
                        "endPeriod": 9,
                        "periodDescription": "00:00",
                        "dst": false,
                        "block": "FH_1",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 2,
                                "price": 150,
                                "amount": 25
                            },
                            {
                                "index": 1,
                                "price": 150,
                                "amount": 30
                            }
                        ]
                    },
                    {
                        "offerDetailId": 7186147659,
                        "startPeriod": 19,
                        "duration": 3,
                        "endPeriod": 24,
                        "periodDescription": "18:00",
                        "dst": false,
                        "block": "FH_3",
                        "relatedBlock": null,
                        "offerPrices": [
                            {
                                "index": 1,
                                "price": 225,
                                "amount": 50
                            },
                            {
                                "index": 2,
                                "price": 225,
                                "amount": 45
                            },
                            {
                                "index": 3,
                                "price": 225,
                                "amount": 35
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>e1d5f504-a345-4444-b353-4bbc9fdbaf2e</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>2018-10-31T00: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"?>
<queryOfferServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryOfferResponse">
        <offers>
            <deliveryDay>2018-10-31T00:00:00.000+0300</deliveryDay>
            <offerType>FLEXIBLE</offerType>
            <regionCode>TR1</regionCode>
            <currencyCode>TRY</currencyCode>
            <offerDetails>
                <offerDetailId>7186234844</offerDetailId>
                <startPeriod>1</startPeriod>
                <duration>2</duration>
                <endPeriod>9</endPeriod>
                <periodDescription>00:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>30.0</amount>
                    <index>1</index>
                    <price>150</price>
                </offerPrices>
                <offerPrices>
                    <amount>25.0</amount>
                    <index>2</index>
                    <price>150</price>
                </offerPrices>
                <block>FH_1</block>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186235003</offerDetailId>
                <startPeriod>9</startPeriod>
                <duration>4</duration>
                <endPeriod>19</endPeriod>
                <periodDescription>08:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>80.0</amount>
                    <index>1</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>65.0</amount>
                    <index>2</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>60.0</amount>
                    <index>3</index>
                    <price>350</price>
                </offerPrices>
                <offerPrices>
                    <amount>40.0</amount>
                    <index>4</index>
                    <price>350</price>
                </offerPrices>
                <block>FH_2</block>
            </offerDetails>
            <offerDetails>
                <offerDetailId>7186235268</offerDetailId>
                <startPeriod>19</startPeriod>
                <duration>3</duration>
                <endPeriod>24</endPeriod>
                <periodDescription>18:00</periodDescription>
                <dst>false</dst>
                <offerPrices>
                    <amount>50.0</amount>
                    <index>1</index>
                    <price>225</price>
                </offerPrices>
                <offerPrices>
                    <amount>45.0</amount>
                    <index>2</index>
                    <price>225</price>
                </offerPrices>
                <offerPrices>
                    <amount>35.0</amount>
                    <index>3</index>
                    <price>225</price>
                </offerPrices>
                <block>FH_3</block>
            </offerDetails>
            <user>PK195</user>
            <availableActions>EDITABLE</availableActions>
            <availableActions>CANCELABLE</availableActions>
            <currencyName>TRY</currencyName>
            <regionName>TR1</regionName>
            <dayLightSavingDay>false</dayLightSavingDay>
            <lastModifyDate>2018-10-30T11:13:21.777+0300</lastModifyDate>
            <offerVersion>1</offerVersion>
        </offers>
    </body>
    <resultType>SUCCESS</resultType>
</queryOfferServiceResponse>

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",
        "region": "TR1"
    }
}
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>
                <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="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",
        "region": "TR1"
    }
}
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>
                <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="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",
        "region": "TR1"
    }
}
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>
                <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="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>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="operationHistorySearchRequest">
                <startDate>2016-04-12T14:06:40.548+0300</startDate>
                <endDate>2016-04-21T14:06:40.548+0300</endDate>
                <userName>USERNAME</userName>
                <organizationEic>ORGANIZATION</organizationEic>
                <operationCode>OPERATIONCODE</operationCode>
                <operationType>OPERATIONTYPE</operationType>
                <operationPriority>PRIORITY</operationPriority>
        </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="operationHistoryResponse">
        <operationHistories>
            <entryDate>2016-04-21T14:11:11.722+0300</entryDate>
            <id>12345</id>
            <organizationEic>40X000000000000</organizationEic>
            <organizationName>ORGANİZASYONADI</organizationName>
            <organizationShortName>ORGANİZASYONKISAADI</organizationShortName>
            <user>KULLANICI</user>
            <description>AÇIKLAMA</description>
            <operationName>ISLEMADI</operationName>
            <priority>INFO</priority>
            <params/>
        </operationHistories>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.4.3. Operation History / Operation Code List

Operation History / Operation Code List returns audit categories.
Sample JSON Request
{
    "header": [{
        "key": "transactionId",
        "value": "05398072-97cd-41ad-a363-ce9469bf75c3"
    }, {
        "key": "application",
        "value": "demoClient"
    }],
    "body": {}
}
Sample JSON Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "parameters": [{
            "value": "1",
            "description": "Saatlik Teklif"
        }, {
            "value": "2",
            "description": "Esnek Teklif"
        }, {
            "value": "3",
            "description": "Blok Teklif"
        }, {
            "value": "4",
            "description": "İkili Anlaşmalar"
        }, {
            "value": "6",
            "description": "Teklif Bildirim"
        }, {
            "value": "7",
            "description": "Teklif Doğrulama"
        }, {
            "value": "8",
            "description": "Fiyat Belirleme"
        }, {
            "value": "9",
            "description": "İtiraz Etme"
        }, {
            "value": "10",
            "description": "Nihai sonuç"
        }, {
            "value": "11",
            "description": "Atc & Ntc"
        }, {
            "value": "12",
            "description": "İkili Anlaşmalar Uyarısı"
        }, {
            "value": "13",
            "description": "İkili Anlaşmalar"
        }, {
            "value": "14",
            "description": "Erken Bildirim"
        }, {
            "value": "15",
            "description": "Teminat Bildirim"
        }, {
            "value": "16",
            "description": "EPİAŞ Teklif Müdehale"
        }, {
            "value": "17",
            "description": "Kullanıcı Hareketleri"
        }, {
            "value": "18",
            "description": "Hata Mesajları"
        }, {
            "value": "21",
            "description": "Teklif Kaydetme"
        }, {
            "value": "22",
            "description": "Eşleşme ve İtiraz"
        }, {
            "value": "23",
            "description": "Teklif Görüntüleme"
        }, {
            "value": "24",
            "description": "Bölgesel Sonuçlar"
        }]
    },
    "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>05398072-97cd-41ad-a363-ce9469bf75c3</value>
    </header>
    <header>
        <key>application</key>
        <value>demoClient</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="parameterQueryResponse">
        <parameters>
            <value>1</value>
            <description>Saatlik Teklif</description>
        </parameters>
        <parameters>
            <value>2</value>
            <description>Esnek Teklif</description>
        </parameters>
        <parameters>
            <value>3</value>
            <description>Blok Teklif</description>
        </parameters>
        <parameters>
            <value>4</value>
            <description>İkili Anlaşmalar</description>
        </parameters>
        <parameters>
            <value>6</value>
            <description>Teklif Bildirim</description>
        </parameters>
        <parameters>
            <value>7</value>
            <description>Teklif Doğrulama</description>
        </parameters>
        <parameters>
            <value>8</value>
            <description>Fiyat Belirleme</description>
        </parameters>
        <parameters>
            <value>9</value>
            <description>İtiraz Etme</description>
        </parameters>
        <parameters>
            <value>10</value>
            <description>Nihai sonuç</description>
        </parameters>
        <parameters>
            <value>11</value>
            <description>Atc &amp; Ntc</description>
        </parameters>
        <parameters>
            <value>12</value>
            <description>İkili Anlaşmalar Uyarısı</description>
        </parameters>
        <parameters>
            <value>13</value>
            <description>İkili Anlaşmalar</description>
        </parameters>
        <parameters>
            <value>14</value>
            <description>Erken Bildirim</description>
        </parameters>
        <parameters>
            <value>15</value>
            <description>Teminat Bildirim</description>
        </parameters>
        <parameters>
            <value>16</value>
            <description>EPİAŞ Teklif Müdehale</description>
        </parameters>
        <parameters>
            <value>17</value>
            <description>Kullanıcı Hareketleri</description>
        </parameters>
        <parameters>
            <value>18</value>
            <description>Hata Mesajları</description>
        </parameters>
        <parameters>
            <value>21</value>
            <description>Teklif Kaydetme</description>
        </parameters>
        <parameters>
            <value>22</value>
            <description>Eşleşme ve İtiraz</description>
        </parameters>
        <parameters>
            <value>23</value>
            <description>Teklif Görüntüleme</description>
        </parameters>
        <parameters>
            <value>24</value>
            <description>Bölgesel Sonuçlar</description>
        </parameters>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.5. Objection Services

7.5.1. Objection Create Rest Service

You can object market clearing prices. You can access parameter details here.

Sample Json Request
  {
    "header": [
      {
        "key": "transactionId",
        "value": "57a064d5-2eb3-4a0b-bc71-7679d68e5961"
      },
      {
        "key": "application",
        "value": "demoIstemci"
      }
    ],
    "body": {
      "offerDetailId": 78582,
      "message": "örnekitiraz"
    }
  }
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>57a064d5-2eb3-4a0b-bc71-7679d68e5961</value>
    </header>
    <header>
        <key>application</key>
        <value>demoIstemci</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="objectionCreateRequest">
        <offerDetailId>79430</offerDetailId>
        <message>örnekitiraz</message>
    </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">true</body>
    <resultType>SUCCESS</resultType>
</response>

7.5.2. Objection List Rest Service

You can list objections with this service. You can access parameter details of this service here.

Sample Json Request
{
  "header": [
    {
      "key": "transactionId",
      "value": "b5787b85-ceec-4600-9ea3-fa1e2c4e95e1"
    },
    {
      "key": "application",
      "value": "demoIstemci"
    }
  ],
  "body": {
    "objectionStatus": "ACTIVE",
    "objectionTimeStart": "2016-05-04T00:00:00.000+0300",
    "objectionTimeEnd": "2016-05-11T00:00:00.000+0300"
  }
}
Sample Json Response
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "objections": [
            {
                "objectionId": 95224,
                "objectionDate": "2016-05-06T14:17:47.640+0300",
                "replyDate": null,
                "objectionStatus": "ACTIVE",
                "offerDetail": {
                    "deliveryDate": "2016-05-07T00:00:00.000+0300",
                    "offerPrice":
                            [{
                            "price": 0,
                            "amount": 897
                                    },
                        {
                            "price": 123,
                            "amount": 789
                                    },
                        {
                            "price": 456,
                            "amount": 456
                                    },
                        {
                            "price": 2000,
                            "amount": 123
                                    }],
                    "period": 3,
                    "periodDescription": "02:00 - 03:00",
                    "offerCode": 78211,
                    "offerType": "HOURLY",
                    "offerVersion": 1,
                    "volume": 505,
                    "marketTradePrice": 406.61
                },
                "user": {
                    "id": 1234,
                    "username": "Kullanıcı Adi",
                    "name": "Kullanıcı Gercek Adi",
                    "email": "deneme@deneme.com.tr",
                    "phone": "90999999999999"
                },
                "systemUser": null,
                "message": "örnek itiraz",
                "reply": null,
                "organization": {
                    "name": "Piyasa Katilimcisi",
                    "shortName": "Piyasa Katilimcisi Kisa Adi",
                    "eic": "40X000000000000W",
                    "organizationId": {
                        "id": 123,
                        "period": "2016-05-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>b5787b85-ceec-4600-9ea3-fa1e2c4e95e1</value>
    </header>
    <header>
        <key>application</key>
        <value>demoIstemci</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="objectionRequest">
        <objectionStatus>ACTIVE</objectionStatus>
        <objectionTimeStart>2016-05-09T00:00:00.000+0300</objectionTimeStart>
        <objectionTimeEnd>2016-05-11T00:00:00.000+0300</objectionTimeEnd>
    </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="queryObjectionResponse">
        <objections>
            <objectionId>97980</objectionId>
            <objectionDate>2016-05-09T11:22:18.352+0300</objectionDate>
            <objectionStatus>ACTIVE</objectionStatus>
            <offerDetail>
                <deliveryDate>2016-05-10T00:00:00.000+0300</deliveryDate>
                <offerPrice>
                    <amount>21.0</amount>
                    <price>0</price>
                </offerPrice>
                <offerPrice>
                    <amount>16.0</amount>
                    <price>1000</price>
                </offerPrice>
                <offerPrice>
                    <amount>12.0</amount>
                    <price>2000</price>
                </offerPrice>
                <period>1</period>
                <periodDescription>00:00 - 01:00</periodDescription>
                <offerCode>77734</offerCode>
                <offerType>HOURLY</offerType>
                <offerVersion>1</offerVersion>
                <volume>21</volume>
                <marketTradePrice>17.39</marketTradePrice>
            </offerDetail>
            <user>
                <allowedExchange>false</allowedExchange>
                <email>deneme@deneme.com.tr</email>
                <id>1722</id>
                <name>KullaniciGercekAdi</name>
                <phone>905999999999</phone>
                <username>KullaniciAdi</username>
            </user>
            <message>örnek itiraz</message>
            <organization>
                <name>PiyasaKatilimcisi</name>
                <shortName>PiyasaKatilimcisiKisaAd</shortName>
                <eic>40X000000000000P</eic>
                <organizationId>
                    <id>000</id>
                    <period>2016-05-01T00:00:00.000+0300</period>
                </organizationId>
                <status>2</status>
            </organization>
        </objections>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.6. Collateral Services

7.6.1. How can you use Collateral Services?

You can use this service to check your current collaterals.

Sample JSON request
{
  "header": [
    {
      "key": "transactionId",
      "value": "5d482b86-2450-45a6-869c-687f4dc5a718"
    },
    {
      "key": "application",
      "value": "demoUygulama"
    }
  ],
  "body": {
    "deliveryDay": "2016-06-04T00:00:00.000+0300",
    "region": "TR1"
  }
}
Sample JSON response
{
  "resultCode": "0",
  "resultDescription": "OK",
  "body": {
    "collaterals": [
      {
        "collateralId": 123456789,
        "organizationCode": 123,
        "organizationName": "ABC",
        "region": "TR1",
        "collateralStatus": null,
        "recordTime": "2016-06-03T11:00:57.000+0300",
        "collateralDate": "2016-06-03T00:00:00.000+0300",
        "requiredCashCollateral": 123456.12,
        "requiredTotalCollateral": 123456.12,
        "availableCashCollateral": 12345678.12,
        "availableTotalCollateral": 12345678.12,
        "participationAggrement": true,
        "deliveryDay": "2016-06-04T00:00:00.000+0300",
        "checkCollateralDate": null
      }
    ]
  },
  "resultType": "SUCCESS"
}
Sample XML request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>5d482b86-2450-45a6-869c-687f4dc5a718</value>
    </header>
    <header>
        <key>application</key>
        <value>demoUygulama</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="collateralOrganizationRequest">
        <deliveryDay>2016-06-04T00: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="collateralOrganizationResponse">
        <collaterals>
            <collateralId>123456789</collateralId>
            <organizationCode>123</organizationCode>
            <organizationName>ABC</organizationName>
            <region>TR1</region>
            <recordTime>2016-06-03T11:00:57.000+0300</recordTime>
            <collateralDate>2016-06-03T00:00:00.000+0300</collateralDate>
            <requiredCashCollateral>123456.12</requiredCashCollateral>
            <requiredTotalCollateral>123456.12</requiredTotalCollateral>
            <availableCashCollateral>12345678.12</availableCashCollateral>
            <availableTotalCollateral>12345678.12</availableTotalCollateral>
            <participationAggrement>true</participationAggrement>
            <deliveryDay>2016-06-04T00:00:00.000+0300</deliveryDay>
        </collaterals>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.7. MCP Statistics Service

7.7.1. How to use MCP statistics Rest Service?

You can access parameter details here.

Sample Json Request
{
  "header": [
    {
      "key": "transactionId",
      "value": "daedd619-0f53-4fc4-99a0-6e8e4f2bb1be"
    },
    {
      "key": "application",
      "value": "demoClient"
    }
  ],
  "body": {
    "deliveryDay": "2016-06-07T11:37:38.601+0300",
    "regionCode": "TR1"
  }
}
Sample Json Response
{
  "resultCode": "0",
  "resultDescription": "OK",
  "body": {
    "monthDiffPercantage": 100,
    "yearDiffPercantage": 100,
    "dayDiffPercentage": 0,
    "nightTimeDiffPercentage": 0,
    "dayTimeDiffPercentage": 0,
    "peakTimeDiffPercentage": 0,
    "weekDiffPercentage": -100,
    "totalMatchingAmountPercentage": 0,
    "monthMCPAverage": 0,
    "yearMCPAverage": 0,
    "dayMCPAverage": 0,
    "nightTimeMCPAverage": 0,
    "dayTimeMCPAverage": 0,
    "peakTimeMCPAverage": 0,
    "weekMCPAverage": 0,
    "totalMatchingAmount": 0
  },
  "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
<header>
<key>transactionId</key>
<value>daedd619-0f53-4fc4-99a0-6e8e4f3bb1be</value>
</header>
<header>
<key>application</key>
<value>demoClient</value>
</header>
<body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type=
"percentageStatRequest">
<deliveryDay>2016-06-07T11:37:38.601+0300</deliveryDay>
<regionCode>TR1</regionCode>
</body>
</serviceRequest>
Sample XML Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<optimizationPercentageStatResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="percentageStatResponse">
        <monthDiffPercantage>100</monthDiffPercantage>
        <yearDiffPercantage>100</yearDiffPercantage>
        <dayDiffPercentage>0</dayDiffPercentage>
        <nightTimeDiffPercentage>0</nightTimeDiffPercentage>
        <dayTimeDiffPercentage>0</dayTimeDiffPercentage>
        <peakTimeDiffPercentage>0</peakTimeDiffPercentage>
        <weekDiffPercentage>-100</weekDiffPercentage>
        <totalMatchingAmountPercentage>0</totalMatchingAmountPercentage>
        <monthMCPAverage>0</monthMCPAverage>
        <yearMCPAverage>0</yearMCPAverage>
        <dayMCPAverage>0</dayMCPAverage>
        <nightTimeMCPAverage>0</nightTimeMCPAverage>
        <dayTimeMCPAverage>0</dayTimeMCPAverage>
        <peakTimeMCPAverage>0</peakTimeMCPAverage>
        <weekMCPAverage>0</weekMCPAverage>
        <totalMatchingAmount>0</totalMatchingAmount>
    </body>
    <resultType>SUCCESS</resultType>
</optimizationPercentageStatResponse>

7.8. Gate Status Services

7.8.1. How you can acces Gate Satatus Services?

You send gate date to have information of gate status. The service which have informaton of all gate is existing.

While it is processing by Gate Status, you must send D + 1 date information for D date information.

7.8.2. List of all Gate Status Service

This service list all of Gate Status. You can acces detail of service parameter with this service.

Sample Json Request
{
  "header": [
    {
      "key": "transactionId",
      "value": "401d534c-8683-4832-839e-99831541351c"
    },
    {
      "key": "application",
      "value": "UYGULAMA_ADI"
    }
  ],
  "body": {
    "effectiveDate": "2016-04-15T11:50:53.400+0300"
  }
}
Sample Json Response
{
  "resultCode": "0",
  "resultDescription": "OK",
  "body": {
    "gateOperations": [
      {
        "gateId": 1000044520,
        "name": "Teklif Bildirim",
        "start": "0001",
        "end": "1130",
        "duration": 5,
        "dependedGateId": null,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "OFFER_DECLARATION",
        "gateStatus": "CLOSE",
        "version": 1
      },
      {
        "gateId": 1000044573,
        "name": "Teklif Doğrulama",
        "start": "1130",
        "end": "1200",
        "duration": 5,
        "dependedGateId": 1000044520,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "OFFER_CONFIRMATION",
        "gateStatus": "OPEN",
        "version": 1
      },
      {
        "gateId": 1000044626,
        "name": "Fiyat Belirleme",
        "start": "1200",
        "end": "1300",
        "duration": 5,
        "dependedGateId": 1000044573,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "PRICE_DETERMINATION",
        "gateStatus": "WAITING",
        "version": 1
      },
      {
        "gateId": 1000044679,
        "name": "İtiraz Etme",
        "start": "1300",
        "end": "1330",
        "duration": 5,
        "dependedGateId": 1000044626,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "OBJECTION",
        "gateStatus": "WAITING",
        "version": 1
      },
      {
        "gateId": 1000044732,
        "name": "Nihai Sonuç",
        "start": "1330",
        "end": "1400",
        "duration": 5,
        "dependedGateId": 1000044679,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "FINAL_RESULTS",
        "gateStatus": "WAITING",
        "version": 1
      },
      {
        "gateId": 1000044785,
        "name": "ATC & NTC",
        "start": "0001",
        "end": "0900",
        "duration": 5,
        "dependedGateId": null,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "ATC_NTC",
        "gateStatus": "CLOSE",
        "version": 1
      },
      {
        "gateId": 1000044838,
        "name": "İkili Anlaşmalar Uyarısı",
        "start": "1530",
        "end": "1600",
        "duration": 5,
        "dependedGateId": null,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "BILATERAL_AGREEMENTS_WARNING",
        "gateStatus": "WAITING",
        "version": 1
      },
      {
        "gateId": 1000044891,
        "name": "İkili Anlaşmalar",
        "start": "0001",
        "end": "1700",
        "duration": 5,
        "dependedGateId": null,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "BILATERAL_AGREEMENTS",
        "gateStatus": "OPEN",
        "version": 1
      },
      {
        "gateId": 1000044997,
        "name": "Erken Bildirim",
        "start": "0001",
        "end": "2300",
        "duration": 5,
        "dependedGateId": null,
        "effectiveDate": "2016-04-15T00:00:00.000+0300",
        "gate": "EARLY_DECLARATION",
        "gateStatus": "OPEN",
        "version": 1
      }
    ]
  },
  "resultType": "SUCCESS"
}
Sample XML Request
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
    <header>
        <key>transactionId</key>
        <value>aff09eff-64d1-4787-85c9-d1ae13c377f</value>
    </header>
    <header>
        <key>application</key>
        <value>UYGULAMA_ADI</value>
    </header>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryActiveGateOperationsRequest">
        <effectiveDate>2016-04-20T11:50:53.400+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="gateOperationsResponse">
        <gateOperations>
            <gateId>313955</gateId>
            <name>Teklif Bildirim</name>
            <start>0001</start>
            <end>1130</end>
            <duration>5</duration>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>OFFER_DECLARATION</gate>
            <gateStatus>OPEN</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314008</gateId>
            <name>Teklif Doğrulama</name>
            <start>1130</start>
            <end>1200</end>
            <duration>5</duration>
            <dependedGateId>313955</dependedGateId>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>OFFER_CONFIRMATION</gate>
            <gateStatus>WAITING</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314061</gateId>
            <name>Fiyat Belirleme</name>
            <start>1200</start>
            <end>1300</end>
            <duration>5</duration>
            <dependedGateId>314008</dependedGateId>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>PRICE_DETERMINATION</gate>
            <gateStatus>WAITING</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314114</gateId>
            <name>İtiraz Etme</name>
            <start>1300</start>
            <end>1330</end>
            <duration>5</duration>
            <dependedGateId>314061</dependedGateId>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>OBJECTION</gate>
            <gateStatus>WAITING</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314167</gateId>
            <name>Nihai Sonuç</name>
            <start>1330</start>
            <end>1400</end>
            <duration>5</duration>
            <dependedGateId>314114</dependedGateId>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>FINAL_RESULTS</gate>
            <gateStatus>WAITING</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314220</gateId>
            <name>ATC &amp; NTC</name>
            <start>0001</start>
            <end>0900</end>
            <duration>5</duration>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>ATC_NTC</gate>
            <gateStatus>CLOSE</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314379</gateId>
            <name>İkili Anlaşmalar</name>
            <start>0001</start>
            <end>1700</end>
            <duration>5</duration>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>BILATERAL_AGREEMENTS</gate>
            <gateStatus>OPEN</gateStatus>
            <version>1</version>
        </gateOperations>
        <gateOperations>
            <gateId>314432</gateId>
            <name>Erken Bildirim</name>
            <start>0001</start>
            <end>2300</end>
            <duration>5</duration>
            <effectiveDate>2016-04-20T00:00:00.000+0300</effectiveDate>
            <gate>EARLY_DECLARATION</gate>
            <gateStatus>OPEN</gateStatus>
            <version>1</version>
        </gateOperations>
    </body>
    <resultType>SUCCESS</resultType>
</response>

7.9. Ticaret Limit Servisleri

7.9.1. Ticaret Limitleri Listeleme Rest Servisi

Bu servis ile ticaret limitlerine erişilebilir. Parametre detaylarına buradan erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
            "key": "transactionId",
            "value": "UUID"
        }, {
            "key": "application",
            "value": "UYGULAMA_ADI"
        }, {
            "key": "language",
            "value": "TR"
        }
    ],
    "body": {
        "deliveryDay": "2019-09-12T00:00:00.000+0300",
        "regionCode": "TR1",
        "eic": "40X000000000195P"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "tradingLimits": [
            {
                "deliveryDay": "2019-09-11T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "name": "ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)",
                "regionCode": "TR1",
                "totalBuyAmount": 185000,
                "totalSellAmount": 2000847,
                "tradeIncrease": false,
                "totalSellAmountWithTradeIncrease": 464,
                "validTotalBuyAmount": 185000,
                "validTotalSellAmount": 2000847,
                "contractBuyAmount": 116961,
                "installedCapacity": 246432,
                "averageMcp": 387.45,
                "totalCollateral": 118879935.09
            },
            {
                "deliveryDay": "2019-09-10T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "name": "ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)",
                "regionCode": "TR1",
                "totalBuyAmount": 185000,
                "totalSellAmount": 1757623,
                "tradeIncrease": false,
                "totalSellAmountWithTradeIncrease": 22535,
                "validTotalBuyAmount": 185000,
                "validTotalSellAmount": 1757623,
                "contractBuyAmount": 116961,
                "installedCapacity": 3208,
                "averageMcp": 426.2,
                "totalCollateral": 302807381.85
            },
            {
                "deliveryDay": "2019-09-09T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "name": "ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)",
                "regionCode": "TR1",
                "totalBuyAmount": 185000,
                "totalSellAmount": 1757623,
                "tradeIncrease": false,
                "totalSellAmountWithTradeIncrease": 44045,
                "validTotalBuyAmount": 185000,
                "validTotalSellAmount": 1757623,
                "contractBuyAmount": 116961,
                "installedCapacity": 3208,
                "averageMcp": 0,
                "totalCollateral": 141310111.53
            },
            {
                "deliveryDay": "2019-09-08T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "name": "ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)",
                "regionCode": "TR1",
                "totalBuyAmount": 185000,
                "totalSellAmount": 1757623,
                "tradeIncrease": false,
                "totalSellAmountWithTradeIncrease": 0,
                "validTotalBuyAmount": 185000,
                "validTotalSellAmount": 1757623,
                "contractBuyAmount": 116961,
                "installedCapacity": 3208,
                "averageMcp": 0,
                "totalCollateral": 0
            },
            {
                "deliveryDay": "2019-09-07T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "name": "ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)",
                "regionCode": "TR1",
                "totalBuyAmount": 185000,
                "totalSellAmount": 1757623,
                "tradeIncrease": true,
                "totalSellAmountWithTradeIncrease": 7770,
                "validTotalBuyAmount": 185000,
                "validTotalSellAmount": 7770,
                "contractBuyAmount": 116961,
                "installedCapacity": 3208,
                "averageMcp": 563.93,
                "totalCollateral": 130095023.31
            }
        ]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>b16ed2a4-7430-4d87-88b4-22238267a9c7</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryTradingLimitsRequest">
      <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
      <eic>40X000000000195P</eic>
      <regionCode>TR1</regionCode>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryTradingLimitsServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryTradingLimitsResponse">
        <tradingLimits>
            <deliveryDay>2019-09-11T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <name>ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)</name>
            <regionCode>TR1</regionCode>
            <totalBuyAmount>185000</totalBuyAmount>
            <totalSellAmount>2000847</totalSellAmount>
            <tradeIncrease>false</tradeIncrease>
            <totalSellAmountWithTradeIncrease>464</totalSellAmountWithTradeIncrease>
            <validTotalBuyAmount>185000</validTotalBuyAmount>
            <validTotalSellAmount>2000847</validTotalSellAmount>
            <contractBuyAmount>116961</contractBuyAmount>
            <installedCapacity>246432</installedCapacity>
            <averageMcp>387.45</averageMcp>
            <totalCollateral>118879935.09</totalCollateral>
        </tradingLimits>
        <tradingLimits>
            <deliveryDay>2019-09-10T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <name>ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)</name>
            <regionCode>TR1</regionCode>
            <totalBuyAmount>185000</totalBuyAmount>
            <totalSellAmount>1757623</totalSellAmount>
            <tradeIncrease>false</tradeIncrease>
            <totalSellAmountWithTradeIncrease>22535</totalSellAmountWithTradeIncrease>
            <validTotalBuyAmount>185000</validTotalBuyAmount>
            <validTotalSellAmount>1757623</validTotalSellAmount>
            <contractBuyAmount>116961</contractBuyAmount>
            <installedCapacity>3208</installedCapacity>
            <averageMcp>426.2</averageMcp>
            <totalCollateral>302807381.85</totalCollateral>
        </tradingLimits>
        <tradingLimits>
            <deliveryDay>2019-09-09T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <name>ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)</name>
            <regionCode>TR1</regionCode>
            <totalBuyAmount>185000</totalBuyAmount>
            <totalSellAmount>1757623</totalSellAmount>
            <tradeIncrease>false</tradeIncrease>
            <totalSellAmountWithTradeIncrease>44045</totalSellAmountWithTradeIncrease>
            <validTotalBuyAmount>185000</validTotalBuyAmount>
            <validTotalSellAmount>1757623</validTotalSellAmount>
            <contractBuyAmount>116961</contractBuyAmount>
            <installedCapacity>3208</installedCapacity>
            <averageMcp>0</averageMcp>
            <totalCollateral>141310111.53</totalCollateral>
        </tradingLimits>
        <tradingLimits>
            <deliveryDay>2019-09-08T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <name>ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)</name>
            <regionCode>TR1</regionCode>
            <totalBuyAmount>185000</totalBuyAmount>
            <totalSellAmount>1757623</totalSellAmount>
            <tradeIncrease>false</tradeIncrease>
            <totalSellAmountWithTradeIncrease>0</totalSellAmountWithTradeIncrease>
            <validTotalBuyAmount>185000</validTotalBuyAmount>
            <validTotalSellAmount>1757623</validTotalSellAmount>
            <contractBuyAmount>116961</contractBuyAmount>
            <installedCapacity>3208</installedCapacity>
            <averageMcp>0</averageMcp>
            <totalCollateral>0</totalCollateral>
        </tradingLimits>
        <tradingLimits>
            <deliveryDay>2019-09-07T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <name>ELEKTRİK ÜRETİM A.Ş. (EÜAŞ)</name>
            <regionCode>TR1</regionCode>
            <totalBuyAmount>185000</totalBuyAmount>
            <totalSellAmount>1757623</totalSellAmount>
            <tradeIncrease>true</tradeIncrease>
            <totalSellAmountWithTradeIncrease>7770</totalSellAmountWithTradeIncrease>
            <validTotalBuyAmount>185000</validTotalBuyAmount>
            <validTotalSellAmount>7770</validTotalSellAmount>
            <contractBuyAmount>116961</contractBuyAmount>
            <installedCapacity>3208</installedCapacity>
            <averageMcp>563.93</averageMcp>
            <totalCollateral>130095023.31</totalCollateral>
        </tradingLimits>
    </body>
    <resultType>SUCCESS</resultType>
</queryTradingLimitsServiceResponse>

7.9.2. Ticaret Limit Detayları Listeleme Rest Servisi

Bu servis ile ticaret limit detaylarına erişilebilir. Parametre detaylarına buradan erişebilirsiniz.

Örnek Json İstek
{
    "header": [{
            "key": "transactionId",
            "value": "UUID"
        }, {
            "key": "application",
            "value": "UYGULAMA_ADI"
        }, {
            "key": "language",
            "value": "TR"
        }
    ],
    "body": {
        "deliveryDay": "2019-09-12T00:00:00.000+0300",
        "regionCode": "TR1",
        "eic": "40X000000000195P"
    }
}
Örnek Json Cevap
{
    "resultCode": "0",
    "resultDescription": "OK",
    "body": {
        "tradingLimitDetails": [
            {
                "deliveryDay": "2019-09-12T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "regionCode": "TR1",
                "dataType": 1,
                "period01": 200,
                "period02": 200,
                "period03": 200,
                "period04": 200,
                "period05": 200,
                "period06": 200,
                "period07": 200,
                "period08": 200,
                "period09": 200,
                "period10": 200,
                "period11": 200,
                "period12": 200,
                "period13": 200,
                "period14": 200,
                "period15": 200,
                "period16": 200,
                "period17": 200,
                "period18": 200,
                "period19": 200,
                "period20": 200,
                "period21": 200,
                "period22": 200,
                "period23": 200,
                "period24": 200
            },
            {
                "deliveryDay": "2019-09-12T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "regionCode": "TR1",
                "dataType": 2,
                "period01": 390,
                "period02": 390,
                "period03": 390,
                "period04": 390,
                "period05": 390,
                "period06": 390,
                "period07": 390,
                "period08": 390,
                "period09": 390,
                "period10": 390,
                "period11": 390,
                "period12": 390,
                "period13": 390,
                "period14": 390,
                "period15": 390,
                "period16": 390,
                "period17": 390,
                "period18": 390,
                "period19": 390,
                "period20": 390,
                "period21": 390,
                "period22": 390,
                "period23": 390,
                "period24": 390
            },
            {
                "deliveryDay": "2019-09-12T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "regionCode": "TR1",
                "dataType": 6,
                "period01": 400,
                "period02": 400,
                "period03": 400,
                "period04": 400,
                "period05": 400,
                "period06": 400,
                "period07": 400,
                "period08": 400,
                "period09": 400,
                "period10": 400,
                "period11": 400,
                "period12": 400,
                "period13": 400,
                "period14": 400,
                "period15": 400,
                "period16": 400,
                "period17": 400,
                "period18": 400,
                "period19": 400,
                "period20": 400,
                "period21": 400,
                "period22": 400,
                "period23": 400,
                "period24": 400
            },
            {
                "deliveryDay": "2019-09-12T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "regionCode": "TR1",
                "dataType": 7,
                "period01": 0,
                "period02": 0,
                "period03": 0,
                "period04": 0,
                "period05": 0,
                "period06": 0,
                "period07": 0,
                "period08": 0,
                "period09": 0,
                "period10": 0,
                "period11": 0,
                "period12": 0,
                "period13": 0,
                "period14": 0,
                "period15": 0,
                "period16": 0,
                "period17": 0,
                "period18": 0,
                "period19": 0,
                "period20": 0,
                "period21": 0,
                "period22": 0,
                "period23": 0,
                "period24": 0
            },
            {
                "deliveryDay": "2019-09-12T00:00:00.000+0300",
                "eic": "40X000000000195P",
                "regionCode": "TR1",
                "dataType": 9,
                "period01": 9271.33,
                "period02": 7907.34,
                "period03": 6920.06,
                "period04": 6695.11,
                "period05": 6420.15,
                "period06": 6570.19,
                "period07": 6427.14,
                "period08": 6410.84,
                "period09": 7724.14,
                "period10": 9365.33,
                "period11": 10039.32,
                "period12": 10046.49,
                "period13": 10061.5,
                "period14": 10238.48,
                "period15": 10100.5,
                "period16": 10095.53,
                "period17": 9831.21,
                "period18": 9452.17,
                "period19": 9659.95,
                "period20": 9829.64,
                "period21": 9779.33,
                "period22": 9742.21,
                "period23": 9318.21,
                "period24": 8811.21
            }
        ]
    },
    "resultType": "SUCCESS"
}
Örnek XML İstek
<?xml version="1.0" encoding="UTF-8" ?>
<serviceRequest>
        <header>
                <key>transactionId</key>
                <value>b16ed2a4-7430-4d87-88b4-22238267a9c7</value>
        </header>
        <header>
                <key>application</key>
                <value>UYGULAMA_ADI</value>
        </header>
        <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryTradingLimitsRequest">
      <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
      <eic>40X000000000195P</eic>
      <regionCode>TR1</regionCode>
        </body>
</serviceRequest>
Örnek XML Cevap
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryTradingLimitDetailsServiceResponse>
    <resultCode>0</resultCode>
    <resultDescription>OK</resultDescription>
    <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="queryTradingLimitDetailsResponse">
        <tradingLimitDetails>
            <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <regionCode>TR1</regionCode>
            <dataType>1</dataType>
            <period01>200</period01>
            <period02>200</period02>
            <period03>200</period03>
            <period04>200</period04>
            <period05>200</period05>
            <period06>200</period06>
            <period07>200</period07>
            <period08>200</period08>
            <period09>200</period09>
            <period10>200</period10>
            <period11>200</period11>
            <period12>200</period12>
            <period13>200</period13>
            <period14>200</period14>
            <period15>200</period15>
            <period16>200</period16>
            <period17>200</period17>
            <period18>200</period18>
            <period19>200</period19>
            <period20>200</period20>
            <period21>200</period21>
            <period22>200</period22>
            <period23>200</period23>
            <period24>200</period24>
        </tradingLimitDetails>
        <tradingLimitDetails>
            <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <regionCode>TR1</regionCode>
            <dataType>2</dataType>
            <period01>390</period01>
            <period02>390</period02>
            <period03>390</period03>
            <period04>390</period04>
            <period05>390</period05>
            <period06>390</period06>
            <period07>390</period07>
            <period08>390</period08>
            <period09>390</period09>
            <period10>390</period10>
            <period11>390</period11>
            <period12>390</period12>
            <period13>390</period13>
            <period14>390</period14>
            <period15>390</period15>
            <period16>390</period16>
            <period17>390</period17>
            <period18>390</period18>
            <period19>390</period19>
            <period20>390</period20>
            <period21>390</period21>
            <period22>390</period22>
            <period23>390</period23>
            <period24>390</period24>
        </tradingLimitDetails>
        <tradingLimitDetails>
            <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <regionCode>TR1</regionCode>
            <dataType>6</dataType>
            <period01>400</period01>
            <period02>400</period02>
            <period03>400</period03>
            <period04>400</period04>
            <period05>400</period05>
            <period06>400</period06>
            <period07>400</period07>
            <period08>400</period08>
            <period09>400</period09>
            <period10>400</period10>
            <period11>400</period11>
            <period12>400</period12>
            <period13>400</period13>
            <period14>400</period14>
            <period15>400</period15>
            <period16>400</period16>
            <period17>400</period17>
            <period18>400</period18>
            <period19>400</period19>
            <period20>400</period20>
            <period21>400</period21>
            <period22>400</period22>
            <period23>400</period23>
            <period24>400</period24>
        </tradingLimitDetails>
        <tradingLimitDetails>
            <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <regionCode>TR1</regionCode>
            <dataType>7</dataType>
            <period01>0</period01>
            <period02>0</period02>
            <period03>0</period03>
            <period04>0</period04>
            <period05>0</period05>
            <period06>0</period06>
            <period07>0</period07>
            <period08>0</period08>
            <period09>0</period09>
            <period10>0</period10>
            <period11>0</period11>
            <period12>0</period12>
            <period13>0</period13>
            <period14>0</period14>
            <period15>0</period15>
            <period16>0</period16>
            <period17>0</period17>
            <period18>0</period18>
            <period19>0</period19>
            <period20>0</period20>
            <period21>0</period21>
            <period22>0</period22>
            <period23>0</period23>
            <period24>0</period24>
        </tradingLimitDetails>
        <tradingLimitDetails>
            <deliveryDay>2019-09-12T00:00:00.000+0300</deliveryDay>
            <eic>40X000000000195P</eic>
            <regionCode>TR1</regionCode>
            <dataType>9</dataType>
            <period01>9271.33</period01>
            <period02>7907.34</period02>
            <period03>6920.06</period03>
            <period04>6695.11</period04>
            <period05>6420.15</period05>
            <period06>6570.19</period06>
            <period07>6427.14</period07>
            <period08>6410.84</period08>
            <period09>7724.14</period09>
            <period10>9365.33</period10>
            <period11>10039.32</period11>
            <period12>10046.49</period12>
            <period13>10061.5</period13>
            <period14>10238.48</period14>
            <period15>10100.5</period15>
            <period16>10095.53</period16>
            <period17>9831.21</period17>
            <period18>9452.17</period18>
            <period19>9659.95</period19>
            <period20>9829.64</period20>
            <period21>9779.33</period21>
            <period22>9742.21</period22>
            <period23>9318.21</period23>
            <period24>8811.21</period24>
        </tradingLimitDetails>
    </body>
    <resultType>SUCCESS</resultType>
</queryTradingLimitDetailsServiceResponse>

8. Paths

8.1. List Collateral Rest Service

POST /collateral/organization

8.1.1. Description

The service for listing collateral by organization

8.1.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Criterias for request Colleteral

ServiceCollateralOrganizationRequest

8.1.3. Responses

HTTP Code Description Schema

200

successful operation

CollateralListResponse

8.1.4. Produces

  • application/json

  • application/xml

8.1.5. Tags

  • collateral

8.2. İkili Anlaşmalar Karşılığı Olmayan Satış Kontrolü / İtiraz Et

POST /contract-objection/create

8.2.1. Description

İkili Anlaşmalar Karşığı Olmayan Satış Kontrolü için İtraz Etme işlemini gerçekleştirir.

8.2.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

İtiraz Etme Servis Kriterleri

ServiceCreateContractObjectionRequest

8.2.3. Responses

HTTP Code Description Schema

200

successful operation

CreateContractObjectionServiceResponse

8.2.4. Produces

  • application/json

  • application/xml

8.2.5. Tags

  • contractObjection

8.3. İkili Anlaşmalar Karşılığı Olmayan Satış Kontrolü / İtiraz Listele

POST /contract-objection/list

8.3.1. Description

İkili Anlaşmalar Karşılığı Olmayan Satış Kontrolü için İtiraz Listele işlemini gerçekleştirir.

8.3.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

İtiraz Listeleme Servis Kriterleri

ServiceContractObjectListRequest

8.3.3. Responses

HTTP Code Description Schema

200

successful operation

QueryObjectionResponse

8.3.4. Produces

  • application/json

  • application/xml

8.3.5. Tags

  • contractObjection

8.4. #{BAD_CONTRACT_LIST_VALUE}

POST /contract/bad/list

8.4.1. Description

{BAD_CONTRACT_LIST_NOTES}

1.1. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

= {BAD_CONTRACT_LIST_REQUEST_API_PARAM_VALUE}

ServiceBadContractQueryRequest

1.2. Responses

HTTP Code Description Schema

200

successful operation

BadContractQueryResponse

1.3. Produces

  • application/json

  • application/xml

1.4. Tags

  • contract

1.5. Bilateral Agreements / Create Service

POST /contract/create

1.5.1. Description

This service creates billateral agreements.

1.5.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Create Request

ServiceContractRequest

1.5.3. Responses

HTTP Code Description Schema

200

successful operation

ContractServiceResponse

1.5.4. Produces

  • application/json

  • application/xml

1.5.5. Tags

  • contract

1.6. Bilateral Agreements / Cancel Service

POST /contract/delete

1.6.1. Description

This service cancels billateral agreements

1.6.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Cancel Request

ServiceQueryContractListRequest

1.6.3. Responses

HTTP Code Description Schema

200

successful operation

ContractServiceResponse

1.6.4. Produces

  • application/json

  • application/xml

1.6.5. Tags

  • contract

1.7. Bilateral Agreements / List Service

POST /contract/list

1.7.1. Description

This service lists billateral agreements

1.7.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements List Request

ServiceQueryContractRequest

1.7.3. Responses

HTTP Code Description Schema

200

successful operation

ContractServiceResponse

1.7.4. Produces

  • application/json

  • application/xml

1.7.5. Tags

  • contract

1.8. Bilateral Agreements / History / List Service

POST /contract/list/history

1.8.1. Description

This service lists history of given billateral agreement.

1.8.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements History List Request

ServiceQueryContractRequest

1.8.3. Responses

HTTP Code Description Schema

200

successful operation

ContractServiceResponse

1.8.4. Produces

  • application/json

  • application/xml

1.8.5. Tags

  • contract

1.9. Bilateral Agreements / Status / List Service

POST /contract/listcontractstatuses

1.9.1. Description

This service returns available statuses.

1.9.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Status List Request

Service

1.9.3. Responses

HTTP Code Description Schema

200

successful operation

< QueryContractStatusResponse > array

1.9.4. Produces

  • application/json

  • application/xml

1.9.5. Tags

  • contract

1.10. Bilateral Agreements / Period List Service

POST /contract/listhourblocks

1.10.1. Description

This service lists periods given date.

1.10.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Period List Request

ServiceQueryContractPeriodRequest

1.10.3. Responses

HTTP Code Description Schema

200

successful operation

QueryContractPeriodServiceResponse

1.10.4. Produces

  • application/json

  • application/xml

1.10.5. Tags

  • contract

1.11. Bilateral Agreements / Organization / List Service

POST /contract/organization/list

1.11.1. Description

This service returns billateral agreement organization list.

1.11.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Organization List Request

ServiceContractOrganizationRequest

1.11.3. Responses

HTTP Code Description Schema

200

successful operation

OrganizationServiceResponse

1.11.4. Produces

  • application/json

  • application/xml

1.11.5. Tags

  • contract

1.12. Bilateral Agreements / Region / List Service

POST /contract/regions

1.12.1. Description

This service returns available regions.

1.12.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Region List Request

ServiceRegionRequest

1.12.3. Responses

HTTP Code Description Schema

200

successful operation

ParameterQueryServiceResponse

1.12.4. Produces

  • application/json

  • application/xml

1.12.5. Tags

  • contract

1.13. Bilateral Agreements / Delivery Day Validation Service

POST /contract/validatedeliveryday

1.13.1. Description

Validates given date.

1.13.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Bilateral Agreements Delivery Day Validation Request

ServiceQueryDeliveryDayRequest

1.13.3. Responses

HTTP Code Description Schema

200

successful operation

BooleanServiceResponse

1.13.4. Produces

  • application/json

  • application/xml

1.13.5. Tags

  • contract

1.14. Gates / List Active Gates

POST /gate/operation/active

1.14.1. Description

This service returns active gates.

1.14.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Active Gate List Request

ServiceQueryActiveGateOperationsRequest

1.14.3. Responses

HTTP Code Description Schema

200

successful operation

< GateOperationsResponse > array

1.14.4. Produces

  • application/json

  • application/xml

1.14.5. Tags

  • gate-operation

1.15. Market Result / Region / List Service

POST /market/finalresults

1.15.1. Description

This service returns market result by region

1.15.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Region Market Result List Request

ServiceQueryFinalResultRequest

1.15.3. Responses

HTTP Code Description Schema

200

successful operation

OptimizationResultServiceResponse

1.15.4. Produces

  • application/json

  • application/xml

1.15.5. Tags

  • market

1.16. MCP statistics Rest Service

POST /market/stats

1.16.1. Description

This service returns average MCP difference in daily (night, day and peak time), weekly, monthly and yearly.

1.16.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

The criterias for fetching MCP statistics

ServicePercentageStatRequest

1.16.3. Responses

HTTP Code Description Schema

200

successful operation

PercentageStatResponse

1.16.4. Produces

  • application/json

  • application/xml

1.16.5. Tags

  • market

1.17. Mininimum Maximum / Offer Price / All / List

POST /minmaxprice/list/all

1.17.1. Description

This service returns all minimum and maximum price information.

1.17.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

1.17.3. Responses

HTTP Code Description Schema

200

successful operation

MinMaxPriceListServiceResponse

1.17.4. Produces

  • application/json

  • application/xml

1.17.5. Tags

  • minmaxprice

1.18. Mininimum Maximum / Offer Price / Delivery Day / List Service

POST /minmaxprice/list/effective

1.18.1. Description

This service returns minimum and maximum prices for delivery day.

1.18.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

MinMax Price List Request

ServiceMinMaxPriceListRequest

1.18.3. Responses

HTTP Code Description Schema

200

successful operation

MinMaxPriceServiceResponse

1.18.4. Produces

  • application/json

  • application/xml

1.18.5. Tags

  • minmaxprice

1.19. Objection Create

POST /objection/create

1.19.1. Description

You can object the Market Clearing Price using this service

1.19.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Details of objection

ServiceObjectionCreateRequest

1.19.3. Responses

HTTP Code Description Schema

200

successful operation

boolean

1.19.4. Produces

  • application/json

  • application/xml

1.19.5. Tags

  • objection

1.20. Objection List

POST /objection/list

1.20.1. Description

Objection List

1.20.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Details of listing objection

ServiceObjectionRequest

1.20.3. Responses

HTTP Code Description Schema

200

successful operation

QueryObjectionResponse

1.20.4. Produces

  • application/json

  • application/xml

1.20.5. Tags

  • objection

1.21. Objection

POST /objection/reply

1.21.1. Parameters

Type Name Description Schema Default

Body

body
required

Reply objection

ServiceObjectionReplyRequest

1.21.2. Responses

HTTP Code Description Schema

200

successful operation

ObjectionReplyRequest

1.21.3. Produces

  • application/json

  • application/xml

1.21.4. Tags

  • objection

1.22. Offer / Advance Service

POST /offer/advance

1.22.1. Description

This service returns required advances for delivery day.

1.22.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Advance List Request

ServiceAdvanceResultRequest

1.22.3. Responses

HTTP Code Description Schema

200

successful operation

AdvanceResultServiceResponse

1.22.4. Produces

  • application/json

  • application/xml

1.22.5. Tags

  • offer

1.23. Offer / Create / Block Service

POST /offer/create/block

1.23.1. Description

This service creates block offers.

1.23.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Create Block Offer Request

ServiceOfferRequest

1.23.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.23.4. Produces

  • application/json

  • application/xml

1.23.5. Tags

  • offer

1.24. Offer / Create / Flexible Service

POST /offer/create/flexible

1.24.1. Description

This service creates flexible offers.

1.24.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Create Flexible Offer Request

ServiceOfferRequest

1.24.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.24.4. Produces

  • application/json

  • application/xml

1.24.5. Tags

  • offer

1.25. Offer / Create / Hourly Service

POST /offer/create/hourly

1.25.1. Description

This service creates hourly offers.

1.25.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Create Hourly Offer Request

ServiceOfferRequest

1.25.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.25.4. Produces

  • application/json

  • application/xml

1.25.5. Tags

  • offer

1.26. Offer / Currency Service

POST /offer/currencies

1.26.1. Description

This service returns available currencies for offer.

1.26.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Offer Currency List Request

ServiceCurrencyRequest

1.26.3. Responses

HTTP Code Description Schema

200

successful operation

ParameterQueryServiceResponse

1.26.4. Produces

  • application/json

  • application/xml

1.26.5. Tags

  • offer

1.27. Offer / Cancel / Block Service

POST /offer/delete/block

1.27.1. Description

This service cancels given block offer.

1.27.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
optional

Block Offer Cancel Request

ServiceDeleteOfferRequest

1.27.3. Responses

HTTP Code Description Schema

200

successful operation

DeleteOfferServiceResponse

1.27.4. Produces

  • application/json

  • application/xml

1.27.5. Tags

  • offer

1.28. Offer / Cancel / Flexible Service

POST /offer/delete/flexible

1.28.1. Description

Bu servis esnek teklifleri siler.

1.28.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
optional

Flexible Offer Cancel Request

ServiceDeleteOfferRequest

1.28.3. Responses

HTTP Code Description Schema

200

successful operation

DeleteOfferServiceResponse

1.28.4. Produces

  • application/json

  • application/xml

1.28.5. Tags

  • offer

1.29. Offer / Cancel / Hourly Service

POST /offer/delete/hourly

1.29.1. Description

This service cancels given hourly offer.

1.29.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
optional

Hourly Offer Cancel Request

ServiceDeleteOfferRequest

1.29.3. Responses

HTTP Code Description Schema

200

successful operation

DeleteOfferServiceResponse

1.29.4. Produces

  • application/json

  • application/xml

1.29.5. Tags

  • offer

1.30. Offer / List / Block Service

POST /offer/list/block

1.30.1. Description

This service lists block offers.

1.30.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Block Offer List Request

ServiceQueryOfferRequest

1.30.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.30.4. Produces

  • application/json

  • application/xml

1.30.5. Tags

  • offer

1.31. Offer / List / Flexible Service

POST /offer/list/flexible

1.31.1. Description

This service lists flexible offers

1.31.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Flexible Offer List Request

ServiceQueryOfferRequest

1.31.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.31.4. Produces

  • application/json

  • application/xml

1.31.5. Tags

  • offer

1.32. Offer / List / History / Block Service

POST /offer/list/history/block

1.32.1. Description

This service lists history of block offer.

1.32.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Block Offer History Request

ServiceQueryOfferHistoryRequest

1.32.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.32.4. Produces

  • application/json

  • application/xml

1.32.5. Tags

  • offer

1.33. Offer / List / History / Flexible Service

POST /offer/list/history/flexible

1.33.1. Description

This service lists history of flexible offer.

1.33.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Flexible Offer History Request

ServiceQueryOfferHistoryRequest

1.33.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.33.4. Produces

  • application/json

  • application/xml

1.33.5. Tags

  • offer

1.34. Offer / List / History / Hourly Service

POST /offer/list/history/hourly

1.34.1. Description

This service lists history of hourly offer.

1.34.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Hourly Offer History Request

ServiceQueryOfferHistoryRequest

1.34.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.34.4. Produces

  • application/json

  • application/xml

1.34.5. Tags

  • offer

1.35. Offer / List / Hourly Service

POST /offer/list/hourly

1.35.1. Description

This service lists hourly offers

1.35.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Hourly Offer List Request

ServiceQueryOfferRequest

1.35.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferServiceResponse

1.35.4. Produces

  • application/json

  • application/xml

1.35.5. Tags

  • offer

1.36. Offer / Period Hours List Service

POST /offer/listhourblocks

1.36.1. Description

This service returns periods for deliveryday and offer type.

1.36.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Offer Period List Request

ServiceQueryOfferHourBlockRequest

1.36.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferHourBlockServiceResponse

1.36.4. Produces

  • application/json

  • application/xml

1.36.5. Tags

  • offer

1.37. Offer / Market Result Service

POST /offer/offerresult

1.37.1. Description

This service returns market results by organization.

1.37.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Market Result Request

ServiceOfferResultRequest

1.37.3. Responses

HTTP Code Description Schema

200

successful operation

QueryOfferResultServiceResponse

1.37.4. Produces

  • application/json

  • application/xml

1.37.5. Tags

  • offer

1.38. Offer / Region Service

POST /offer/regions

1.38.1. Description

This service returns available regions for offer

1.38.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Offer Region List Request

ServiceRegionRequest

1.38.3. Responses

HTTP Code Description Schema

200

successful operation

ParameterQueryServiceResponse

1.38.4. Produces

  • application/json

  • application/xml

1.38.5. Tags

  • offer

1.39. Offer / Delivery Day Val?dation Service

POST /offer/validatedeliveryday

1.39.1. Description

Validates given delivery day.

1.39.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Validate Delivery Day Request

ServiceQueryDeliveryDayRequest

1.39.3. Responses

HTTP Code Description Schema

200

successful operation

BooleanServiceResponse

1.39.4. Produces

  • application/json

  • application/xml

1.39.5. Tags

  • offer

1.40. Operation History / Operation History List Service

POST /operationhistory/list

1.40.1. Description

This service lists operation history records.

1.40.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Operation History Query Request

ServiceOperationHistorySearchRequest

1.40.3. Responses

HTTP Code Description Schema

200

successful operation

< OperationHistoryResponseServiceResponse > array

1.40.4. Produces

  • application/json

  • application/xml

1.40.5. Tags

  • operationhistory

1.41. Operation History / Operation Code List Service

POST /operationhistory/operationcodes

1.41.1. Description

This service returns available operations for query.

1.41.2. Parameters

Type Name Description Schema Default

Body

body
optional

Operation Code List Request

ServiceObject

1.41.3. Responses

HTTP Code Description Schema

200

successful operation

ParameterQueryServiceResponse

1.41.4. Produces

  • application/json

  • application/xml

1.41.5. Tags

  • operationhistory

1.42. Ticaret Artış Bildirimi Oluştur

POST /tradeIncrease/create

1.42.1. Description

Seçilen tarihler arasında Ticaret Artış Bildirimi oluşturur.

1.42.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

/tradeIncrease/create

ServiceCreateTradeIncreaseRequest

1.42.3. Responses

HTTP Code Description Schema

200

successful operation

CreateTradeIncreaseResponse

1.42.4. Produces

  • application/json

  • application/xml

1.42.5. Tags

  • tradeincrease

1.43. Ticaret Artış Bildirimi Sil

POST /tradeIncrease/delete

1.43.1. Description

Seçili tarihler arasında oluşturulmuş olan Ticaret Artış Bildirimi’ni siler.

1.43.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Ticaret Artış Bildirimi Silme Servis Kriterleri

ServiceDeleteTradeIncreaseRequest

1.43.3. Responses

HTTP Code Description Schema

200

successful operation

TradeIncreaseNotificationListResponse

1.43.4. Produces

  • application/json

  • application/xml

1.43.5. Tags

  • tradeincrease

1.44. Ticaret Artış Bildirimi Listele

POST /tradeIncrease/list

1.44.1. Description

Ticaret Artış Bildirimi yapılmış olan tarihleri listeler.

1.44.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Ticaret Artış Bildirimi Listeleme Servis Kriterleri

ServiceTradeIncreaseNotificationListRequest

1.44.3. Responses

HTTP Code Description Schema

200

successful operation

TradeIncreaseNotificationListServiceResponse

1.44.4. Produces

  • application/json

  • application/xml

1.44.5. Tags

  • tradeincrease

1.45. Ticaret Artış Bildirimi Güncelle

POST /tradeIncrease/update

1.45.1. Description

Ticaret Artış Bildirimi yapılan tarihleri günceller.

1.45.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Ticaret Artış Bildirimi Güncelleme Servis Kriterleri

ServiceUpdateTradeIncreaseRequest

1.45.3. Responses

HTTP Code Description Schema

200

successful operation

TradeIncreaseNotificationListResponse

1.45.4. Produces

  • application/json

  • application/xml

1.45.5. Tags

  • tradeincrease

1.46. Trading Limits Listing Details

POST /tradinglimits/detail/list

1.46.1. Description

Trading Limits Listing Details

1.46.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Trading Limit Details Listing Service Request Details

ServiceQueryTradingLimitsRequest

1.46.3. Responses

HTTP Code Description Schema

200

successful operation

QueryTradingLimitDetailsServiceResponse

1.46.4. Produces

  • application/json

  • application/xml

1.46.5. Tags

  • tradinglimits

1.47. Trading Limits Listing

POST /tradinglimits/list

1.47.1. Description

Trading Limits Listing

1.47.2. Parameters

Type Name Description Schema Default

Header

gop-service-ticket
required

CAS Service Token (ST)

string

Body

body
required

Trading Limits Listing Service Request Details

ServiceQueryTradingLimitsRequest

1.47.3. Responses

HTTP Code Description Schema

200

successful operation

QueryTradingLimitsServiceResponse

1.47.4. Produces

  • application/json

  • application/xml

1.47.5. Tags

  • tradinglimits

9. Definitions

9.1. Advance

This model keeps Advance

Name Description Schema

blockDetails
optional

This field keeps Advance Block Details.

< AdvanceBlockDetail > array

flexibleDetails
optional

This field keeps Advance Flexible Details.

< AdvanceFlexibleDetail > array

hourlyDetails
optional

This field keeps Advance Hourly Details.

< AdvanceHourlyDetail > array

marketTradePrice
optional

Market Clearing Price

number

period
optional

This field keeps Advance Priod Information.

integer(int64)

periodDescription
optional

This field keeps Advance Period Explanation.

string

quantityOfMatchBlock
optional

This field keeps Quantity of Match Block.

integer(int32)

quantityOfMatchFlexible
optional

This field keeps Quantity of Match Flexible.

integer(int32)

quantityOfMatchHourly
optional

This field keeps Quantity of Match Hourly.

integer(int32)

totalOfPurchasingTowards
optional

This field keeps Total of Purchasing Towards.

number

totalOfPurchasingTowardsBlock
optional

This field keeps Total of Purchasing Towards Block.

number

totalOfPurchasingTowardsFlexible
optional

= {ADVANCE_FIELD_TOTAL_OF_PURCHASING_TOWARDS_FLEXIBLE}

number

totalOfPurchasingTowardsHourly
optional

This field keeps Total of Purchasing Towards Hourly.

number

totalOfSalesTowards
optional

This field keeps Total of Sales Towards.

number

totalOfSalesTowardsBlock
optional

This field keeps Total of Sales Towards Block.

number

totalOfSalesTowardsFlexible
optional

This field keeps Total of Sales Towards Flexible.

number

totalOfSalesTowardsHourly
optional

This field keeps Total of Sales Towards Hourly.

number

9.2. AdvanceBlockDetail

This model keeps Block Offer Details for Advance.

Name Description Schema

acceptancePrice
optional

= {ADVANCE_BLOCK_DETAIL_FIELD_ACCEPTANCE_PRICE}

number

amount
optional

This field keeps Offer Amount.

integer(int32)

avgMarketTradePrice
optional

This field keeps Average Market Clearing Price

number

currentPrice
optional

This field keeps Current Price.

number

endPeriod
optional

This field keeps Finish Period Information.

integer(int32)

matchAmount
optional

= {ADVANCE_BLOCK_DETAIL_FIELD_MATCH_AMOUNT}

integer(int32)

name
optional

= {ADVANCE_BLOCK_DETAIL_FIELD_NAME}

string

offerPrice
optional

This field keeps Offer Price.

number

periodDescription
optional

Periyot Açıklaması

string

startPeriod
optional

This field keeps Start Period Information.

integer(int32)

totalOfPurchasingTowards
optional

This field keeps Total of Purchasing Towards.

number

totalOfSalesTowards
optional

This field keeps Total of Sales Towards.

number

9.3. AdvanceFlexibleDetail

This model keeps Flexible Offer Detail for Advance.

Name Description Schema

amount
optional

This field keeps Offer Amount.

integer(int32)

currentPrice
optional

This field keeps Current Price.

number

matchAmount
optional

This field keeps Match Amount.

integer(int32)

name
optional

= {ADVANCE_FLEX_DETAIL_NAME}

string

offerAcceptancePrice
optional

= {ADVANCE_FLEX_DETAIL_ACCEPTANCE_PRICE}

number

offerPrice
optional

This field keeps Offer Price.

number

periodDescription
optional

= {ADVANCE_FLEX_DETAIL_PERIOD_DESCRIPTION}

string

totalOfPurchasingTowards
optional

This field keeps Total of Purchasing Towards.

number

totalOfSalesTowards
optional

This field keeps Total of Sales Towards.

number

9.4. AdvanceHourlyDetail

This model keeps Hourly Offer Detail for Advance.

Name Description Schema

amount
optional

This field keeps Offer Amount.

integer(int32)

offerPrice
optional

This field keeps Offer Price.

number

9.5. AdvanceResultRequest

Information of Advance Request

Name Description Schema

deliveryDay
optional

This field keeps Delivery Date.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

region
optional

This field keeps Region Information.
Example : "TR1"

string

9.6. AdvanceResultResponse

This model keeps Advance Result Information.

Name Description Schema

advances
optional

This model keeps Advance Result Information.

< Advance > array

sidePayment
optional

This model keeps Advance Result Information.

AdvanceSidePayment

9.7. AdvanceResultServiceResponse

This model keeps Advance Result Information.

Name Description Schema

body
optional

AdvanceResultResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

9.8. AdvanceSidePayment

This field model keeps Side Payment Detail for Advance.

Name Description Schema

matchingAmountOfDemand
optional

integer(int32)

matchingAmountOfDemandByOrganization
optional

integer(int32)

matchingAmountOfSupply
optional

integer(int32)

matchingAmountOfSupplyByOrganization
optional

integer(int32)

totalOfDemandSidePayment
optional

number

totalOfDemandSidePaymentByOrganization
optional

number

totalOfPurchasingTowards
optional

number

totalOfRoundingSidePayment
optional

number

totalOfRoundingSidePaymentByOrganization
optional

number

totalOfSalesTowards
optional

number

totalOfSupplySidePayment
optional

number

totalOfSupplySidePaymentByOrganization
optional

number

9.9. BadContract

{BAD_CONTRACT_RESPONSE_MODEL_CLASS_DESCRIPTION}

Name Description Schema

badSellAmount
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_BAD_SELL_AMOUNT}

number

cancellationSellAmount
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_CANCELLATION_SELL_AMOUNT}

number

causativeUserOfIteration
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_CAUSATIVE}

string

deliveryDay
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_DELIVERYDAY}
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

formulaDetail
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_BAD_SELL_FORMULA_DETAIL}

BadSellFormulaDetail

modifyDate
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_MODIFY_DATE}
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

purchaser
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_PURCHASER}

string

regionCode
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_REGIONCODE}

string

sanctionReason
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_SANCTION_REASON}

string

sanctionStatus
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_SANCTION_STATUS}

string

seller
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_SELLER}

string

sellerEic
optional

= {BAD_CONTRACT_RESPONSE_MODEL_FIELD_SELLER_EIC}

string

1.1. BadContractQueryRequest

{BAD_CONTRACT_QUERY_REQUEST_CLASS_DESCRIPTION}

Name Description Schema

deliveryDay
required

= {BAD_CONTRACT_QUERY_REQUEST_FIELD_DELIVERYDAY}
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

regionCode
required

= {BAD_CONTRACT_QUERY_REQUEST_FIELD_REGIONCODE}

string

1.1. BadContractQueryResponse

{BAD_CONTRACT_QUERY_RESPONSE_CLASS_DESCRIPTION}

Name Description Schema

contracts
optional

= {BAD_CONTRACT_RESPONSE_FIELD_CONTRACTS}

< BadContract > array

1.1. BadSellFormulaDetail

{BAD_CONTRACT_SELL_FORMULA_DETAIL}

Name Description Schema

contractBuyAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_CONTRACT_BUY_AMOUNT}

number

contractSellAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_SELL_CONTRACT_AMOUNT}

number

damBuyAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_DAM_BUY_AMOUNT}

number

damSellAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_DAM_SELL_AMOUNT}

number

damVepDefaultBuyAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_DAM_VEP_DEFAULT_BUY_AMOUNT}

number

damVepDefaultSellAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_DAM_VEP_DEFAULT_SELL_AMOUNT}

number

fdps
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_FDPS}

number

lum
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_SYNC_PAR_CON}

number

synchronousParallelConnection
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_SYNC_PAR_CON}

number

vepBuyAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_VEP_BUY_AMOUNT}

number

vepSellAmount
optional

= {BAD_CONTRACT_SELL_FORMULA_DETAIL_VEP_SELL_AMOUNT}

number

1.1. BooleanServiceResponse

Name Description Schema

body
optional

Default : false

boolean

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.2. CollateralListResponse

Name Description Schema

collaterals
optional

< CollateralModel > array

manualCheckAllowed
optional

Default : false

boolean

updateAllowed
optional

Default : false

boolean

1.3. CollateralModel

Collateral Model

Name Description Schema

availableCashCollateral
optional

Current Cash Collateral

number

availableTotalCollateral
optional

Current Total Collateral

number

checkCollateralDate
optional

The time which collateral will be checked

string(date-time)

collateralDate
optional

The day which collateral will be checked

string(date-time)

collateralId
optional

Colletaral Id

integer(int64)

collateralStatus
optional

Colletal Status

string

deliveryDay
optional

The deliveryday which collateral will be used at

string(date-time)

organizationCode
optional

Organization code

integer(int64)

organizationName
optional

Organization short name

string

participationAggrement
optional

Participation Aggrement Status
Default : false

boolean

recordTime
optional

The time which the collateral is fetched from Takas Bank (Exchange Bank) at

string(date-time)

region
optional

Region which collateral will be used in

string

requiredCashCollateral
optional

Required Cash Collateral

number

requiredTotalCollateral
optional

Required Total Collateral

number

1.4. CollateralOrganizationRequest

Request model for Listing Collateral

Name Description Schema

deliveryDay
optional

Deliveryday which collateral will be used in

string(date-time)

region
optional

Region which collateral will be used in

string

1.5. Contract

It keeps the general response structure that is used in contract services such as Listing, Creating and Deleting…

Name Description Schema

cancellationType
optional

This field keeps cancellation type of contract.

enum (UNILITERAL, BILATERAL, COLLATERAL_SANCTION, BMO_SANCTION)

contractId
optional

This field keeps Contract ID.

integer(int64)

counterOffer
optional

This field keeps Informat?on of Counter Offer.

ContractOfferResponseModel

deliveryDay
optional

This field keeps Delivery Date of Contract.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

modifyDate
optional

string(date-time)

offer
optional

This field keeps Offer Information of Contract.

ContractOfferResponseModel

organizationShortName
optional

This field keeps organization short name for the user who did the most recent update on contracts.

string

originator
optional

This field keeps organization EIC code for the user who originated bilateral agreement.

string

state
optional

This field keeps the reason for increasing the version
Example : "#{CONTRACT_RESPONSE_MODEL_FIELD_EXAMPLE}"

string

status
optional

This field keeps Contract Status.
Example : "APPROVED, WAITING_FOR_APPROVAL, INVALID"

enum (APPROVED, WAITING_FOR_APPROVAL, INVALID)

user
optional

This field keeps the information of user who did the most recent update on contracts.

string

version
optional

This field keeps Information of Contract Version.

integer(int32)

1.6. ContractBlockHour

This model keeps Information of Periods.

Name Description Schema

period
optional

This field keeps Order of Period.

integer(int32)

text
optional

This field keeps Description of Period.
Example : "00:01"

string

1.7. ContractObjectListRequest

İtiraz Listeme İstek Detayları

Name Description Schema

endDate
required

Bitiş Tarihi
Example : "2019-09-21T00:00:00.000+0300"

string(date-time)

objectionStatus
required

İtiraz Durumu

enum (ACTIVE, ACCEPTED, REJECTED)

startDate
required

Başlangıç Tarihi
Example : "2019-09-21T00:00:00.000+0300"

string(date-time)

1.8. ContractOfferAmountRequest

This model keeps Information of Amount and Period.

Name Description Schema

amount
optional

This field keeps Information of Contract Amount per Period.

number(double)

period
optional

This field keeps Information of Contract Period.

integer(int32)

1.9. ContractOfferAmountResponseModel

This model keeps Information of Contract Amount.

Name Description Schema

amount
optional

This field keeps Information of Amount.

number(double)

period
optional

This field keeps Information of Period.
Example : "01:00 02:00"

integer(int32)

1.10. ContractOfferRequest

This model keeps Generel Contract Request Object.

Name Description Schema

contractOfferAmounts
optional

This field keeps Information of Amount and Period.

< ContractOfferAmountRequest > array

regionCode
optional

This field keeps Region Code of Contract Organization.

string

1.11. ContractOfferResponseModel

This model keeps Offer Information of Contract.

Name Description Schema

eicCode
optional

This field keeps Information of EIC Code.

string

offerAmount
optional

This field keeps Information of Offer Amount.

< ContractOfferAmountResponseModel > array

organization
optional

This field keeps Organization Short Name.

string

regionCode
optional

This field keeps Information of Region Code.

string

regionName
optional

This field keeps Information of Region Name.

string

user
optional

This field keeps the information of user who did the most recent update on offer.

string

1.12. ContractOrganizationRequest

This field keeps list of organization which are active in the given delivery day.

Name Description Schema

deliveryDay
required

This field keeps Delivery Day.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

1.13. ContractRequest

This model keeps Information of Contract.

Name Description Schema

cancellationType
optional

This field keeps cancellation type of contract.
Example : "UNILITERAL, BILATERAL, COLLATERAL_SANCTION"

enum (UNILITERAL, BILATERAL, COLLATERAL_SANCTION, BMO_SANCTION)

counterEic
required

This field keeps the EIC code information of the participant which will make a counter offer.

string

counterRegionCode
required

This field keeps the region information of the participant which will make a counter offer.

string

deliveryDay
required

This field keeps date. Its format must be ISO8601.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

explanation
optional

string

offer
required

This field keeps the offer information of the participant which will make a counter offer.

ContractOfferRequest

1.14. ContractResponse

This model keeps Contract Information.

Name Description Schema

contracts
optional

= {CONTRACT_RESPONSE_FIELD_CONTRACT_RESPONSE_MODEL}

< Contract > array

1.15. ContractServiceResponse

This model keeps Contract Information.

Name Description Schema

body
optional

ContractResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.16. ContractStatus

This model keeps Contract Status.

Name Description Schema

description
optional

This field keeps Explanation of Contract Status.

string

status
optional

This field keeps Contract Status.
Example : "APPROVED, WAITING_FOR_APPROVAL, INVALID"

string

1.17. CreateContractObjectionRequest

İtiraz Etme İstek Detayları

Name Description Schema

message
optional

İtiraz Metni

string

1.18. CreateContractObjectionResponse

İtiraz Etme Cevap Detayları

Name Description Schema

deliverDay
optional

Teslim Tarihi

string(date-time)

message
optional

İtiraz Metni

string

objectionDate
optional

İtiraz Tarihi

string(date-time)

status
optional

İtiraz Durumu

enum (ACTIVE, ACCEPTED, REJECTED)

username
optional

İtiraz Eden Kullanıcı

string

1.19. CreateContractObjectionServiceResponse

İtiraz Etme Cevap Detayları

Name Description Schema

body
optional

CreateContractObjectionResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.20. CreateTradeIncreaseRequest

{TRADEINCREASE_CREATE_REQUEST_CLASS_DESCRIPTION}

Name Description Schema

deliveryEndDay
required

= {TRADEINCREASE_REQUEST_FIELD_DELIVERYSTARTDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

deliveryStartDay
required

= {TRADEINCREASE_REQUEST_FIELD_DELIVERYSTARTDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

regionCode
required

= {TRADEINCREASE_REQUEST_FIELD_REGION_CODE}

string

1.1. CreateTradeIncreaseResponse

{TRADEINCREASE_CREATE_RESPONSE_CLASS_DESCRIPTION}

Name Description Schema

deliveryEndDay
required

= {TRADEINCREASE_RESPONSE_FIELD_DELIVERYENDDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

deliveryStartDay
required

= {TRADEINCREASE_RESPONSE_FIELD_DELIVERYSTARTDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

regionCode
optional

= {TRADEINCREASE_RESPONSE_FIELD_REGION_CODE}

string

version
optional

= {TRADEINCREASE_RESPONSE_FIELD_VERSION}

integer(int32)

1.1. CurrencyInfo

Name Description Schema

date
optional

string(date-time)

dollar
optional

number(double)

euro
optional

number(double)

turkishLira
optional

number(double)

1.2. CurrencyRequest

This model returns Currency List of Offers.

Name Description Schema

deliveryDay
required

This field keeps Delivery Day. This field' s format is ISO8601.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

1.3. DeleteOfferRequest

Request Criteria of Offer Delete

Name Description Schema

deliveryDay
optional

Delivery Day
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

offerType
optional

Offer Type
Example : "HOURLY,BLOCK,FLEXIBLE"

enum (HOURLY, BLOCK, FLEXIBLE)

region
optional

Offer / Region Service

string

1.4. DeleteOfferResponse

This model keeps Offer Delete Response Details.

Name Description Schema

lastModifyDate
optional

Last Changing Date

string(date-time)

version
optional

integer(int32)

1.5. DeleteOfferServiceResponse

This model keeps Offer Delete Response Details.

Name Description Schema

body
optional

DeleteOfferResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.6. DeleteTradeIncreaseRequest

{TRADEINCREASE_DELETE_REQUEST_CLASS_DESCRIPTION}

Name Description Schema

id
required

= {TRADEINCREASE_REQUEST_FIELD_ID}

integer(int64)

1.1. GateOperationResponseModel

Süreç Response bilgilerini tutar.

Name Description Schema

effectiveDate
optional

Sürecin ilgili olduğu tarih bilgisini tutar.

string(date-time)

end
optional

Süreç bitiş saati bilgisini tutar.

string

gate
optional

Sürecin ismini tutar.

enum (OFFER_DECLARATION, OFFER_CONFIRMATION, PRICE_DETERMINATION, OBJECTION, FINAL_RESULTS, ATC_NTC, BILATERAL_AGREEMENTS_WARNING, BILATERAL_AGREEMENTS, EARLY_DECLARATION, RENEWABLE_ENERGY_SUPPORT_MECHANISMS, COLLATERAL_CG_CONTROL, COLLATERAL_RCG_CONTROL, COLLATERAL_HOLIDAY_CG_CONTROL, OFFER_INFORMATION_SUMMARY, COLLATERAL_CONTRACT, COLLATERAL_CONTRACT_HOLIDAY, CONTRACT_CONFIRMATION_WARNING, CONTRACT_CONFIRMATION, CONTRACT_OBJECTION, CONTROLLED_CONTRACT)

gateStatus
optional

Sürecin durum bilgisini tutar

enum (OPEN, WAITING, CLOSE)

name
optional

Süreç isim bilgisini tutar.

string

start
optional

Süreç başlangıç saati bilgisini tutar.

string

version
optional

Sürecin versiyon bilgisini tutar.

integer(int32)

1.2. GateOperationsResponse

Süreçlerin bilgilerini tutar.

Name Description Schema

gateOperations
optional

Süreç bilgilerini tutar.

< GateOperationResponseModel > array

1.3. Header

Name Description Schema

key
optional

string

value
optional

string

1.4. MarketOperation

Market transaction information

Name Description Schema

averageMcp
optional

number

contractBuyAmount
optional

integer(int64)

deliveryDay
optional

string(date-time)

eic
optional

string

gopTotalBuyAmount
optional

integer(int64)

installedCapacity
optional

integer(int64)

name
optional

string

regionCode
optional

string

synchronousParallelConnection
optional

Default : false

boolean

totalBuyAmount
optional

integer(int64)

totalCollateral
optional

number

totalSellAmount
optional

integer(int64)

totalSellAmountWithTradeIncrease
optional

integer(int64)

tradeIncrease
optional

Default : false

boolean

validTotalBuyAmount
optional

integer(int64)

validTotalSellAmount
optional

integer(int64)

vepBuyNetPosition
optional

integer(int64)

vepSellNetPosition
optional

integer(int64)

1.5. MarketOperationDetail

Market transaction information

Name Description Schema

dataType
optional

integer(int32)

deliveryDay
optional

string(date-time)

eic
optional

string

period01
optional

number

period02
optional

number

period03
optional

number

period04
optional

number

period05
optional

number

period06
optional

number

period07
optional

number

period08
optional

number

period09
optional

number

period10
optional

number

period11
optional

number

period12
optional

number

period13
optional

number

period14
optional

number

period15
optional

number

period16
optional

number

period17
optional

number

period18
optional

number

period19
optional

number

period20
optional

number

period21
optional

number

period22
optional

number

period23
optional

number

period24
optional

number

regionCode
optional

string

1.6. MinMaxPriceListRequest

Name Description Schema

effectiveDate
optional

string(date-time)

1.7. MinMaxPriceListServiceResponse

Name Description Schema

body
optional

< MinMaxPriceResponse > array

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.8. MinMaxPriceResponse

Name Description Schema

active
optional

Default : false

boolean

endDate
optional

string(date-time)

maximumPrice
optional

number(double)

minMaxPriceId
optional

integer(int64)

minimumPrice
optional

number(double)

startDate
optional

string(date-time)

1.9. MinMaxPriceServiceResponse

Name Description Schema

body
optional

MinMaxPriceResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.10. ObjectionCreateRequest

Request information for creating objection

Name Description Schema

message
optional

Objection text

string

offerDetailId
optional

Id of offer which which objection is created for

integer(int64)

1.11. ObjectionModel

Model for objections

Name Description Schema

message
optional

Text of objection

string

objectionDate
optional

Date of objection
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

objectionId
optional

Id of objection

integer(int64)

objectionStatus
optional

Objection status
Example : "ACTIVE,ACCEPTED,REJECTED"

enum (ACTIVE, ACCEPTED, REJECTED)

offerDetail
optional

Details of offer which objection is created for

objectionOfferDetailModel

organization
optional

Organization info of objection maker

Organization

reply
optional

Reply of objection

string

replyDate
optional

Date of objection reply
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

systemUser
optional

QueryUserResponse

user
optional

User info of objection maker

QueryUserResponse

1.12. ObjectionReplyRequest

Name Description Schema

objectionId
optional

integer(int64)

objectionStatus
optional

enum (ACTIVE, ACCEPTED, REJECTED)

reply
optional

string

1.13. ObjectionRequest

Request model of objection listing

Name Description Schema

objectionStatus
optional

Status of objection to be listed
Example : "ACTIVE,ACCEPTED,REJECTED"

enum (ACTIVE, ACCEPTED, REJECTED)

objectionTimeEnd
optional

End date of objection to be listed

string(date-time)

objectionTimeStart
optional

Start date of objection to be listed

string(date-time)

selectedRegions
optional

< string > array

1.14. OfferBlockHour

This model keeps Offer Period Detail

Name Description Schema

period
optional

This field keeps Offer Period Explanation.

integer(int32)

text
optional

This field keeps Offer Period Value.

string

1.15. OfferDetail

This model keeps Information of Offer Detail.

Name Description Schema

block
optional

This field keeps order name.

string

dst
optional

This field keeps Information of Daylight Saving.
Default : false

boolean

duration
optional

This field keeps Period Count.

integer(int32)

endPeriod
optional

= {OFFER_DETAIL_FIELD_ENDPERIOD}
Example : 24

integer(int32)

offerDetailId
optional

This field keeps Offer Detail ID.

integer(int64)

offerPrices
optional

This field keeps Offer Price Details.

< OfferPrice > array

periodDescription
optional

This field keeps Period Explanation.
Example : "00:00 - 01:00"

string

relatedBlock
optional

This field keeps related order name of that order.
Example : "var"

string

startPeriod
optional

This field keeps End Period.
Example : 1

integer(int32)

1.16. OfferDetailResponse

This model keeps Offer Matching Result.

Name Description Schema

amount
optional

This field keeps Amount Information.

number(double)

avgMarketTradePrice
optional

Average Market Clearing Price of given period blocks.

number

index
optional

This field keeps index information.

integer(int32)

price
optional

This field keeps Price Information.

number

1.17. OfferPrice

This model keeps Information of Offer Price.

Name Description Schema

amount
optional

This field keeps Amount.

number(double)

index
optional

This field keeps Index.

integer(int32)

price
optional

This field keeps Price.

number

1.18. OfferRequest

This model keep Information of Offer Request.

Name Description Schema

currencyCode
optional

This field keeps Currency Code of Offer.

string

deliveryDay
optional

This model keeps Information of Offer.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

offerDetails
optional

This field keeps Model of Offer Detail.

< OfferDetail > array

offerType
optional

This field keeps Offer Type.
Example : "HOURLY,FLEXIBLE,BLOCK"

enum (HOURLY, BLOCK, FLEXIBLE)

regionCode
optional

This field keeps Region Code of Offer.

string

1.19. OfferResponse

This model keeps Offer Response Information.

Name Description Schema

availableActions
optional

This field keeps Offer Actions. CREATABLE, EDITABLE,CANCELABLE,READONLY.

< enum (CREATABLE, EDITABLE, CANCELABLE, READONLY) > array

currencyCode
optional

This field keeps Currency Code of Offer.

string

currencyInfo
optional

This field keeps Offer Currency Info.

CurrencyInfo

currencyName
optional

This field keeps Currency of Offer.

string

dayLightSavingDay
optional

This field keeps Information of Daylight Saving.
Default : false

boolean

deliveryDay
optional

This model keeps Information of Offer.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

lastModifyDate
optional

string(date-time)

offerDetails
optional

This field keeps Model of Offer Detail.

< OfferDetail > array

offerType
optional

This field keeps Offer Type.
Example : "HOURLY,FLEXIBLE,BLOCK"

enum (HOURLY, BLOCK, FLEXIBLE)

offerVersion
optional

This field keeps Offer Version.

integer(int32)

organization
optional

Organization

regionCode
optional

This field keeps Region Code of Offer.

string

regionName
optional

This field keeps Region Name of Offer.

string

state
optional

string

user
optional

This field keeps the information of user who did the most recent update on the offer.

string

1.20. OfferResultRequest

This model keeps Information of Offer Result.

Name Description Schema

deliveryDay
optional

This field keeps Delivery Date.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

region
optional

This field keeps Region Information.
Example : "TR1"

string

1.21. OfferResultResponse

This model keeps Offer Matching Result Response Details.

Name Description Schema

optimizationSummaryByOrganizations
required

This field keeps Offer Matching Result Information

< OptimizationSummaryByOrganization > array

1.22. Operation

İşlem bilgisini Tutar

Name Description Schema

description
optional

İşlem ile ilgili açıklama bilgisini tutar.

string

entryDate
optional

İşlem tarihi bilgisini tutar.

string(date-time)

id
optional

İşlem id bilgisini tutar.

integer(int64)

operationName
optional

İşlem isim bilgisini tutar.

string

organizationEic
optional

İşlenim ilgili olduğu organizasyonun kodunu tutar.

string

organizationName
optional

İşlemin ilgili olduğu organizasyonun ismini tutar.

string

organizationShortName
optional

İşlemin ilgili olduğu organizasyonun kısa ismini tutar.

string

params
optional

İşlem ile ilgili parametreleri tutar.

< string, string > map

priority
optional

İşlem öncelik bilgisi tutar.

string

user
optional

İşlemin ilgili olduğu kullanıcı bilgisini tutar.

string

1.23. OperationHistoryResponse

This model keeps Information of Operation History.

Name Description Schema

operationHistories
optional

This field keeps Information List of Operation History.

< Operation > array

1.24. OperationHistoryResponseServiceResponse

This model keeps Information of Operation History.

Name Description Schema

body
optional

OperationHistoryResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.25. OperationHistorySearchRequest

This model is used to list Operation History.

Name Description Schema

endDate
optional

This field keeps Finish Date.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

operationCode
optional

This field keeps Operation Code.

integer(int32)

operationPriority
optional

This field keeps Operation Priority.

enum (INFO, WARNING, ERROR)

operationType
optional

This field keeps Operation Type.

enum (USER, SYSTEM)

organizationEic
optional

This field keeps Organization Code.

string

startDate
optional

This field keeps Start Date.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

userName
optional

This field keeps User Name.

string

1.26. OptimizationFinalResult

This model keeps Information of Regional Result.

Name Description Schema

summaries
optional

This field keeps Regional Result.

< OptimizationSummaryByFinalResult > array

1.27. OptimizationResultServiceResponse

This model keeps Information of Regional Result.

Name Description Schema

body
optional

OptimizationFinalResult

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.28. OptimizationSummaryByFinalResult

This model keeps Result Information.

Name Description Schema

amountOfPurchasingTowardsMatchBlock
optional

This field keeps Amount of Purchasing Towards Match Block.

integer(int32)

amountOfPurchasingTowardsMatchFlexible
optional

This field keeps Amount of Purchasing Towards Match Flex.

integer(int32)

amountOfPurchasingTowardsMatchHourly
optional

This field keeps Amount of Purchasing Towards Match Hourly.

integer(int32)

amountOfPurchasingTowardsMatchTotal
optional

This field keeps Amount of Purchasing Towards Match Total.

integer(int32)

amountOfSalesTowardsMatchBlock
optional

This field keeps Amount of Sales Towards Match Block.

integer(int32)

amountOfSalesTowardsMatchFlexible
optional

This field keeps Amount of Sales Towards Match Flex.

integer(int32)

amountOfSalesTowardsMatchHourly
optional

This field keeps Amount of Sales Towards Match Hourly.

integer(int32)

amountOfSalesTowardsMatchTotal
optional

This field keeps Amount of Sales Towards Match Total.

integer(int32)

curtailedAmount
optional

This field keeps Information of Curtailed Amount.

number

marketTradePrice
optional

Market Clearing Price

number

maxLevelSales
optional

This field keeps Maximum Level Sales.

integer(int32)

minLevelPurchasing
optional

This field keeps Minumum Level Purchasing.

integer(int32)

netTransfer
optional

This field keeps Information of Net Status.

integer(int64)

period
optional

This field keeps Period Information.

integer(int32)

periodDescription
optional

This field keeps Period Description.

string

priceIndependentPurchasing
optional

This field keeps Price Independent Purchasing.

integer(int32)

priceIndependentSales
optional

This field keeps Price Independent Sales.

integer(int32)

regionCode
optional

This field keeps Information of Region.

string

1.29. OptimizationSummaryByOrganization

This model keeps Offer Matching Results.

Name Description Schema

deliveryDay
optional

This field keeps Delivery Date.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

duration
optional

This field keeps Result Perioc Count.

integer(int32)

endPeriod
optional

This field keeps Result Period

integer(int32)

marketTradePrice
optional

This field keeps Result Price.

number

matchInfos
optional

This field keeps Offer Detail Information.

< OfferPrice > array

matchedPeriod
optional

This field keeps Result Period

integer(int32)

offerCode
optional

This field keeps Offer' s Unique Number.

integer(int64)

offerDetailResponses
optional

This field keeps Offer Detail Information.

< OfferDetailResponse > array

offerName
optional

This field keeps offer name information.

string

offerRelatedBlockName
optional

This field keeps related block name information.

string

offerType
optional

This field keeps Offer Type.

string

offerVersion
optional

This field keeps Offer Version Number.

integer(int64)

organization
optional

This field keeps Organization Informatiom

Organization

period
optional

This field keeps Result Period

integer(int32)

periodDescription
optional

This field keeps Result Period Duration.

string

regionCode
optional

This field keeps Region Code of Offer.

string

volume
optional

This field keeps Result Amount.

integer(int32)

1.30. Organization

This model keeps Information of Organization.

Name Description Schema

eic
optional

This field keeps EIC Code.

string

name
optional

This field keeps Organization Name.

string

organizationId
optional

Organization’s ID and Current Status Period

OrganizationId

shortName
optional

This field keeps Organization Short Name.

string

status
optional

This field keeps Organization Status.
Example : "1:Onay Bekleyen, 2:Onayl?, 3:Pasif, 4:Reddedilmis, 5:Ask?da"

integer(int64)

1.31. OrganizationId

Organization’s ID and Current Status Period

Name Description Schema

id
optional

This field keeps Organization' s ID.

integer(int64)

period
optional

This field keeps Organization Status Period.

string(date-time)

1.32. OrganizationResponse

This field keeps the counter organization that contact is made with.

Name Description Schema

organizations
optional

This field keeps the list of counter organization that contact is made with.

< Organization > array

1.33. OrganizationServiceResponse

This field keeps the counter organization that contact is made with.

Name Description Schema

body
optional

OrganizationResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.34. ParameterQueryResponse

This model keeps Information of System Parametric Variable.

Name Description Schema

parameters
optional

This field keeps List of System Parametric Variable.

< ParameterResponse > array

1.35. ParameterQueryServiceResponse

This model keeps Information of System Parametric Variable.

Name Description Schema

body
optional

ParameterQueryResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.36. ParameterResponse

This model keeps Information of System Parametric Variable.

Name Description Schema

description
optional

This field keeps Description of System Parametric Variable.

string

value
optional

This field keeps value of System Parametric Variable.

string

1.37. PercentageStatRequest

The criterias for fetching MCP statistics

Name Description Schema

deliveryDay
optional

The delivery day that MCP statistics will be fetch at.

string(date-time)

regionCode
optional

string

1.38. PercentageStatResponse

The model that holds details of MCP statistics

Name Description Schema

dayDiffPercentage
optional

Percentage of daily difference of MCP

integer(int32)

dayMCPAverage
optional

Average of daily MCP

number

dayTimeDiffPercentage
optional

Percentage of day time difference of MCP

integer(int32)

dayTimeMCPAverage
optional

Average of day time MCP

number

monthDiffPercantage
optional

Percentage of monthly difference of MCP

integer(int32)

monthMCPAverage
optional

Average of monthly MCP

number

nightTimeDiffPercentage
optional

Percentage of night time difference of MCP

integer(int32)

nightTimeMCPAverage
optional

Average of night time MCP

number

peakTimeDiffPercentage
optional

Percentage of peak time difference of MCP

integer(int32)

peakTimeMCPAverage
optional

Average of peak time MCP

number

totalMatchingAmount
optional

Total matched amount

number

totalMatchingAmountPercentage
optional

Percentage of difference of matched amount

integer(int32)

weekDiffPercentage
optional

Percentage of weekly difference of MCP

integer(int32)

weekMCPAverage
optional

Average of weekly MCP

number

yearDiffPercantage
optional

Percentage of yearly difference of MCP

integer(int32)

yearMCPAverage
optional

Average of yearly MCP

number

1.39. QueryActiveGateOperationsRequest

Sürec bilgilerini sorgulamak için kullanılır.

Name Description Schema

effectiveDate
required

Sürecin ilgili olduğu tarih bilgisidir. D+1 tarihli işlemleri için D tarihi ile sorgulama yapılmalıdır.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

1.40. QueryContractListRequest

This model keeps Information of Delete Contract Request.

Name Description Schema

contracts
optional

This field keeps the counter offer information that is wanted to be deleted.

< QueryContractRequest > array

1.41. QueryContractPeriodRequest

This model keeps Period Information of Contract.

Name Description Schema

deliveryDay
optional

It keeps the delivery day information of period list that is going to be returned.

string(date-time)

1.42. QueryContractPeriodResponse

This field keeps the period information that the contracts are entered within.

Name Description Schema

contractHourPeriods
optional

Period List of Contract

< ContractBlockHour > array

1.43. QueryContractPeriodServiceResponse

This field keeps the period information that the contracts are entered within.

Name Description Schema

body
optional

QueryContractPeriodResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.44. QueryContractRequest

This model keeps Information of Contract.

Name Description Schema

cancellationType
optional

This field keeps cancellation type of contract.

enum (UNILITERAL, BILATERAL, COLLATERAL_SANCTION, BMO_SANCTION)

counterEic
optional

This field keeps Information of Counter Organization' s EIC.

string

counterRegionCode
optional

This field keeps Information of Counter Region.

string

deliveryDay
optional

This field keeps date. Its format must be ISO8601.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

eic
optional

This field keeps Information of EIC.

string

regionCode
optional

This field keeps Information of Region.

string

status
optional

This field keeps Information of Offer Type.
Example : "APPROVED, WAITING_FOR_APPROVAL, INVALID"

enum (APPROVED, WAITING_FOR_APPROVAL, INVALID)

1.45. QueryContractStatusResponse

This field keeps which statues a contact can be.

Name Description Schema

statuses
optional

This field keeps the list of contact statues.

< ContractStatus > array

1.46. QueryDeliveryDayRequest

This model keeps request information of validity control based on delivery day.

Name Description Schema

deliveryDay
required

This field keeps Delivery Date.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

1.47. QueryFinalResultRequest

This model keeps Request Information of Regional Results.

Name Description Schema

deliveryDay
required

This field keeps Delivery Date. Its format must be ISO8601.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

region
optional

This field keeps Information of Region.

string

1.48. QueryObjectionResponse

Response model of objections that are created

Name Description Schema

objections
optional

List of objections

< ObjectionModel > array

1.49. QueryOfferHistoryRequest

Request Criteria of Offer History List

Name Description Schema

deliveryDay
optional

Delivery Day
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

offerType
optional

Offer Type
Example : "HOURLY,BLOCK,FLEXIBLE"

enum (HOURLY, BLOCK, FLEXIBLE)

regionCode
optional

Region Code
Example : "TR1"

string

1.50. QueryOfferHourBlockRequest

Request Criteria of Offer Period List

Name Description Schema

date
optional

This field keeps the date information of periods that are wanted to be listed.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

offerType
optional

This field keeps Offer Type.
Example : "HOURLY,BLOCK,FLEXIBLE"

enum (HOURLY, BLOCK, FLEXIBLE)

1.51. QueryOfferHourBlockResponse

Name Description Schema

offerBlockHours
optional

< OfferBlockHour > array

1.52. QueryOfferHourBlockServiceResponse

Name Description Schema

body
optional

QueryOfferHourBlockResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.53. QueryOfferRequest

This model is used to list Offers. If version field isn’t set, service only fetches active Offer List. If version field is set, service fetches active or pasive Offer belonging given version.

Name Description Schema

end
required

This model is used to list Offers. If version field isn’t set, service only fetches active Offer List. If version field is set, service fetches active or pasive Offer belonging given version.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

offerType
required

This model is used to list Offers. If version field isn’t set, service only fetches active Offer List. If version field is set, service fetches active or pasive Offer belonging given version.
Example : "HOURLY, FLEXIBLE, BLOCK"

enum (HOURLY, BLOCK, FLEXIBLE)

regionCode
required

This model is used to list Offers. If version field isn’t set, service only fetches active Offer List. If version field is set, service fetches active or pasive Offer belonging given version.

string

start
required

This model is used to list Offers. If version field isn’t set, service only fetches active Offer List. If version field is set, service fetches active or pasive Offer belonging given version.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

version
required

This model is used to list Offers. If version field isn’t set, service only fetches active Offer List. If version field is set, service fetches active or pasive Offer belonging given version.

integer(int32)

1.54. QueryOfferResponse

This model keeps general Offer Response Information.

Name Description Schema

offers
optional

This field keeps Offer Information.

< OfferResponse > array

1.55. QueryOfferResultServiceResponse

This model keeps Offer Matching Result Response Details.

Name Description Schema

body
optional

OfferResultResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.56. QueryOfferServiceResponse

This model keeps general Offer Response Information.

Name Description Schema

body
optional

QueryOfferResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.57. QueryTradingLimitDetailsResponse

Trading Limit Details Results Details Listing Service

Name Description Schema

tradingLimitDetails
optional

Trading Limit Details Listing Service Results

< MarketOperationDetail > array

1.58. QueryTradingLimitDetailsServiceResponse

Trading Limits Listing Service Contract Details

Name Description Schema

body
optional

QueryTradingLimitDetailsResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.59. QueryTradingLimitsRequest

Trading Limits Listing Service Request Details

Name Description Schema

deliveryDay
required

Delivery Day
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

eic
optional

EIC Information Organization

string

regionCode
optional

Area code

string

1.60. QueryTradingLimitsResponse

Trading Limits Listing Service Contract Details

Name Description Schema

tradingLimits
optional

Trading Limits Listing Service Results

< MarketOperation > array

1.61. QueryTradingLimitsServiceResponse

Trading Limits Listing Service Contract Details

Name Description Schema

body
optional

QueryTradingLimitsResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.62. QueryUserResponse

Response model that holds user model

Name Description Schema

allowedExchange
optional

Default : false

boolean

applyGopOfferLimit
optional

Default : false

boolean

email
optional

User’s real name

string

gopBlockMaxDemandAmount
optional

integer(int64)

gopBlockMaxDemandPrice
optional

number

gopBlockMaxSupplyAmount
optional

integer(int64)

gopBlockMinSupplyPrice
optional

number

gopFlexibleMaxDemandAmount
optional

integer(int64)

gopFlexibleMaxDemandPrice
optional

number

gopFlexibleMaxSupplyAmount
optional

integer(int64)

gopFlexibleMinSupplyPrice
optional

number

gopHourlyMaxDemandAmount
optional

integer(int64)

gopHourlyMaxSupplyAmount
optional

integer(int64)

gopTotalMaxDemandAmount
optional

integer(int64)

gopTotalMaxSupplyAmount
optional

integer(int64)

id
optional

integer(int64)

name
optional

User’s real name

string

organizationEic
optional

string

organizationName
optional

string

organizationShortName
optional

string

phone
optional

User phone number

string

roles
optional

< string > array

status
optional

Default : false

boolean

userMode
optional

Default : false

boolean

username
optional

User name

string

1.63. RegionRequest

This model returns Region List of Offers.

Name Description Schema

deliveryDay
required

This field keeps Delivery Day. This field' s format is ISO8601.
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

1.64. Service

Name Description Schema

body
optional

Request body bilgisini tutar.

object

header
optional

Request header bilgisini tutar.

< Header > array

1.65. ServiceAdvanceResultRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

AdvanceResultRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.66. ServiceBadContractQueryRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

BadContractQueryRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.67. ServiceCollateralOrganizationRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

CollateralOrganizationRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.68. ServiceContractObjectListRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

ContractObjectListRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.69. ServiceContractOrganizationRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

ContractOrganizationRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.70. ServiceContractRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

ContractRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.71. ServiceCreateContractObjectionRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

CreateContractObjectionRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.72. ServiceCreateTradeIncreaseRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

CreateTradeIncreaseRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.73. ServiceCurrencyRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

CurrencyRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.74. ServiceDeleteOfferRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

DeleteOfferRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.75. ServiceDeleteTradeIncreaseRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

DeleteTradeIncreaseRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.76. ServiceMinMaxPriceListRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

MinMaxPriceListRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.77. ServiceObject

Name Description Schema

body
optional

Request body bilgisini tutar.

object

header
optional

Request header bilgisini tutar.

< Header > array

1.78. ServiceObjectionCreateRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

ObjectionCreateRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.79. ServiceObjectionReplyRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

ObjectionReplyRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.80. ServiceObjectionRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

ObjectionRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.81. ServiceOfferRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

OfferRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.82. ServiceOfferResultRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

OfferResultRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.83. ServiceOperationHistorySearchRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

OperationHistorySearchRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.84. ServicePercentageStatRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

PercentageStatRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.85. ServiceQueryActiveGateOperationsRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryActiveGateOperationsRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.86. ServiceQueryContractListRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryContractListRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.87. ServiceQueryContractPeriodRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryContractPeriodRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.88. ServiceQueryContractRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryContractRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.89. ServiceQueryDeliveryDayRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryDeliveryDayRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.90. ServiceQueryFinalResultRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryFinalResultRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.91. ServiceQueryOfferHistoryRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryOfferHistoryRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.92. ServiceQueryOfferHourBlockRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryOfferHourBlockRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.93. ServiceQueryOfferRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryOfferRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.94. ServiceQueryTradingLimitsRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

QueryTradingLimitsRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.95. ServiceRegionRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

RegionRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.96. ServiceTradeIncreaseNotificationListRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

TradeIncreaseNotificationListRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.97. ServiceUpdateTradeIncreaseRequest

Name Description Schema

body
optional

Request body bilgisini tutar.

UpdateTradeIncreaseRequest

header
optional

Request header bilgisini tutar.

< Header > array

1.98. TradeIncreaseNotificationListRequest

{TRADEINCREASE_LIST_REQUEST_CLASS_DESCRIPTION}

Name Description Schema

deliveryEndDay
required

= {TRADEINCREASE_REQUEST_FIELD_DELIVERYENDDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

deliveryStartDay
required

= {TRADEINCREASE_REQUEST_FIELD_DELIVERYSTARTDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

regionCode
required

= {TRADEINCREASE_REQUEST_FIELD_REGION_CODE}

string

1.1. TradeIncreaseNotificationListResponse

{TRADEINCREASE_LIST_RESPONSE_CLASS_DESCRIPTION}

Name Description Schema

tradeIncreases
optional

= {TRADEINCREASE_LIST_RESPONSE_CLASS_DESCRIPTION}

< TradeIncreaseResponseModel > array

1.1. TradeIncreaseNotificationListServiceResponse

{TRADEINCREASE_LIST_RESPONSE_CLASS_DESCRIPTION}

Name Description Schema

body
optional

TradeIncreaseNotificationListResponse

resultCode
optional

0 means success other values may differ for each request

string

resultDescription
optional

if requests succeed return OK otherwise returns error description

string

resultType
optional

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

enum (SUCCESS, BUSINESSERROR, SYSTEMERROR, SECURITYERROR)

1.1. TradeIncreaseResponseModel

{TRADEINCREASE_LIST_RESPONSE_CLASS_DESCRIPTION}

Name Description Schema

deliveryEndDay
required

= {TRADEINCREASE_RESPONSE_FIELD_DELIVERYENDDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

deliveryStartDay
required

= {TRADEINCREASE_RESPONSE_FIELD_DELIVERYSTARTDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

id
optional

= {TRADEINCREASE_RESPONSE_FIELD_ID}

integer(int64)

lastModifyDate
required

= {TRADEINCREASE_RESPONSE_FIELD_LASTMODIFYDATE}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

organizationCode
optional

= {TRADEINCREASE_RESPONSE_FIELD_ORGANIZATION_CODE}

integer(int64)

organizationShortName
required

= {TRADEINCREASE_RESPONSE_FIELD_ORGANIZATION_SHORT_NAME}

string

regionCode
required

= {TRADEINCREASE_RESPONSE_FIELD_REGION_CODE}

string

status
optional

= {TRADEINCREASE_RESPONSE_FIELD_STATUS}
Default : false

boolean

user
required

= {TRADEINCREASE_RESPONSE_FIELD_USER}

string

version
optional

= {TRADEINCREASE_RESPONSE_FIELD_VERSION}

integer(int32)

1.1. UpdateTradeIncreaseRequest

{TRADEINCREASE_UPDATE_REQUEST_CLASS_DESCRIPTION}

Name Description Schema

deliveryEndDay
required

= {TRADEINCREASE_REQUEST_FIELD_DELIVERYENDDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

deliveryStartDay
required

= {TRADEINCREASE_REQUEST_FIELD_DELIVERYSTARTDAY}
Example : "2019-05-29T00:00:00.000+0300"

string(date-time)

id
required

= {TRADEINCREASE_REQUEST_FIELD_ID}

integer(int64)

regionCode
required

= {TRADEINCREASE_REQUEST_FIELD_REGION_CODE}

string

user
required

= {TRADEINCREASE_REQUEST_FIELD_USER}

string

1.1. objectionOfferDetailModel

Name Description Schema

deliveryDate
optional

Teklifin teslim günü
Example : "2016-03-27T00:00:00.000+0200"

string(date-time)

endPeriod
optional

Teklifin Bittigi Period

integer(int32)

marketTradePrice
optional

Eşleşme fiyatı

number

matchInfos
optional

Eslesme Bilgileri

< OfferPrice > array

matchedPeriod
optional

Eslesme baslangic periyodu

integer(int32)

objectedOfferRegion
optional

İtiraz edilen teklifin bölgesi

string

offerCode
optional

Teklifin tekil numarası

integer(int64)

offerName
optional

Teklif Adi

string

offerPrice
optional

Teklifin detayı

< OfferPrice > array

offerType
optional

Teklifin türü

string

offerVersion
optional

Teklifin versiyon numarası

integer(int64)

period
optional

Teklifin başladığı period

integer(int32)

periodDescription
optional

Teklifin kapsadığı saat aralığı

string

relatedBlockName
optional

Bagli Blok Adi

string

relatedOfferCode
optional

Bağlı Teklifin tekil numarası

integer(int64)

volume
optional

Eşleşme miktarı

integer(int32)