POST api/Order/PostBasket

Добавить в корзину

Request Information

URI Parameters

None.

Body Parameters

BasketAddData
NameDescriptionTypeAdditional information
product_rid

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

integer

Required

colour_rid

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

integer

None.

size_rid

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

integer

None.

count

Количество

integer

Required

Range: inclusive between 0 and 2147483647

Request Formats

application/json, text/json

Sample:
{
  "product_rid": 1,
  "colour_rid": 1,
  "size_rid": 1,
  "count": 1
}

text/html

Sample:
{"product_rid":1,"colour_rid":1,"size_rid":1,"count":1}

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}