Send Order: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
(Notices)
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádka 7: Řádka 7:
  
 
====Example====
 
====Example====
<syntaxhighlight lang="sql">
+
<syntaxhighlight lang="xml">
 
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
 
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
 
   <s:Header>
 
   <s:Header>
Řádka 16: Řádka 16:
 
       <partnerLogin>testLogin</partnerLogin>
 
       <partnerLogin>testLogin</partnerLogin>
 
       <partnerPassword>testPassword</partnerPassword>
 
       <partnerPassword>testPassword</partnerPassword>
       <CustomerMessage>Message</CustomerMessage>
+
       <CustomerMessage>Test message</CustomerMessage>
 
       <ItemsToOrder xmlns:d4p1="http://schemas.datacontract.org/2004/07/InterfaceDefinition.WSExchange" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
 
       <ItemsToOrder xmlns:d4p1="http://schemas.datacontract.org/2004/07/InterfaceDefinition.WSExchange" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
 
         <d4p1:iItems>
 
         <d4p1:iItems>
Řádka 47: Řádka 47:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
====Notices====
 
====Notices====
None.
+
WebService Address: <nowiki>http://youre-shop.nextis.cz/Web2WSPublic.svc</nowiki>
 +
 
 +
Every customer who want to send orders must have setted: API_GetCustomers.IsWSImportOrdersAllowed = 1

Aktuální verze z 6. 2. 2018, 15:01

Description

Method allows You to create new order in system.

Exact name

InsertOrder

Type

WebService.

Example

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IWeb2WSPublic/InsertOrder</Action>
  </s:Header>
  <s:Body>
    <InsertOrder xmlns="http://tempuri.org/">
      <partnerLogin>testLogin</partnerLogin>
      <partnerPassword>testPassword</partnerPassword>
      <CustomerMessage>Test message</CustomerMessage>
      <ItemsToOrder xmlns:d4p1="http://schemas.datacontract.org/2004/07/InterfaceDefinition.WSExchange" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <d4p1:iItems>
          <d4p1:WSExchangeOrders.OrderRequest.OrderRequestItem>
            <d4p1:_CustomerBranch i:nil="true" />
            <d4p1:_CustomerDepo i:nil="true" />
            <d4p1:_CustomerItemID>0</d4p1:_CustomerItemID>
            <d4p1:_CustomerOrderNum i:nil="true" />
            <d4p1:_CustomerOwnPrice>false</d4p1:_CustomerOwnPrice>
            <d4p1:_CustomerOwnUnitPrice>0</d4p1:_CustomerOwnUnitPrice>
            <d4p1:_CustomerProductBrand i:nil="true" />
            <d4p1:_CustomerProductCode i:nil="true" />
            <d4p1:_Qty>2</d4p1:_Qty>
            <d4p1:_SupplierBrandName>TRW</d4p1:_SupplierBrandName>
            <d4p1:_SupplierCommitedPrice>0</d4p1:_SupplierCommitedPrice>
            <d4p1:_SupplierCommitedQty>0</d4p1:_SupplierCommitedQty>
            <d4p1:_SupplierProductCode>GDB400</d4p1:_SupplierProductCode>
            <d4p1:iItemState>OK</d4p1:iItemState>
          </d4p1:WSExchangeOrders.OrderRequest.OrderRequestItem>
        </d4p1:iItems>
        <d4p1:iOrderDate i:nil="true" />
        <d4p1:iOrderGroup i:nil="true" />
        <d4p1:iOrderName i:nil="true" />
      </ItemsToOrder>
      <SearchSimilar>false</SearchSimilar>
      <SearchRemoveSpace>false</SearchRemoveSpace>
    </InsertOrder>
  </s:Body>
</s:Envelope>

Notices

WebService Address: http://youre-shop.nextis.cz/Web2WSPublic.svc

Every customer who want to send orders must have setted: API_GetCustomers.IsWSImportOrdersAllowed = 1