FindOutlets ( )

:

params[PHONE]

params[EMAIL]


:

:

ID

52288121-0313-11e7-9dbc-005056a76b49

NAME



TYPE

HOME
OFFICE

.


CITY

52288121-0313-11e7-9dbc-005056a76b49


CITY_NAME


STREET

.

//

HOUSE

5


AP_NUMBER

1


FLOOR

2

COMMENT



BOTTLES

3


AQUA_POINTS

4


QUESTIONNAIRE

true
false

-

PAYSYSTEM

CASH
NONECASH




MEMBER_LP

true
false

-

BRANCH_ID

df701683-d0ff-11e7-a759-005056a76b49

/

STOCK_ID

df701683-d0ff-11e7-a759-005056a76b49
false

FRANCH

true
false

:
"true" -
"false" -

CLOSED

Y
N

:
"Y" -
"N" -

CLOSED_DATE


31.01.2017


, CLOSED = "Y"


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[PHONE]=0391234567";

$FUNC = "FindOutlets";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Array[1]
0 => Object
ID => "1ad285e6-f2ba-11e2-9a90-005056a74894"
NAME => " "
TYPE => "HOME"
CITY => "1a68f40d-65bc-11e2-aa01-52540027e502"
CITY_NAME => ""
STREET => ". "
HOUSE => "4"
AP_NUMBER => "1"
FLOOR => "2"
COMMENT => " "
BOTTLES => "3"
AQUA_POINTS => "55"
QUESTIONNAIRE => true
PAYSYSTEM => "CASH"
MEMBER_LP => false
BRANCH_ID => "df701683-d0ff-11e7-a759-005056a76b49"
FRANCH => "1"
CLOSED => "N"
success => true

PhoneRegistration ()

:

params[PHONE]

params[EMAIL]

.

params[FIO]

.


:

:

ID

52288121-0313-11e7-9dbc-005056a76b49

USER

NEW
OLD

.
OLD -
NEW -

SMS

true

.

PHONE

10

EMAIL

test@test.ua


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[PHONE]=0391234567";

$FUNC = "PhoneRegistration";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
  ID => "080422f9-030c-11e5-a872-005056a77794"
  USER => "OLD"
  SMS => true
  PHONE => "0391234567"
  EMAIL => ""
success => true

PhoneAuthorization ()

:

params[PHONE]

/

params[PASSWORD]


:

:

PHONE

0391234567

ACCOUNT_ID

11111111-1111-1111-1111-111111111111


( )

STATUS

true
false

.


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[PHONE]=0391234567ms[PASSWORD]=1234567";

$FUNC = "PhoneAuthorization";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
PHONE => "0391234567"
ACCOUNT_ID => "11111111-1111-1111-1111-111111111111"
STATUS => true
success => true

ResetPassword ( )

:

params[PHONE]


:

:

: 123456

.
.


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[PHONE]=0391234567";

$FUNC = "ResetPassword";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
Success => true
Error => ""
success => true

RecoverPassword ( )

:

params[CODE]

params[PHONE]

params[PASSWORD]


:

:

RESULT

true
false


MESSAGE

.

.


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[CODE]=123456ms[PHONE]=0391234567ms[PASSWORD]=qwerty123";

$FUNC = "RecoverPassword";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
RESULT => false
ERROR => " ."
success => true

EditAccountInfo ( )

:

params[ACCOUNT_ID]

ID

params[FIO]


params[EMAIL]

EMAIL


:

:

RESULT


false -
true -


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[ACCOUNT_ID]=11111111111-1111111111111-11111111111-11111111111111";

$PARAMS .= "&params[FIO]=".urlencode(""); // , url

$PARAMS .= "&params[EMAIL]=test@test.ua";

$FUNC = "EditAccountInfo";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

Object
data => Object
RESULT => true
success => true

GetCitys ( )

.

:

:

ID

2d20a263-65a9-11e2-aa01-52540027e502


NAME

³

.

NAME_RU

.

REGION_ID

54c5248d-65a2-11e2-aa01-52540027e502


REGION_NAME

³ .

(. )

REGION_NAME_RU

.

(. )

BRANCH_ID

e2ec79d4-faa2-11e3-becb-005056a76b49


DISTRICT_NAME

-

.

DISTRICT_NAME_RU

-

.


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$FUNC = "GetCitys";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

Object
data => Array[1]
0 => Object
ID => "92631f4f-65ce-11e2-aa01-52540027e502"
NAME => ""
NAME_RU => ""
REGION_ID => "54c5248a-65a2-11e2-aa01-52540027e502"
REGION_NAME => " ."
REGION_NAME_RU => ""
BRANCH_ID => "13c05a7c-43ed-11e4-8f36-005056a77794"
DISTRICT_NAME => ""
DISTRICT_NAME_RU => ""

success => true

GetUserHistory ( )

:

params[PHONE]



:

:

ORDER_ID

4400309209

( )

ORDER

d20c5ca7-841c-11e7-87ff-123123asdads11d


DELIVERY_DATE

10.09.2014


STATUS

Delivered

.
Delivered -

DeliveredWithADelay -

NotDelivered -

STREET



HOUSE

10


DELIVERY_TIME

08:00-12:00


PAYMENT_TYPE

CASH


ORDER_DATE

14.09.2018 17:33


ORDER_EVAL

5


ITEMS

ITEMS => Array[2]
0 => Object
ID => "078616e8-494e-11e2-802b-52540027e502"
COUNT => "1"
PRICE => "57.6"
1 => Object
ID => "07861702-494e-11e2-802b-52540027e502"
COUNT => "2"
PRICE => "52"



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[PHONE]=0391234567";

$FUNC = "GetUserHistory";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:
Object
data => Object
81377827-0dc2-11e5-a872-005056a77794 => Array[7]
0 => Object
ORDER_ID => "4401137879"
ORDER => "d20c5ca7-841c-11e7-87ff-005056a76b49"
DELIVERY_DATE => "19.08.2017"
STATUS => "Delivered"
CITY => ""
STREET => " "
HOUSE => "9"
ITEMS => Array[1]
0 => Object
ID => "07861702-494e-11e2-802b-52540027e502"
NAME => Object
UK => ""
RU => ""
EN =>
IMAGE => "http://ids-service.com.ua/upload/images/myrgorod.jpg"
COUNT => "2"
PRICE => "72"
success => true

GetOrderEval ( )

:

params[ORDER_ID]

CRM
: GetUserHistory,
: ORDER


:

:

EVAL

5

1 5

DATE_EVAL

11.12.2017 15:54:08


ERROR

3f06bd1e-dc01-11e7-9d61-005056a76b41



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[ORDER_ID]=3f06bd1e-dc01-11e7-9d61-005056a76b49";

$FUNC = "GetOrderEval";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:
Object
data => Object
EVAL => "5"
DATE_EVAL => "11.12.2017 15:54:08"
ERROR => ""
success => true

DeliveryTime ( )

:

params[PHONE]

params[OUTLET_ID]


params[TERMS]



:

:

DAY_OF_WEEK

MON
TUE
WED
THU
FRI
SAT
SUN


TIME_FROM

0001-01-01T06:00:00

TIME_TO

0001-01-01T09:00:00


INTERVAL

2


ADMISSION_FROM

0001-01-01T00:00:00

.

ADMISSION_TO

0001-01-01T21:00:00

.

TIME_ACCEPTING_ORDERS_TODAY

0001-01-01T21:00:00

.

TERMS_DATE

TERMS_DATE => Array[3]
0 => "01.01.2018"
1 => "02.01.2018"
2 => "07.01.2018"


TERMS_DATE_DETAIL

TERMS_DATE_DETAIL => array[1]
0 => Object
DATE => "01.01.2018"
TIME_FROM => "0001-01-01T10:00:00"
TIME_TO => "0001-01-01T16:00:00"
INTERVAL => "1"
ADMISSION_FROM => "0001-01-01T00:00:00"
ADMISSION_TO => "0001-01-01T21:00:00"

( ).
( : ,

)


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[PHONE]=0391234567&params[OUTLET_ID]=81377827-0dc2-11e5-a872-005056a77794&params[TERMS]";

$FUNC = "DeliveryTime";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
81377827-0dc2-11e5-a872-005056a77794 => Array[12]
0 => Object
DAY_OF_WEEK => "MON"
TIME_FROM => "0001-01-01T06:00:00"
TIME_TO => "0001-01-01T09:00:00"
INTERVAL => "2"
TERMS_DATE => Array[3]
0 => "01.01.2018"
1 => "02.01.2018"
2 => "07.01.2018"
TERMS_DATE_DETAIL => array[1]
0 => Object
DATE => "01.01.2018"
TIME_FROM => "0001-01-01T10:00:00"
TIME_TO => "0001-01-01T16:00:00"
INTERVAL => "1"
success => true

:

06:00-8:00; 07:00-9:00

CreateOrder ( )

:

ORDER

base64_encode($jsonString)

json base64


:

:

OUTLET_ID

0a78305d-1887-11e8-9d40-005056a76b49

( FindOutlets)

NAME



EMAIL

test@test.ua

. ()

PHONE

0391234567

CITY_ID

1a68f40d-65bc-11e2-aa01-52540027e502

STREET

.

()

HOUSE

106

()

AP_NUMBER

55

()

COMMENT

()

DELIVERY_DATE

01.01.2017

(: D.M.Y)

DELIVERY_TIME

MORNING/DAY/EVENING

8:00-10:100

.
(. DeliveryTime)
.
, - MORNING/DAY/EVENING

OFFER_ID

5b223b62-3829-11e4-8f36-001232sa77794

ID ( )

PAYSYSTEM

CASH
NONCASH
ECASHPRIVAT
PORTMONE

:


-

ORDER_ID

11111

AQUAPOINTS

12

CALLBACK

true
false


true -
false -

GOOGLE_CLIENT_ID

123123123,312312

GoogleClientId

ITEMS

array(
"ID"=>"07861702-494e-11e2-802b-52540027e502",
"COUNT"=>"2",
"PRICE"=>"63.00",
),

ID -
COUNT -
PRICE -


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$arParams = array(
"OUTLET_ID"=>"0a78305d-1887-11e8-9d40-005056a76b49",
"NAME"=> ,
"EMAIL"=>"",
"PHONE"=>"0391234567",
"CITY_ID"=>"1a68f40d-65bc-11e2-aa01-52540027e502",
"STREET"=>". ",
"HOUSE"=>"",
"AP_NUMBER"=>"",
"COMMENT"=>" ",
"DELIVERY_DATE"=>"15.03.2016",
"DELIVERY_TIME"=>"8:00-10:00",
"PAYSYSTEM"=>"CASH",
"ORDER_ID"=>"333123",
"AQUAPOINTS"=>"12",
"CALLBACK"=>false,
"GOOGLE_CLIENT_ID"=>"131231231,3123123",
"ITEMS"=>array(
array(
"ID"=>"07861702-494e-11e2-802b-52540027e502",
"COUNT"=>"2",
"PRICE"=>"63.00",
),
array(
"ID"=>"07861696-494e-11e2-802b-52540027e502",
"COUNT"=>"2",
"PRICE"=>"34.80",
),
),
);

$jsonString = json_encode($arParams);

$PARAMS = "params[ORDER]=".base64_encode($jsonString);

$FUNC = "CreateOrder";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
Success => true
Error => ""
Document => "954c613b-07f9-11e7-90ef-005056a76b49"
success => true

ConfirmPayment ( )

:

params[ORDER_ID]


:

:

ERROR

111222222333


RESULT

true
false



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[ORDER_ID]=111222222333";

$FUNC = "ConfirmPayment";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
ERROR => " 111222222333"
RESULT => false
success => true

GetCatalogSections ( .)

.

:

:

ID

11111111-1111-1111-1111-111111111111


PARENT_ID

11111111-1111-1111-1111-111111111111

( )

NAME

NAME => Object
UK => " "
RU => " "
EN => ""



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$FUNC = "GetCatalogSections";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC

$jsonResult = file_get_contents($LINK);

:

data => Array[9]
0 => Object
ID => "dd02232c-31a9-11e4-8f36-005056a77794"
PARENT_ID => ""
NAME => Object
UK => ""
RU => ""
EN => "Water"
success => true

GetMainProducts ( )

:

params[TYPE]

params[CITY_ID]

params[OUTLET_ID]

.

:
, .


:

:

SPECIAL_PRICE

Y/N


ITEMS

Array[]


ID

2d20a263-65a9-11e2-aa01-52540027e502


NAME

NAME => Object
UK => " "
RU => "
"
EN => "
Drinking water"


SUBTITLE

SUBTITLE => Object
UK => " "
RU => "
"
EN => "
Drinking water"


DESCR

DESCR => Object
UK => " "
RU => "
"
EN => "
Drinking water"


GROUP_ID

1c4b123f-494d-11e2-802b-52540027e502


GROUP_NAME

GROUP_NAME => Object
UK => ""
RU => ""



IMAGES

http://ids-service.com.ua/upload/images/1111.jpg


PRICE

33


PRICE_OFFICE

33
false


, false


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[CITY_ID]=1a68f40d-65bc-11e2-aa01-52540027e502&params[OUTLET_ID]=81377827-0dc2-11e5-a872-33333333333&params[TYPE]";

$FUNC = "GetMainProducts";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:
data => Object
SPECIAL_PRICE => "N"
ITEMS => Array[1]
0 => Object
ID => "0786167b-494e-11e2-802b-52540027e502"
NAME => Object
UK => ""
RU => ""
EN =>
SUBTITLE => Object
UK => " 18.9 "
RU => " 18.9 "
EN =>
DESCR => Object
UK => ""
EN =>
CHARS => Object
UK => " "
RU => " "
EN =>
IMAGES => ""
GROUP_ID => "dd02232c-31a9-11e4-8f36-005056a77794"
GROUP_NAME => Object
UK => " "
RU => " "
EN => "Water"
PRICE => "10"
PRICE_OFFICE => "12"
success => true

GetAdditProducts ( . )

:

params[TYPE]

params[CITY_ID]


:

params[STOCK_ID]

( CITY_ID)
:

params[OUTLET_ID]

.

:
, .

params[SECTION_ID]

.
ID .
( GetCatalogSections)

params[ELEMENT_ID]

.
ID

params[FILTER]

.
.
1 -
2 -
3 -
4 -
5 -
11 -


:

:

SPECIAL_PRICE

Y/N


ITEMS

Array[]


ID

2d20a263-65a9-11e2-aa01-52540027e502


NAME

NAME => Object
UK => ""
RU => ""
EN => "Coffee"


SUBTITLE

SUBTITLE => Object
UK => " "
RU => " "
EN => "Best coffee"


DESCR

DESCR => Object
UK => " "
RU => " "
EN => "Coffee from the best grains"


GROUP_ID

1c4b123f-494d-11e2-802b-52540027e502


GROUP_NAME

GROUP_NAME => Object
UK => ""
RU => ""



IMAGES

http://ids-service.com.ua/upload/images/1111.jpg


QUANTITY_IN_PACK

12


SOLD_IN_PACK

true
false

- false
- true

PRICE

11.11


COUNT

95



CITY_ID


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[OUTLET_ID]=81377827-0dc2-11e5-a872-005056a123123&params[CITY_ID]=1a68f40d-65bc-11e2-aa01-52540027e502&params[TYPE]"; -

$FUNC = "GetAdditProducts";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object

SPECIAL_PRICE => "Y"
ITEMS => Array[140]
0 => Object
ID => "1c4b123d-494d-11e2-802b-52540027e502"
NAME => Object
UK => " "" 500 "
RU => " "" 500 "
EN =>
SUBTITLE => Object
UK => ""
RU => ""
EN =>
DESCR => Object
UK => ""
RU => ""
EN =>
CHARS => Object
UK => ""
RU => ""
EN =>
IMAGES => ""
GROUP_ID => "1629cb0f-f207-11e3-becb-005056a76b49"
GROUP_NAME => Object
UK => ""
RU => ""
EN => "Coffee"
QUANTITY_IN_PACK => "12"
SOLD_IN_PACK =>
CHEMICALCOMPOSITION => Object
UK =>
RU =>
EN =>
BRAND => Object
UK => ""
RU => ""
EN =>
PACKAGING => Object
UK => ""
RU => ""
EN =>
WEIGHT => Object
UK =>
RU =>
EN =>
TYPEOFCOFFEE => Object
UK => ""
RU => ""
EN =>
PACKING => Object
UK =>
RU =>
EN =>
PRICE => "1111"
COUNT => "15"

success => true

GetCollateralBottle ( )

:

params[TYPE]

params[OUTLET_ID]

.

:
, .


:

:

SPECIAL_PRICE

Y/N


ITEMS

Array[]


ID

2d20a263-65a9-11e2-aa01-52540027e502


NAME

NAME => Object
UK => " "
RU => " "
EN => ""


SUBTITLE

SUBTITLE => Object
UK => "': 18,9 ."
RU => ": 18,9 ."
EN => ""


DESCR

DESCR => Object
UK => " "
RU => " "
EN => ""


GROUP_ID

d7cee2d4-4468-11e7-93e6-005056a76b49


GROUP_NAME

GROUP_NAME => Object
UK => ""
RU => ""
EN => "Others"



IMAGES

http://ids-service.com.ua/upload/images/1111.jpg


QUANTITY_IN_PACK

12


SOLD_IN_PACK

true
false

- false
- true

PRICE

11.11



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[OUTLET_ID]=81377827-0dc2-11e5-a872-005056a123123&prarms[TYPE]"; -

$FUNC = "GetCollateralBottle";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:
Object
data => Object
SPECIAL_PRICE => "N"
ITEMS => Array[1]
0 => Object
ID => "078616ee-494e-11e2-802b-52540027e502"
NAME => Object
UK => " "
RU => " "
EN => ""
SUBTITLE => Object
UK => "': 18,9 ."
RU => ": 18,9 ."
EN => ""
DESCR => Object
UK => " "
RU => " "
EN => ""
CHARS => Object
UK => " "
RU => " "
EN => ""
IMAGES => "http://ids-service.com.ua/upload/images/zalog18.9.jpg"
GROUP_ID => "d7cee2d4-4468-11e7-93e6-005056a76b49"
GROUP_NAME => Object
UK => ""
RU => ""
EN => "Others"
QUANTITY_IN_PACK => "1"
SOLD_IN_PACK => false
PRICE => "150"
success => true

getPromotionalOffers ( )

.




:

params[BRANCHES]

ID /

params[OFFER_ID]

OFFER_ID (ID )

params[BRANCH_ID]

BRANCH_ID (ID /)


:

:

OFFER_NAME

3

( . )

OFFER_ID

5b6d2b62-3829-11e4-8f36-005056a77794

ID

START_DATE

01.08.2015

( - )

FINISH_DATE

31.12.2019

()

DESCRIPTION

( . )

TYPE

HOME
OFFICE
HOME, OFFICE


SET

PRODUCTS_1 => Array[40]
    0 => Object
     ITEM_ID => "2cad1083-494e-11e2-802b-52540027e502"
     PRICE => "4500"
PRODUCTS_2 => Array[2]
    0 => Object
     ITEM_ID => "07861702-494e-11e2-802b-52540027e502"
    PRICE => "3"
PRODUCTS_3 => Array[2]
    0 => Object
     ITEM_ID => "07861702-494e-11e2-802b-52540027e502"
     PRICE => "3"


OFFER_FOR_BRANCHES

0 => Object
   ID => "cfdf1911-493c-11e2-802b-52540027e502"
1 => Object
   ID => "cfdf1914-493c-11e2-802b-52540027e502"
2 => Object
   ID => "cfdf1918-493c-11e2-802b-52540027e502"

ID /


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$FUNC = "getPromotionalOffers";

$PARAMS = "params[BRANCHES]";

$PARAMS .= "&params[OFFER_ID]=5b6d2b62-3829-11e4-8f36-005056a77794";

$PARAMS .= "&params[BRANCH_ID]=cfdf1911-493c-11e2-802b-52540027e502";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:
Object
data => Array[1]
0 => Object
OFFER_NAME => "3 "
OFFER_ID => "5b6d2b62-3829-11e4-8f36-005056a77794"
START_DATE => "01.08.2015"
FINISH_DATE => "31.12.2019"
DESCRIPTION => " 볺"
TYPE => "OFFICE"
SET => Object
PRODUCTS_1 => Array[40]
0 => Object
ITEM_ID => "2cad1083-494e-11e2-802b-52540027e502"
PRICE => "4500"
1 => Object
ITEM_ID => "2cad1087-494e-11e2-802b-52540027e502"
PRICE => "2280"
PRODUCTS_2 => Array[2]
0 => Object
ITEM_ID => "07861702-494e-11e2-802b-52540027e502"
PRICE => "3"
1 => Object
ITEM_ID => "b527c11c-f94a-4ea7-8b87-f1825a3b85df"
PRICE => "1.2"
OFFER_FOR_BRANCHES => Array[112]
0 => Object
ID => "cfdf1911-493c-11e2-802b-52540027e502"
1 => Object
ID => "cfdf1914-493c-11e2-802b-52540027e502"
2 => Object
ID => "cfdf1918-493c-11e2-802b-52540027e502"
success => true

GetLoyaltyConditions ( )

.
.

:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$FUNC = "GetLoyaltyConditions";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC

$jsonResult = file_get_contents($LINK);

:

data => "
<?xml version="1.0" encoding="UTF-8"?>
<root>
<condition_group>
<!-- , -->
<nomenclature>
<id>ccd902de-7582-4762-b442-5d6b4b965ed6</id>
<id>939238a9-9999-44e8-bf70-2db875a7b6eb</id>
</nomenclature>
<conditions>
<!--
what="count" -
type="from_to" - . from_to - , - , . value_from value_to. value_from, value_from=0. value_to, value_to
points="1" - . 1
-->

<condition what="count" type="from_to" value_from="2" value_to="2" points="1"></condition>
<condition what="count" type="from_to" value_from="3" points="5"></condition>
</conditions>
</condition_group>
<condition_group>
<!-- , -->
<nomenclature>
<id>519730e3-b338-4986-bb3b-f8c720307b0d</id>
<id>e05f55bd-b643-4f7f-903e-7786eaf72af9</id>
</nomenclature>
<conditions>
<!--
what="amount" -
type="each" - . each - , value . value. : 100 5
points="5" - . 5
-->

<condition what="amount" type="each" value="100" points="5"></condition>
</conditions>
</condition_group>
</root>
"
success => true

GetWaterConsumption ( )

:

params[OUTLET_ID]


params[DIFF]

.
.
5 .


:

:

PREV_DAY

18.11.2016


LAST_DAY

18.03.2017


DIFF_ORDERS

5


DIFF_DAYS

120


ALASKA_BOTTLES

10


SM_BOTTLES

1.58


ALASKA_ON_DAY

10

SM_ON_DAY

1.58


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[OUTLET_ID]=11111111-1111-1111-11111-11111111111&params[DIFF]=5";

$FUNC = "GetWaterConsumption";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:
data => Object
PREV_DAY => "18.11.2016"
LAST_DAY => "18.03.2017"
DIFF_ORDERS => "5"
DIFF_DAYS => "120"
ALASKA_BOTTLES => "10"
ALASKA_ON_DAY => "1.58"
success => true

CreateLoyaltyAnketa ( - )

:

DATA

base64_encode($jsonString)

json base64



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$arParams = array
(
"PollId"=>"f97f08e3-5c61-4403-9aeb-cdf68dcd9a65 ",
"PollObject"=>$OUTLET_ID,
"Comment"=>$RESULT_ID,
"QuestionsAnswers"=>Array(
"QuestionsAnswers"=>Array(
0=>array(
"ValueType"=>"STRING",
"QuestionId"=>"50b79ceb-ce55-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['S_NAME'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
1=>array(
"ValueType"=>"STRING",
"QuestionId"=>"50b79ced-ce55-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['NAME'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
2=>array(
"ValueType"=>"STRING",
"QuestionId"=>"58f9fde2-ce55-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['P_NAME'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
3=>array(
"ValueType"=>"DATE",
"QuestionId"=>"e00ece81-df8c-11e5-971f-005056a76b49", //
"ValueString"=>"", //
"ValueDate"=>$ANSWARE['BIRTHDAY'][0]['USER_TEXT'],
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
4=>array(
"ValueType"=>"STRING",
"QuestionId"=>"6e826459-ce55-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['SEX'][0]['ANSWER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
5=>array(
"ValueType"=>"STRING",
"QuestionId"=>"5cdd545a-ce57-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['ADRES'][0]['ANSWER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
6=>array(
"ValueType"=>"STRING",
"QuestionId"=>"b64a707e-e049-11e5-931a-005056a76b49", //
"ValueString"=>$POMPA, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
7=>array(
"ValueType"=>"STRING",
"QuestionId"=>"ca80615b-e049-11e5-931a-005056a76b49", //
"ValueString"=>$KULER, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
8=>array(
"ValueType"=>"STRING",
"QuestionId"=>"d205b11f-e049-11e5-931a-005056a76b49", //
"ValueString"=>$DISPENSER, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
9=>array(
"ValueType"=>"STRING",
"QuestionId"=>"fa1121f7-e049-11e5-931a-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['OTHER_EQUIP'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
10=>array(
"ValueType"=>"STRING",
"QuestionId"=>"20b5d1a5-e04a-11e5-931a-005056a76b49", //
"ValueString"=>$WATER, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
11=>array(
"ValueType"=>"STRING",
"QuestionId"=>"427820de-e04a-11e5-931a-005056a76b49", //
"ValueString"=>$COFEE, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
12=>array(
"ValueType"=>"STRING",
"QuestionId"=>"49d156ec-e04a-11e5-931a-005056a76b49", //
"ValueString"=>$TEA, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
13=>array(
"ValueType"=>"STRING",
"QuestionId"=>"57878501-e04a-11e5-931a-005056a76b49", // (, )
"ValueString"=>$PAPER, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
14=>array(
"ValueType"=>"STRING",
"QuestionId"=>"9960f697-ce56-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['FAMILTY_STAT'][0]['ANSWER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
15=>array(
"ValueType"=>"NUMBER",
"QuestionId"=>"c93a3958-ce55-11e5-8160-005056a76b49", //
"ValueString"=>"",
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>$ANSWARE['COUNT_FAMILY'][0]['USER_TEXT'], //
"ValueBoolean"=>false,
),
16=>array(
"ValueType"=>"STRING",
"QuestionId"=>"03f25d40-ce56-11e5-8160-005056a76b49", // 1
"ValueString"=>Sync1C::utf_convert($ANSWARE['FIO_F_C'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
17=>array(
"ValueType"=>"DATE",
"QuestionId"=>"8bdfae64-d614-11e5-bd8b-005056a76b49", // 1
"ValueString"=>"",
"ValueDate"=>$ANSWARE['DATE_F_C'][0]['USER_TEXT'], //
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
18=>array(
"ValueType"=>"STRING",
"QuestionId"=>"4f2ac893-d614-11e5-bd8b-005056a76b49", // 2
"ValueString"=>Sync1C::utf_convert($ANSWARE['FIO_S_C'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
19=>array(
"ValueType"=>"DATE",
"QuestionId"=>"94b80fe3-d614-11e5-bd8b-005056a76b49", // 2
"ValueString"=>"",
"ValueDate"=>$ANSWARE['DATE_S_C'][0]['USER_TEXT'], //
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
20=>array(
"ValueType"=>"STRING",
"QuestionId"=>"55f48de7-d614-11e5-bd8b-005056a76b49", // 3
"ValueString"=>Sync1C::utf_convert($ANSWARE['FIO_TH_C'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
21=>array(
"ValueType"=>"DATE",
"QuestionId"=>"94b80feb-d614-11e5-bd8b-005056a76b49", // 3
"ValueString"=>"",
"ValueDate"=>$ANSWARE['DATE_TH_C'][0]['USER_TEXT'], //
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
22=>array(
"ValueType"=>"STRING",
"QuestionId"=>"62f572f2-d614-11e5-bd8b-005056a76b49", // 4
"ValueString"=>Sync1C::utf_convert($ANSWARE['FIO_FOUR_C'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
23=>array(
"ValueType"=>"DATE",
"QuestionId"=>"9b2ab322-d614-11e5-bd8b-005056a76b49", // 4
"ValueString"=>"",
"ValueDate"=>$ANSWARE['DATE_FOUR_C'][0]['USER_TEXT'], //
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
24=>array(
"ValueType"=>"STRING",
"QuestionId"=>"7759524b-d614-11e5-bd8b-005056a76b49", // 5
"ValueString"=>Sync1C::utf_convert($ANSWARE['FIO_FIVE_C'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
25=>array(
"ValueType"=>"DATE",
"QuestionId"=>"a30f1434-d614-11e5-bd8b-005056a76b49", // 5
"ValueString"=>"",
"ValueDate"=>$ANSWARE['DATE_FIVE_C'][0]['USER_TEXT'], //
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
26=>array(
"ValueType"=>"STRING",
"QuestionId"=>"0eced3c7-ce56-11e5-8160-005056a76b49", //
"ValueString"=>$PHONES, //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
27=>array(
"ValueType"=>"STRING",
"QuestionId"=>"14cce18e-ce56-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['MAIL'][0]['USER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
28=>array(
"ValueType"=>"STRING",
"QuestionId"=>"3c61e82c-ce56-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['COFFE'][0]['ANSWER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
29=>array(
"ValueType"=>"STRING",
"QuestionId"=>"48ca349f-ce56-11e5-8160-005056a76b49", //
"ValueString"=>Sync1C::utf_convert($ANSWARE['TEA'][0]['ANSWER_TEXT']), //
"ValueDate"=>$EMPTY_DATE,
"ValueNumber"=>0,
"ValueBoolean"=>false,
),
),
),
);

$jsonString = json_encode($arParams);

$PARAMS = "params[DATA]=".base64_encode($jsonString);

$FUNC = "CreateLoyaltyAnketa";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:


            
data => Object
return => Object
Success => true
Error => ""
success => true

CreatFeedback ( )

:

params[EVAL]


params[COMMENT]


params[ORDER_ID]

GetUserHistory


:

:

EVAL

5


COMMENT



ORDER_ID

52288121-0313-11e7-9dbc-005056a76b49



:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[EVAL]=3";
$PARAMS .= "&params[COMMENT]=".urlencode(" "); // , url
$PARAMS .= "&params[ORDER_ID]=81377827-0dc2-11e5-a872-005056a77794";

$FUNC = "CreatFeedback";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
return => Object
Success => true
Error => ""
success => true

SetPushNotice ( )

:

params[OUTLET_ID]


params[PHONE]

PUSH

params[TOKEN]

params[MOD]

/


:

:

OUTLET_ID

81377112-0dc2-32e5-a872-005056a45223


PHONE

0391122331


TOKEN

dsjklDFd1312DFJAASDADJl==


MOD

ON
OFF

/


:

$APP_ID = "test";

$APP_KEY = "qweqwesd12312asdsad123";

$CONTROLLER = "API";

$PARAMS = "params[OUTLET_ID]=81377112-0dc2-32e5-a872-005056a45223";
$PARAMS .= "&[PHONE]=0391122331";
$PARAMS .= "&[TOKEN]=dsjklDFd1312DFJAASDADJl==";
$PARAMS .= "&[MOD]=ON";

$FUNC = "SetPushNotice";

$LINK = "https://coreapi.alaska.ua/api/?controller=".$CONTROLLER."&app_id=".$APP_ID.
"&app_key=".$APP_KEY."&enc_request=".$FUNC."&".$PARAMS;

$jsonResult = file_get_contents($LINK);

:

data => Object
Success => true
Error => ""
success => true