WS_Cust


Click here for a complete list of operations.

UpdateHaulCustomerByTable

Update Customer information, the table will have the following fields: Field NameDescription CM03_CUSTCustomer Number. [int max 10 digit] CM03_NAMECustomer Name. [max 40 characters] CM03_CUSTTYPECustomer Type. [max 2 characters] CM03_ADD1Customer Address 1. [max 40 characters] CM03_ADD2Customer Address 2. [max 40 characters] CM03_ADD3Customer Address 3. [max 40 characters] CM03_ADD4Customer Address 4. [max 40 characters] CM03_CITYCustomer City. [max 40 characters] CM03_STATCustomer State. [max 2 characters] CM03_PZIPCustomer Postal Code/Zip Code. [max 9 characters] CM03_PHONCustomer Phone Number. [max 10 characters] CM03_FAXCustomer Fax Number. [max 10 characters] CM03_CONTPrimary Contact ID. [int] CM03_SREPCustomer Sales Representative Code. [int] CM03_AGRECustomer Contract Number. [max 20 characters] CM03_ADTECustomer Contract Start Date. [smalldatetime] CM03_XDTECustomer Contract Expiry Date. [smalldatetime] CM03_ALPHCustomer Alpha Search. [max 15 characters] CM03_ICHGCustomer Pay Interest Flag. [bit] CM03_CDTECustomer Closed Date. [smalldatetime] CM03_CREDCustomer Credit Limit. [decimal] CM03_WARNCustomer Credit Warning. [decimal] CM03_CARR2 - 4 Delivery Point Carrier. [max 7 characters] CM03_TXJUCustomer Tax Jurisdiction. [max 2 characters] CM03_SUSREASuspend Reason. [max 2 characters] CM03_SUSDATESuspend Date. [smalldatetime] CM03_CCARDTYPECredit Card Type [max 2 characters] CM03_CCARDNUMCredit Card Number [max 25 characters] CM03_CCARDEXPCredit Card Expiration Date [max 5 characters] CM03_CURRCurrency. [int] CM03_INVNOTEInvoice Note. [max 500 characters] CM03_INVNOTEEXPIRESInvoice Note Expiry Date. [smalldatetime] CM03_FLD1Custom item 1. [max 50 characters] CM03_FLD2Custom item 2. [max 50 characters] CM03_FLD3Custom item 3. [max 50 characters] CM03_FLD4Custom item 4. [max 50 characters] CM03_FLD5Custom item 5. [max 50 characters] CM03_FLD6Custom item 6. [max 50 characters] CM03_FLD7Custom item 7. [max 50 characters] CM03_FLD8Custom item 8. [max 50 characters] CM03_FLD9Custom item 9. [max 50 characters] CM03_FLD10Custom item 10. [max 50 characters] CM03_OLDCUSTOld Trux Customer Number. [max 15 characters] CM03_PCLASSPrice Class ID [int] CM03_PONUMPurchase Order Number. [max 40 characters] CM03_CONTRACTSIGNEDContract Signed. [bit] CM03_BILLTOCustomer Bill To. [int] CM03_EMAILCustomer Email. [max 80 characters] CM03_CODCash On Demand. [bit] CM03_BROKEBroker. [int] CM03_STOREDIDStore ID. [max 50 characters] CM03_SURCHARGEEXEMPTIONSurcharge Exemption. [2 characters] CM03_LOSTLost to. [max 2 characters] CM03_EREAExemption Reason. [max 2 characters] CM03_ODULOverdue Letter flag. [bit] CM03_REINSDATEReinstate Date. [smalldatetime] CM03_INVACTIONInvoice Action [2 characters] CM03_DEFPCDefault Price Class ID CM03_NATIONALNational Account ['0' = Non-National Account, '1' = National Account] CM03_INITIALTERMInitial Term. [int] CM03_RENEWTERMRenewal Term. [int] CM03_CASHACCTCash Account. [bit] CM03_COLLAGNTCollection Agent. [max 2 characters] CM03_GLOBGlobal Suspend. [bit] CM03_ADDVERIAddress Verification. [bit] CP01_ACCTTYPEAccount Type. [int] CP01_PAYTERMSPayment Terms. [int] CP01_COMPANYCompany code. [2 characters] CP01_CONTRAContra Receivables Items. [bit] CP01_INTERCOIntercompany Customer. [bit] primaryContactNamePrimary Contact Name CC01_PHONContact Phone CC01_MOBILEContact Mobile [max 10 characters] CC01_EMAILContact Email [max 10 characters] changeReasonCustomer Change log reason. [2 characters]

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /TruxWeb/WSCustomer_Cust/WS_Cust.asmx HTTP/1.1
Host: payments.robinsonwasteservices.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.trux.com/UpdateHaulCustomerByTable"

<?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:Header>
    <Credentials xmlns="http://www.trux.com/">
      <sAccountID>string</sAccountID>
      <sAuthCode>string</sAuthCode>
      <isAuthCodeEncrypted>boolean</isAuthCodeEncrypted>
      <areParametersEncrypted>boolean</areParametersEncrypted>
      <encryptedParameterNames>
        <string>string</string>
        <string>string</string>
      </encryptedParameterNames>
      <requireEncryptedResponse>boolean</requireEncryptedResponse>
      <encryptionMethod>string</encryptionMethod>
      <keyInfo>
        <encryptedKey>string</encryptedKey>
        <encryptionPublicKey>string</encryptionPublicKey>
      </keyInfo>
      <publicAuthKey>string</publicAuthKey>
    </Credentials>
  </soap:Header>
  <soap:Body>
    <UpdateHaulCustomerByTable xmlns="http://www.trux.com/">
      <CompCode>string</CompCode>
      <dtCusomer>xmlxml</dtCusomer>
    </UpdateHaulCustomerByTable>
  </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:Header>
    <Credentials xmlns="http://www.trux.com/">
      <sAccountID>string</sAccountID>
      <sAuthCode>string</sAuthCode>
      <isAuthCodeEncrypted>boolean</isAuthCodeEncrypted>
      <areParametersEncrypted>boolean</areParametersEncrypted>
      <encryptedParameterNames>
        <string>string</string>
        <string>string</string>
      </encryptedParameterNames>
      <requireEncryptedResponse>boolean</requireEncryptedResponse>
      <encryptionMethod>string</encryptionMethod>
      <keyInfo>
        <encryptedKey>string</encryptedKey>
        <encryptionPublicKey>string</encryptionPublicKey>
      </keyInfo>
      <publicAuthKey>string</publicAuthKey>
    </Credentials>
  </soap:Header>
  <soap:Body>
    <UpdateHaulCustomerByTableResponse xmlns="http://www.trux.com/" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /TruxWeb/WSCustomer_Cust/WS_Cust.asmx HTTP/1.1
Host: payments.robinsonwasteservices.com
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:Header>
    <Credentials xmlns="http://www.trux.com/">
      <sAccountID>string</sAccountID>
      <sAuthCode>string</sAuthCode>
      <isAuthCodeEncrypted>boolean</isAuthCodeEncrypted>
      <areParametersEncrypted>boolean</areParametersEncrypted>
      <encryptedParameterNames>
        <string>string</string>
        <string>string</string>
      </encryptedParameterNames>
      <requireEncryptedResponse>boolean</requireEncryptedResponse>
      <encryptionMethod>string</encryptionMethod>
      <keyInfo>
        <encryptedKey>string</encryptedKey>
        <encryptionPublicKey>string</encryptionPublicKey>
      </keyInfo>
      <publicAuthKey>string</publicAuthKey>
    </Credentials>
  </soap12:Header>
  <soap12:Body>
    <UpdateHaulCustomerByTable xmlns="http://www.trux.com/">
      <CompCode>string</CompCode>
      <dtCusomer>xmlxml</dtCusomer>
    </UpdateHaulCustomerByTable>
  </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:Header>
    <Credentials xmlns="http://www.trux.com/">
      <sAccountID>string</sAccountID>
      <sAuthCode>string</sAuthCode>
      <isAuthCodeEncrypted>boolean</isAuthCodeEncrypted>
      <areParametersEncrypted>boolean</areParametersEncrypted>
      <encryptedParameterNames>
        <string>string</string>
        <string>string</string>
      </encryptedParameterNames>
      <requireEncryptedResponse>boolean</requireEncryptedResponse>
      <encryptionMethod>string</encryptionMethod>
      <keyInfo>
        <encryptedKey>string</encryptedKey>
        <encryptionPublicKey>string</encryptionPublicKey>
      </keyInfo>
      <publicAuthKey>string</publicAuthKey>
    </Credentials>
  </soap12:Header>
  <soap12:Body>
    <UpdateHaulCustomerByTableResponse xmlns="http://www.trux.com/" />
  </soap12:Body>
</soap12:Envelope>