ProcessOrder API
Our ProcessOrder API enables the client to load orders into TGC Commerce by passing their chosen ship method along with the merchant's web order number.
Request (Y=Yes, N=No, C=Conditional, N/A=Not Applicable)
Authorization Required
To access this resources' endpoint you will need to provide your Username and Password provided to you by TGC in the ClientCredentials object.
ProcessOrder requests are supported by the SOAP POST method. The XML must conform to the following specifications:
Environment | Protocol | Host | Path | WSDL URL | Format |
---|---|---|---|---|---|
Staging | https:// | services.filltekglobalsolutions.com | /4.3/Merchant/Merchant.svc | https://services.filltekglobalsolutions.com/4.3/Merchant/Merchant.svc?wsdl | XML |
Staging | https:// | services.filltekglobalsolutions.com | /4.3/Merchant/MerchantWCF.svc (Preferred if using .NET) | https://services.filltekglobalsolutions.com/4.3/Merchant/MerchantWCF.svc?wsdl | XML |
Production | https:// | services.tradeglobal.com | /4.3/Merchant/Merchant.svc | https://services.tradeglobal.com/4.3/Merchant/Merchant.svc?wsdl | XML |
Production | https:// | services.tradeglobal.com | /4.3/Merchant/MerchantWCF.svc (Preferred if using .NET) | https://services.tradeglobal.com/4.3/Merchant/MerchantWCF.svc?wsdl | XML |
POST /4.3/Merchant/Merchant.svc
HOST: services.tradeglobal.com
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns="http://services.tradeglobal.com/2014/03" xmlns:trad="http://schemas.datacontract.org/2004/07/TradeGlobal.Common.Entities" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <soapenv:Header> <oas:Security> <oas:UsernameToken> <oas:Password>XXXXXXXXXX</oas:Password> <oas:Username>XXXXXXXXXX</oas:Username> </oas:UsernameToken> </oas:Security> </soapenv:Header> <soapenv:Body> <ns:ProcessOrder> <!--Optional:--> <ns:order> <trad:merchantCodeField>TGCSANDBOX</trad:merchantCodeField> <trad:merchantOrderIdField>TESTORDER001</trad:merchantOrderIdField> <trad:orderAttributesField xsi:nil='true'> <!--Zero or more repetitions:--> <trad:OrderAttribute> <trad:nameField>?</trad:nameField> <trad:typeField>?</trad:typeField> <trad:valueField> <!--Zero or more repetitions:--> <arr:string>?</arr:string> </trad:valueField> </trad:OrderAttribute> </trad:orderAttributesField> <trad:paymentInfoField xsi:nil='true'> <trad:accountField> <trad:expMonthField>?</trad:expMonthField> <trad:expYearField>?</trad:expYearField> <trad:fullNameField>?</trad:fullNameField> <trad:idField>?</trad:idField> <trad:securityCodeField>?</trad:securityCodeField> </trad:accountField> <trad:amountField>?</trad:amountField> <trad:billingAddressField> <trad:address1Field>?</trad:address1Field> <trad:address2Field>?</trad:address2Field> <trad:cityField>?</trad:cityField> <trad:countryField>?</trad:countryField> <trad:emailField>?</trad:emailField> <trad:nameField> <trad:firstField>?</trad:firstField> <trad:lastField>?</trad:lastField> <trad:middleField>?</trad:middleField> </trad:nameField> <trad:phoneField>?</trad:phoneField> <trad:postalCodeField>?</trad:postalCodeField> <trad:stateProvinceField>?</trad:stateProvinceField> </trad:billingAddressField> <trad:buyCurrencyField>?</trad:buyCurrencyField> <trad:creditAmountField>?</trad:creditAmountField> <trad:currencyField>?</trad:currencyField> <trad:cyberSourceField> <trad:fraudCheckAttributesField> <trad:aVSCodeField>?</trad:aVSCodeField> <trad:bankInformationField> <trad:countryField>?</trad:countryField> <trad:nameField>?</trad:nameField> </trad:bankInformationField> <trad:browserEmailField>?</trad:browserEmailField> <trad:byPassFraudCheckField>?</trad:byPassFraudCheckField> <trad:cVCodeField>?</trad:cVCodeField> <trad:customRiskModelField>?</trad:customRiskModelField> <trad:customerIDField>?</trad:customerIDField> <trad:hostNameField>?</trad:hostNameField> <trad:iPAddressField>?</trad:iPAddressField> </trad:fraudCheckAttributesField> </trad:cyberSourceField> <trad:goInterPayField> <trad:buyCurrencyField>?</trad:buyCurrencyField> <trad:countryCodeField>?</trad:countryCodeField> <trad:emailField>?</trad:emailField> <trad:ipField>?</trad:ipField> <trad:openContractField>?</trad:openContractField> <trad:postalCodeField>?</trad:postalCodeField> <trad:rateOfferIDField>?</trad:rateOfferIDField> <trad:referenceIDField>?</trad:referenceIDField> </trad:goInterPayField> <trad:merchantCodeField>?</trad:merchantCodeField> <trad:merchantField> <trad:idField>?</trad:idField> <trad:refCodeField>?</trad:refCodeField> </trad:merchantField> <trad:paymentIDField>?</trad:paymentIDField> <trad:paymentProcessorField>?</trad:paymentProcessorField> <trad:typeField>?</trad:typeField> </trad:paymentInfoField> <trad:processPaymentField>None</trad:processPaymentField> <trad:quoteIdField>a8cd2841-25d5-49c2-b6af-3a5681acfb6a</trad:quoteIdField> <trad:shipToAddressField xsi:nil='true'> <trad:address1Field>123 Main Street</trad:address1Field> <trad:address2Field xsi:nil='true'>?</trad:address2Field> <trad:cityField>Toronto</trad:cityField> <trad:countryField>CA</trad:countryField> <trad:emailField>test@tgc.com</trad:emailField> <trad:nameField> <trad:firstField>Bryan</trad:firstField> <trad:lastField>testcase</trad:lastField> <trad:middleField xsi:nil='true'>?</trad:middleField> </trad:nameField> <trad:phoneField>555555555</trad:phoneField> <trad:postalCodeField>M5S 2A2</trad:postalCodeField> <trad:stateProvinceField>ON</trad:stateProvinceField> </trad:shipToAddressField> </ns:order> </ns:ProcessOrder> </soapenv:Body> </soapenv:Envelope>
Response
If the request is valid and authorized, the server will process the request and return a response. The response will return a ProcessOrderResponse
object. None of the data returned is necessary as these fields are used for payment processing, which is no longer support by this API
Output Elements (Y=Yes, N=No, C=Conditional, N/A=Not Applicable)
200 OK
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <ProcessOrderResponse xmlns="http://services.tradeglobal.com/2014/03"> <ProcessOrderResult xmlns:a="http://schemas.datacontract.org/2004/07/TradeGlobal.Common.Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:orderIdField>TestOrder001</a:orderIdField> <a:paymentResponseField i:nil="true"/> <a:returnCodeField i:nil="true"/> <a:returnDescField>N/A</a:returnDescField> </ProcessOrderResult> </ProcessOrderResponse> </s:Body> </s:Envelope>
Try it Yourself
You can test out this API by viewing our Product Demo