POST api/Order/PostDeliveryData

Добавить адрес доставки

Request Information

URI Parameters

None.

Body Parameters

DeliveryAddData
NameDescriptionTypeAdditional information
address

Адрес

string

Required

String length: inclusive between 0 and 200

country_rid

Страна

integer

Required

city_rid

Город

integer

Required

full_name

ФИО

string

Required

String length: inclusive between 0 and 200

phone_number

Номер телефона

string

Required

String length: inclusive between 0 and 50

mail

Почта

string

String length: inclusive between 0 and 200

Request Formats

application/json, text/json

Sample:
{
  "address": "sample string 1",
  "country_rid": 1,
  "city_rid": 1,
  "full_name": "sample string 2",
  "phone_number": "sample string 3",
  "mail": "sample string 4"
}

text/html

Sample:
{"address":"sample string 1","country_rid":1,"city_rid":1,"full_name":"sample string 2","phone_number":"sample string 3","mail":"sample string 4"}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModelAdd
NameDescriptionTypeAdditional information
record_id

Идентификатор

integer

None.

success

Успешность запроса true, false

boolean

None.

Errors

Ошибка запроса

Collection of string

None.

result

Объект

Object

None.

new_level

Новый уровень

integer

None.

add_bonus

Добавленный бонус

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "record_id": 1,
  "success": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "result": {},
  "new_level": 1,
  "add_bonus": 1.0
}

text/html

Sample:
{"record_id":1,"success":true,"Errors":["sample string 1","sample string 2"],"result":{},"new_level":1,"add_bonus":1.0}