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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<Basket_AddItemsList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <basketType>orders</basketType>
  <contact>String</contact>
  <list>
    <BasketAddItem>
      <item_id>String</item_id>
      <price>0</price>
      <quantity>0</quantity>
    </BasketAddItem>
  </list>
  <set_mode>false</set_mode>
</Basket_AddItemsList>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BasketAddItemsListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <errCode>0</errCode>
  <list>
    <Basket>
      <article>String</article>
      <basketType>String</basketType>
      <contact>String</contact>
      <id>0</id>
      <item_id>String</item_id>
      <name>String</name>
      <price>0</price>
      <quantity>0</quantity>
      <sum>0</sum>
      <user_name>String</user_name>
    </Basket>
  </list>
</BasketAddItemsListResponse>