TeleportService

<back to all web services

Basket_AddItemsList

Requires Authentication
The following routes are available for this service:
POST/Basket_AddItemsList
Basket_AddItemsList Parameters:
NameParameterData TypeRequiredDescription
contactbodystringNo
set_modebodyboolNo
listbodyList<BasketAddItem>No
basketTypebodyBasketTypesNo
BasketAddItem Parameters:
NameParameterData TypeRequiredDescription
item_idformstringNo
quantityformdecimalNo
priceformdecimalNo
BasketTypes Enum:
orders
returns
BasketAddItemsListResponse Parameters:
NameParameterData TypeRequiredDescription
errCodeformintNo
listformList<Basket>No
Basket Parameters:
NameParameterData TypeRequiredDescription
idformintNo
user_nameformstringNo
contactformstringNo
item_idformstringNo
articleformstringNo
nameformstringNo
quantityformdecimalNo
priceformdecimalNo
sumformdecimalNo
basketTypeformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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/csv
Content-Type: text/csv
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/csv
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"}]}