Click here for a complete list of operations.
GetCust
Get Customer Account Detail information.
Company Code [2 characters]
Customer Number [10 digits, unpadded]
Site Number [4 digits, unpadded]
Returns Detail information for Customer Level if Site Number = '0' with follwing fields:
Field NameDescription
- CM03_CUSTCustomer Number [Max 10 characters]
- CM03_NAMECustomer Name
- CM03_CUSTTYPECustomer Type
- CM03_ADD1Address Line 1
- CM03_ADD2Address Line 2
- CM03_ADD3Address Line 3
- CM03_ADD4Address Line 4
- CM03_CITYCity
- CM03_STATState/Province
- CM03_PZIPZip/Postal Code
- CM03_PHONPhone Number
- CM03_FAXFax Number
- CM03_CONTPrimary Contact ID
- CM03_SREPSales Representative Code [2 characters]
- CM03_AGREContract Number
- CM03_ADTEContract Start Date
- CM03_XDTEContract Expiration Date
- CM03_ALPHAlpha Sort
- CM03_ICHGPay Interest ['0' = **#** , '1' =]
- CM03_CDTEClosed Date
- CM03_CREDCredit Limit
- CM03_WARNCredit Warning
- CM03_CARRCarrier (Weigh-IT only)
- CM03_TXJUTax Jurisdiction [2 characters]
- CM03_SUSREASuspend Reason [2 characters]
- CM03_SUSDATESuspend Date
- CM03_CCARDTYPECredit Card Type [2 characters]
- CM03_CCARDNUMCredit Card Number
- CM03_CCARDEXPCredit Card Expiration Date
- CM03_CURRCurrency [Max 3 characters]
- CM03_INVNOTEInvoice Note
- CM03_INVNOTEEXPIRESInvoice Note Expiration Date
- CM03_FLD1Custom Field 1
- CM03_FLD2Custom Field 2
- CM03_FLD3Custom Field 3
- CM03_FLD4Custom Field 4
- CM03_FLD5Custom Field 5
- CM03_FLD6Custom Field 6
- CM03_FLD7Custom Field 7
- CM03_FLD8Custom Field 8
- CM03_FLD9Custom Field 9
- CM03_FLD10Custom Field 10
- CM03_OLDCUSTOld TRUX Customer Number
- CM03_PCLASSPrice Class ID
- CM03_PONUMPurchase Order Number
- CM03_CONTRACTSIGNEDContract Signed ['True' = Signed, 'False' = Unsigned]
- CM03_BILLTOBill To Type ['0' = Consolidated, '1' = AR Customer, '2' = AR Site]
- CM03_EMAILEmail
- CM03_CODCash On Demand ['0' = COD, '1' = Non COD]
- CM03_BROKEBroker [2 characters]
- CM03_STOREIDStore ID
- CM03_SURCHARGEEXEMPTIONSurcharge Exemption ['0' = Not Exempt, '1' = Exempt]
- CM03_LOSTLost To [2 characters]
- CM03_EREAExemption Reason [2 characters]
- CM03_ODULOverdue Letter ['0' = Does Not Receive, '1' = Receives Overdue Letter]
- CM03_REINSTATEReinstate Date
- CM03_INVACTIONInvoice Action [2 characters]
- CM03_SCALENOTEScale Note (Weigh-IT Only)
- CM03_DEFPCDefault Price Class ID
- CM03_NATIONALNational Account ['0' = Non-National Account, '1' = National Account]
- CM03_INITIALTERMInitial Term
- CM03_RENEWTERMRenewal Term
- CM03_CASHACCTCash Account ['0' = Non-Cash Account, '1' = Cash Account]
- primaryContactNamePrimary Contact Name
- CC01_PHONContact Phone
- CC01_MOBILEContact Mobile
- CC01_EMAILContact Email
Returns Detail information for Site Level if Site Number != '0' with follwing fields:
Field NameDescription
- CM04_CUSTCustomer Number [Max 10 characters]
- CM04_SITESite Number [Max 4 characters]
- CM04_NAMESite Name
- CM04_ANUMAddress Number
- CM04_UNITSite Unit Number
- CM04_SPFXSite Street Prefix
- CM04_ROADSite Road Name
- CM04_NESWSite Direction
- CM04_ADD2Address Line 2
- CM04_ADD3Address Line 3
- CM04_ADD4Address Line 4
- CM04_ADD5Address Line 5
- CM04_CITYCity
- CM04_STATState [2 characters]
- CM04_PZIPPostal/Zip Code
- CM04_PHONPhone Number
- CM04_FAXFax Number
- CM04_CONTPrimary Contact ID
- CM04_BUCDBusiness Code [2 characters]
- CM04_NOT1Note 1
- CM04_PRT1Note 1 Print ['0' = Does Not Print, '1' = Print]
- CM04_NOT2Note 2
- CM04_PRT2Note 2 Print ['0' = Does Not Print, '1' = Print]
- CM04_MAPMap Code [Max 3 characters]
- CM04_MCOLMap Column Number ['1' to '26']
- CM04_MROWMap Row Number ['A' to 'Z')
- CM04_MNAMMailing Name
- CM04_MAD1Mailing Address Line 1
- CM04_MAD2Mailing Address Line 2
- CM04_MAD3Mailing Address Line 3
- CM04_MAD4Mailing Address Line 4
- CM04_MCITMailing City
- CM04_MSTAMailing State/Province
- CM04_MPZIMailing Postal/Zip Code
- CM04_MCARMailing Delivery/Carrier [Max 4 characters Delivery and 2 characters Carrier]
- CM04_TXJUTax Jurisdiction [2 characters]
- CM04_TXE1Tax Exempt License 1
- CM04_TXE2Tax Exempt License 2
- CM04_EDTEClosed Date
- CM04_CREDCredit Limit
- CM04_WARNCredit Warning
- CM04_AGREContract Number
- CM04_LONGLongitude
- CM04_LATTLatitude
- CM04_SUSREASuspend Reason [2 characters]
- CM04_SUSDATESuspend Date
- CM04_CCARDTYPECredit Card Type [2 characters]
- CM04_CCARDNUMCredit Card Number
- CM04_CCARDEXPCredit Card Expiration Date
- CM04_CURRCurrency [Max 3 characters]
- CM04_INVNOTEInvoice Note
- CM04_INVNOTEEXPIRESInvoice Note Expiration Date
- CM04_FLD1Custom Field 1
- CM04_FLD2Custom Field 2
- CM04_FLD3Custom Field 3
- CM04_FLD4Custom Field 4
- CM04_FLD5Custom Field 5
- CM04_FLD6Custom Field 6
- CM04_FLD7Custom Field 7
- CM04_FLD8Custom Field 8
- CM04_FLD9Custom Field 9
- CM04_FLD10Custom Field 10
- CM04_PCLASSPrice Class ID
- CM04_ADTEContract Date
- CM04_XDTEContract Expiration Date
- CM04_PONUMPurchase Order Number
- CM04_CONTRACTSIGNEDContract Signed ['0' = Not Signed, '1' = Signed]
- CM04_EMAILEmail
- CM04_STIMService Between Start Time
- CM04_ETIMService Between End Time
- CM04_SREPSales Representative
- CM04_STOREDIDStore ID
- CM04_WOCOPIESNumber of Work Order Copies to Print
- CM04_CODCash On Demand ['0' = COD, '1' = Non COD]
- CM04_LOSTLost To [2 characters]
- CM04_INITALTERMInitial Term
- CM04_RENEWTERMRenewal Term
- primaryContactNamePrimary Contact Name
- CC01_PHONContact Phone
- CC01_MOBILEContact Mobile
- CC01_EMAILContact Email
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.
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/GetCust"
<?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>
<GetCust xmlns="http://www.trux.com/">
<sLoginComp>string</sLoginComp>
<sCust>string</sCust>
<sSite>string</sSite>
</GetCust>
</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>
<GetCustResponse xmlns="http://www.trux.com/">
<GetCustResult>xmlxml</GetCustResult>
</GetCustResponse>
</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>
<GetCust xmlns="http://www.trux.com/">
<sLoginComp>string</sLoginComp>
<sCust>string</sCust>
<sSite>string</sSite>
</GetCust>
</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>
<GetCustResponse xmlns="http://www.trux.com/">
<GetCustResult>xmlxml</GetCustResult>
</GetCustResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /TruxWeb/WSCustomer_Cust/WS_Cust.asmx/GetCust?sLoginComp=string&sCust=string&sSite=string HTTP/1.1
Host: payments.robinsonwasteservices.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://www.trux.com/">xmlxml</DataTable>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /TruxWeb/WSCustomer_Cust/WS_Cust.asmx/GetCust HTTP/1.1
Host: payments.robinsonwasteservices.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
sLoginComp=string&sCust=string&sSite=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://www.trux.com/">xmlxml</DataTable>