salestrans


单击此处,获取完整的操作列表。

postsalescreate

测试

测试窗体只能用于来自本地计算机的请求。

SOAP 1.1

以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。

POST /sales.asmx HTTP/1.1
Host: fzws.capitaland.com.cn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempurl.org/postsalescreate"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <postsalescreate xmlns="http://tempurl.org">
      <astr_request>
        <header>
          <licensekey>string</licensekey>
          <username>string</username>
          <password>string</password>
          <lang>string</lang>
          <pagerecords>int</pagerecords>
          <pageno>int</pageno>
          <updatecount>int</updatecount>
          <messagetype>string</messagetype>
          <messageid>string</messageid>
          <version>string</version>
        </header>
        <salestotal>
          <localstorecode>string</localstorecode>
          <reservedocno>string</reservedocno>
          <txdate_yyyymmdd>string</txdate_yyyymmdd>
          <txtime_hhmmss>string</txtime_hhmmss>
          <mallid>string</mallid>
          <storecode>string</storecode>
          <tillid>string</tillid>
          <salestype>string</salestype>
          <txdocno>string</txdocno>
          <orgtxdate_yyyymmdd>string</orgtxdate_yyyymmdd>
          <orgstorecode>string</orgstorecode>
          <orgtillid>string</orgtillid>
          <orgtxdocno>string</orgtxdocno>
          <mallitemcode>string</mallitemcode>
          <cashier>string</cashier>
          <vipcode>string</vipcode>
          <salesman>string</salesman>
          <demographiccode>string</demographiccode>
          <demographicdata>string</demographicdata>
          <netqty>decimal</netqty>
          <originalamount>decimal</originalamount>
          <sellingamount>decimal</sellingamount>
          <couponnumber>string</couponnumber>
          <coupongroup>string</coupongroup>
          <coupontype>string</coupontype>
          <couponqty>short</couponqty>
          <totaldiscount>
            <salesdiscount xsi:nil="true" />
            <salesdiscount xsi:nil="true" />
          </totaldiscount>
          <ttltaxamount1>decimal</ttltaxamount1>
          <ttltaxamount2>decimal</ttltaxamount2>
          <netamount>decimal</netamount>
          <paidamount>decimal</paidamount>
          <changeamount>decimal</changeamount>
          <priceincludetax>string</priceincludetax>
          <shoptaxgroup>string</shoptaxgroup>
          <extendparam>string</extendparam>
          <invoicetitle>string</invoicetitle>
          <invoicecontent>string</invoicecontent>
          <issueby>string</issueby>
          <issuedate_yyyymmdd>string</issuedate_yyyymmdd>
          <issuetime_hhmmss>string</issuetime_hhmmss>
          <ecorderno>string</ecorderno>
          <buyerremark>string</buyerremark>
          <orderremark>string</orderremark>
          <status>string</status>
          <ttpossalesdocno>string</ttpossalesdocno>
        </salestotal>
        <salesitems>
          <salesitem>
            <iscounteritemcode>string</iscounteritemcode>
            <lineno>int</lineno>
            <storecode>string</storecode>
            <mallitemcode>string</mallitemcode>
            <counteritemcode>string</counteritemcode>
            <itemcode>string</itemcode>
            <plucode>string</plucode>
            <colorcode>string</colorcode>
            <sizecode>string</sizecode>
            <itemlotnum>string</itemlotnum>
            <serialnum>string</serialnum>
            <isdeposit>string</isdeposit>
            <iswholesale>string</iswholesale>
            <invttype>short</invttype>
            <qty>decimal</qty>
            <exstk2sales>decimal</exstk2sales>
            <originalprice>decimal</originalprice>
            <sellingprice>decimal</sellingprice>
            <pricemode>string</pricemode>
            <priceapprove>string</priceapprove>
            <couponnumber>string</couponnumber>
            <coupongroup>string</coupongroup>
            <coupontype>string</coupontype>
            <itemdiscount xsi:nil="true" />
            <vipdiscountpercent>decimal</vipdiscountpercent>
            <vipdiscountless>decimal</vipdiscountless>
            <promotion xsi:nil="true" />
            <totaldiscountless1>decimal</totaldiscountless1>
            <totaldiscountless2>decimal</totaldiscountless2>
            <totaldiscountless>decimal</totaldiscountless>
            <tax xsi:nil="true" />
            <netamount>decimal</netamount>
            <bonusearn>decimal</bonusearn>
            <salesitemremark>string</salesitemremark>
            <refundreasoncode>string</refundreasoncode>
            <extendparam>string</extendparam>
          </salesitem>
          <salesitem>
            <iscounteritemcode>string</iscounteritemcode>
            <lineno>int</lineno>
            <storecode>string</storecode>
            <mallitemcode>string</mallitemcode>
            <counteritemcode>string</counteritemcode>
            <itemcode>string</itemcode>
            <plucode>string</plucode>
            <colorcode>string</colorcode>
            <sizecode>string</sizecode>
            <itemlotnum>string</itemlotnum>
            <serialnum>string</serialnum>
            <isdeposit>string</isdeposit>
            <iswholesale>string</iswholesale>
            <invttype>short</invttype>
            <qty>decimal</qty>
            <exstk2sales>decimal</exstk2sales>
            <originalprice>decimal</originalprice>
            <sellingprice>decimal</sellingprice>
            <pricemode>string</pricemode>
            <priceapprove>string</priceapprove>
            <couponnumber>string</couponnumber>
            <coupongroup>string</coupongroup>
            <coupontype>string</coupontype>
            <itemdiscount xsi:nil="true" />
            <vipdiscountpercent>decimal</vipdiscountpercent>
            <vipdiscountless>decimal</vipdiscountless>
            <promotion xsi:nil="true" />
            <totaldiscountless1>decimal</totaldiscountless1>
            <totaldiscountless2>decimal</totaldiscountless2>
            <totaldiscountless>decimal</totaldiscountless>
            <tax xsi:nil="true" />
            <netamount>decimal</netamount>
            <bonusearn>decimal</bonusearn>
            <salesitemremark>string</salesitemremark>
            <refundreasoncode>string</refundreasoncode>
            <extendparam>string</extendparam>
          </salesitem>
        </salesitems>
        <salestenders>
          <salestender>
            <lineno>int</lineno>
            <tendercode>string</tendercode>
            <tendertype>short</tendertype>
            <tendercategory>short</tendercategory>
            <payamount>decimal</payamount>
            <baseamount>decimal</baseamount>
            <excessamount>decimal</excessamount>
            <extendparam>string</extendparam>
            <remark>string</remark>
          </salestender>
          <salestender>
            <lineno>int</lineno>
            <tendercode>string</tendercode>
            <tendertype>short</tendertype>
            <tendercategory>short</tendercategory>
            <payamount>decimal</payamount>
            <baseamount>decimal</baseamount>
            <excessamount>decimal</excessamount>
            <extendparam>string</extendparam>
            <remark>string</remark>
          </salestender>
        </salestenders>
        <salesdlvy>
          <receiver_name>string</receiver_name>
          <receiver_country>string</receiver_country>
          <receiver_province>string</receiver_province>
          <receiver_city>string</receiver_city>
          <receiver_district>string</receiver_district>
          <receiver_address1>string</receiver_address1>
          <receiver_address2>string</receiver_address2>
          <receiver_address3>string</receiver_address3>
          <receiver_address4>string</receiver_address4>
          <receiver_postal>string</receiver_postal>
          <receiver_mobile>string</receiver_mobile>
          <receiver_phone>string</receiver_phone>
          <logisticscompany>string</logisticscompany>
          <logisticsdocno>string</logisticsdocno>
          <expectdeliverydate_yyyymmdd>string</expectdeliverydate_yyyymmdd>
          <deliveryremarks>string</deliveryremarks>
        </salesdlvy>
      </astr_request>
    </postsalescreate>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <postsalescreateResponse xmlns="http://tempurl.org">
      <postsalescreateResult>
        <header>
          <responsecode>short</responsecode>
          <responsemessage>string</responsemessage>
          <pagerecords>int</pagerecords>
          <pageno>int</pageno>
          <updatecount>int</updatecount>
          <maxrecords>int</maxrecords>
          <maxpageno>int</maxpageno>
          <messagetype>string</messagetype>
          <messageid>string</messageid>
          <version>string</version>
        </header>
        <salestotal>
          <localstorecode>string</localstorecode>
          <reservedocno>string</reservedocno>
          <txdate_yyyymmdd>string</txdate_yyyymmdd>
          <txtime_hhmmss>string</txtime_hhmmss>
          <mallid>string</mallid>
          <storecode>string</storecode>
          <tillid>string</tillid>
          <salestype>string</salestype>
          <txdocno>string</txdocno>
          <orgtxdate_yyyymmdd>string</orgtxdate_yyyymmdd>
          <orgstorecode>string</orgstorecode>
          <orgtillid>string</orgtillid>
          <orgtxdocno>string</orgtxdocno>
          <mallitemcode>string</mallitemcode>
          <cashier>string</cashier>
          <vipcode>string</vipcode>
          <salesman>string</salesman>
          <demographiccode>string</demographiccode>
          <demographicdata>string</demographicdata>
          <netqty>decimal</netqty>
          <originalamount>decimal</originalamount>
          <sellingamount>decimal</sellingamount>
          <couponnumber>string</couponnumber>
          <coupongroup>string</coupongroup>
          <coupontype>string</coupontype>
          <couponqty>short</couponqty>
          <totaldiscount>
            <salesdiscount xsi:nil="true" />
            <salesdiscount xsi:nil="true" />
          </totaldiscount>
          <ttltaxamount1>decimal</ttltaxamount1>
          <ttltaxamount2>decimal</ttltaxamount2>
          <netamount>decimal</netamount>
          <paidamount>decimal</paidamount>
          <changeamount>decimal</changeamount>
          <priceincludetax>string</priceincludetax>
          <shoptaxgroup>string</shoptaxgroup>
          <extendparam>string</extendparam>
          <invoicetitle>string</invoicetitle>
          <invoicecontent>string</invoicecontent>
          <issueby>string</issueby>
          <issuedate_yyyymmdd>string</issuedate_yyyymmdd>
          <issuetime_hhmmss>string</issuetime_hhmmss>
          <ecorderno>string</ecorderno>
          <buyerremark>string</buyerremark>
          <orderremark>string</orderremark>
          <status>string</status>
          <ttpossalesdocno>string</ttpossalesdocno>
        </salestotal>
      </postsalescreateResult>
    </postsalescreateResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。

POST /sales.asmx HTTP/1.1
Host: fzws.capitaland.com.cn
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <postsalescreate xmlns="http://tempurl.org">
      <astr_request>
        <header>
          <licensekey>string</licensekey>
          <username>string</username>
          <password>string</password>
          <lang>string</lang>
          <pagerecords>int</pagerecords>
          <pageno>int</pageno>
          <updatecount>int</updatecount>
          <messagetype>string</messagetype>
          <messageid>string</messageid>
          <version>string</version>
        </header>
        <salestotal>
          <localstorecode>string</localstorecode>
          <reservedocno>string</reservedocno>
          <txdate_yyyymmdd>string</txdate_yyyymmdd>
          <txtime_hhmmss>string</txtime_hhmmss>
          <mallid>string</mallid>
          <storecode>string</storecode>
          <tillid>string</tillid>
          <salestype>string</salestype>
          <txdocno>string</txdocno>
          <orgtxdate_yyyymmdd>string</orgtxdate_yyyymmdd>
          <orgstorecode>string</orgstorecode>
          <orgtillid>string</orgtillid>
          <orgtxdocno>string</orgtxdocno>
          <mallitemcode>string</mallitemcode>
          <cashier>string</cashier>
          <vipcode>string</vipcode>
          <salesman>string</salesman>
          <demographiccode>string</demographiccode>
          <demographicdata>string</demographicdata>
          <netqty>decimal</netqty>
          <originalamount>decimal</originalamount>
          <sellingamount>decimal</sellingamount>
          <couponnumber>string</couponnumber>
          <coupongroup>string</coupongroup>
          <coupontype>string</coupontype>
          <couponqty>short</couponqty>
          <totaldiscount>
            <salesdiscount xsi:nil="true" />
            <salesdiscount xsi:nil="true" />
          </totaldiscount>
          <ttltaxamount1>decimal</ttltaxamount1>
          <ttltaxamount2>decimal</ttltaxamount2>
          <netamount>decimal</netamount>
          <paidamount>decimal</paidamount>
          <changeamount>decimal</changeamount>
          <priceincludetax>string</priceincludetax>
          <shoptaxgroup>string</shoptaxgroup>
          <extendparam>string</extendparam>
          <invoicetitle>string</invoicetitle>
          <invoicecontent>string</invoicecontent>
          <issueby>string</issueby>
          <issuedate_yyyymmdd>string</issuedate_yyyymmdd>
          <issuetime_hhmmss>string</issuetime_hhmmss>
          <ecorderno>string</ecorderno>
          <buyerremark>string</buyerremark>
          <orderremark>string</orderremark>
          <status>string</status>
          <ttpossalesdocno>string</ttpossalesdocno>
        </salestotal>
        <salesitems>
          <salesitem>
            <iscounteritemcode>string</iscounteritemcode>
            <lineno>int</lineno>
            <storecode>string</storecode>
            <mallitemcode>string</mallitemcode>
            <counteritemcode>string</counteritemcode>
            <itemcode>string</itemcode>
            <plucode>string</plucode>
            <colorcode>string</colorcode>
            <sizecode>string</sizecode>
            <itemlotnum>string</itemlotnum>
            <serialnum>string</serialnum>
            <isdeposit>string</isdeposit>
            <iswholesale>string</iswholesale>
            <invttype>short</invttype>
            <qty>decimal</qty>
            <exstk2sales>decimal</exstk2sales>
            <originalprice>decimal</originalprice>
            <sellingprice>decimal</sellingprice>
            <pricemode>string</pricemode>
            <priceapprove>string</priceapprove>
            <couponnumber>string</couponnumber>
            <coupongroup>string</coupongroup>
            <coupontype>string</coupontype>
            <itemdiscount xsi:nil="true" />
            <vipdiscountpercent>decimal</vipdiscountpercent>
            <vipdiscountless>decimal</vipdiscountless>
            <promotion xsi:nil="true" />
            <totaldiscountless1>decimal</totaldiscountless1>
            <totaldiscountless2>decimal</totaldiscountless2>
            <totaldiscountless>decimal</totaldiscountless>
            <tax xsi:nil="true" />
            <netamount>decimal</netamount>
            <bonusearn>decimal</bonusearn>
            <salesitemremark>string</salesitemremark>
            <refundreasoncode>string</refundreasoncode>
            <extendparam>string</extendparam>
          </salesitem>
          <salesitem>
            <iscounteritemcode>string</iscounteritemcode>
            <lineno>int</lineno>
            <storecode>string</storecode>
            <mallitemcode>string</mallitemcode>
            <counteritemcode>string</counteritemcode>
            <itemcode>string</itemcode>
            <plucode>string</plucode>
            <colorcode>string</colorcode>
            <sizecode>string</sizecode>
            <itemlotnum>string</itemlotnum>
            <serialnum>string</serialnum>
            <isdeposit>string</isdeposit>
            <iswholesale>string</iswholesale>
            <invttype>short</invttype>
            <qty>decimal</qty>
            <exstk2sales>decimal</exstk2sales>
            <originalprice>decimal</originalprice>
            <sellingprice>decimal</sellingprice>
            <pricemode>string</pricemode>
            <priceapprove>string</priceapprove>
            <couponnumber>string</couponnumber>
            <coupongroup>string</coupongroup>
            <coupontype>string</coupontype>
            <itemdiscount xsi:nil="true" />
            <vipdiscountpercent>decimal</vipdiscountpercent>
            <vipdiscountless>decimal</vipdiscountless>
            <promotion xsi:nil="true" />
            <totaldiscountless1>decimal</totaldiscountless1>
            <totaldiscountless2>decimal</totaldiscountless2>
            <totaldiscountless>decimal</totaldiscountless>
            <tax xsi:nil="true" />
            <netamount>decimal</netamount>
            <bonusearn>decimal</bonusearn>
            <salesitemremark>string</salesitemremark>
            <refundreasoncode>string</refundreasoncode>
            <extendparam>string</extendparam>
          </salesitem>
        </salesitems>
        <salestenders>
          <salestender>
            <lineno>int</lineno>
            <tendercode>string</tendercode>
            <tendertype>short</tendertype>
            <tendercategory>short</tendercategory>
            <payamount>decimal</payamount>
            <baseamount>decimal</baseamount>
            <excessamount>decimal</excessamount>
            <extendparam>string</extendparam>
            <remark>string</remark>
          </salestender>
          <salestender>
            <lineno>int</lineno>
            <tendercode>string</tendercode>
            <tendertype>short</tendertype>
            <tendercategory>short</tendercategory>
            <payamount>decimal</payamount>
            <baseamount>decimal</baseamount>
            <excessamount>decimal</excessamount>
            <extendparam>string</extendparam>
            <remark>string</remark>
          </salestender>
        </salestenders>
        <salesdlvy>
          <receiver_name>string</receiver_name>
          <receiver_country>string</receiver_country>
          <receiver_province>string</receiver_province>
          <receiver_city>string</receiver_city>
          <receiver_district>string</receiver_district>
          <receiver_address1>string</receiver_address1>
          <receiver_address2>string</receiver_address2>
          <receiver_address3>string</receiver_address3>
          <receiver_address4>string</receiver_address4>
          <receiver_postal>string</receiver_postal>
          <receiver_mobile>string</receiver_mobile>
          <receiver_phone>string</receiver_phone>
          <logisticscompany>string</logisticscompany>
          <logisticsdocno>string</logisticsdocno>
          <expectdeliverydate_yyyymmdd>string</expectdeliverydate_yyyymmdd>
          <deliveryremarks>string</deliveryremarks>
        </salesdlvy>
      </astr_request>
    </postsalescreate>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <postsalescreateResponse xmlns="http://tempurl.org">
      <postsalescreateResult>
        <header>
          <responsecode>short</responsecode>
          <responsemessage>string</responsemessage>
          <pagerecords>int</pagerecords>
          <pageno>int</pageno>
          <updatecount>int</updatecount>
          <maxrecords>int</maxrecords>
          <maxpageno>int</maxpageno>
          <messagetype>string</messagetype>
          <messageid>string</messageid>
          <version>string</version>
        </header>
        <salestotal>
          <localstorecode>string</localstorecode>
          <reservedocno>string</reservedocno>
          <txdate_yyyymmdd>string</txdate_yyyymmdd>
          <txtime_hhmmss>string</txtime_hhmmss>
          <mallid>string</mallid>
          <storecode>string</storecode>
          <tillid>string</tillid>
          <salestype>string</salestype>
          <txdocno>string</txdocno>
          <orgtxdate_yyyymmdd>string</orgtxdate_yyyymmdd>
          <orgstorecode>string</orgstorecode>
          <orgtillid>string</orgtillid>
          <orgtxdocno>string</orgtxdocno>
          <mallitemcode>string</mallitemcode>
          <cashier>string</cashier>
          <vipcode>string</vipcode>
          <salesman>string</salesman>
          <demographiccode>string</demographiccode>
          <demographicdata>string</demographicdata>
          <netqty>decimal</netqty>
          <originalamount>decimal</originalamount>
          <sellingamount>decimal</sellingamount>
          <couponnumber>string</couponnumber>
          <coupongroup>string</coupongroup>
          <coupontype>string</coupontype>
          <couponqty>short</couponqty>
          <totaldiscount>
            <salesdiscount xsi:nil="true" />
            <salesdiscount xsi:nil="true" />
          </totaldiscount>
          <ttltaxamount1>decimal</ttltaxamount1>
          <ttltaxamount2>decimal</ttltaxamount2>
          <netamount>decimal</netamount>
          <paidamount>decimal</paidamount>
          <changeamount>decimal</changeamount>
          <priceincludetax>string</priceincludetax>
          <shoptaxgroup>string</shoptaxgroup>
          <extendparam>string</extendparam>
          <invoicetitle>string</invoicetitle>
          <invoicecontent>string</invoicecontent>
          <issueby>string</issueby>
          <issuedate_yyyymmdd>string</issuedate_yyyymmdd>
          <issuetime_hhmmss>string</issuetime_hhmmss>
          <ecorderno>string</ecorderno>
          <buyerremark>string</buyerremark>
          <orderremark>string</orderremark>
          <status>string</status>
          <ttpossalesdocno>string</ttpossalesdocno>
        </salestotal>
      </postsalescreateResult>
    </postsalescreateResponse>
  </soap12:Body>
</soap12:Envelope>