POST | /Basket_AddItemsList |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
contact | body | string | No | |
set_mode | body | bool | No | |
list | body | List<BasketAddItem> | No | |
basketType | body | BasketTypes | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
item_id | form | string | No | |
quantity | form | decimal | No | |
price | form | decimal | No |
orders | |
returns |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
errCode | form | int | No | |
list | form | List<Basket> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
id | form | int | No | |
user_name | form | string | No | |
contact | form | string | No | |
item_id | form | string | No | |
article | form | string | No | |
name | form | string | No | |
quantity | form | decimal | No | |
price | form | decimal | No | |
sum | form | decimal | No | |
basketType | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Basket_AddItemsList HTTP/1.1
Host: wbs.e-teleport.ru
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
contact: String,
set_mode: False,
list:
[
{
item_id: String,
quantity: 0,
price: 0
}
],
basketType: orders
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { errCode: 0, list: [ { id: 0, user_name: String, contact: String, item_id: String, article: String, name: String, quantity: 0, price: 0, sum: 0, basketType: String } ] }