UpdateSalesOrder

Description

Update an existing sales order.

Syntax

SalesOrderResponse UpdateSalesOrder(SecurityToken securityToken , SalesOrder salesOrder , string customerId, string subCustomerId, string salesOrderNumber, string salesOrderInternalId).

Arguments

Type

Name

Description

SecurityToken

securityToken

Merchant security token: used to identify merchant and validate transaction. (required)

String

customerId

Customer ID. (required)

String

subCustomerID

Sub-customer ID. (optional)

String

salesOrderNumber

Sales order number ID. (required)

String

salesOrderInternalId

Unique internal sales order ID assigned by EBizCharge. (required)

Return Value

Type

Description

SalesOrderResponse

Returns result of UpdateSalesOrder request.

Examples

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:UpdateSalesOrder>
         <ebiz:securityToken>
            <ebiz:SecurityId>w8d6105a-1906-4be3-b01d-e5d6cd68120c</ebiz:SecurityId>
            <ebiz:UserId/>
            <ebiz:Password/>
         </ebiz:securityToken>
         <ebiz:salesOrder>
            <ebiz:CustomerId>AIM</ebiz:CustomerId>
            <ebiz:SubCustomerId/>
            <ebiz:SalesOrderNumber>So106</ebiz:SalesOrderNumber>
            <ebiz:Date>2019-07-01</ebiz:Date>
            <ebiz:Currency/>
            <ebiz:Amount>125.45</ebiz:Amount>
            <ebiz:DueDate>2019-07-20</ebiz:DueDate>
            <ebiz:AmountDue>100.25</ebiz:AmountDue>
            <ebiz:PoNum>po001</ebiz:PoNum>
            <ebiz:DivisionId>01</ebiz:DivisionId>
            <ebiz:TypeId>01</ebiz:TypeId>
            <ebiz:Items>
               <ebiz:Item>
                  <ebiz:ItemInternalId>?</ebiz:ItemInternalId>
                  <ebiz:ItemId>01-00097</ebiz:ItemId>
                  <ebiz:Name>01-00097</ebiz:Name>
                  <ebiz:Description>Wall Mounted Vent-free Gas Fireplace</ebiz:Description>
                  <ebiz:UnitPrice>20.25</ebiz:UnitPrice>
                  <ebiz:Qty>10.00</ebiz:Qty>
                  <ebiz:Taxable>true</ebiz:Taxable>
                  <ebiz:TaxRate>0</ebiz:TaxRate>
                  <ebiz:UnitOfMeasure>EA</ebiz:UnitOfMeasure>
                  <ebiz:TotalLineAmount>200.25</ebiz:TotalLineAmount>
                  <ebiz:TotalLineTax>10.00</ebiz:TotalLineTax>
                  <ebiz:ItemLineNumber>1</ebiz:ItemLineNumber>
               </ebiz:Item>
            </ebiz:Items>
            <ebiz:Software>qb</ebiz:Software>
            <ebiz:NotifyCustomer>true</ebiz:NotifyCustomer>
            <ebiz:EmailTemplateID/>
            <ebiz:URL/>
            <ebiz:TotalTaxAmount>20.25</ebiz:TotalTaxAmount>
            <ebiz:UniqueId>Sr001</ebiz:UniqueId>
            <ebiz:Description>Sales Order</ebiz:Description>
            <ebiz:BillingAddress>
               <ebiz:FirstName>Mo</ebiz:FirstName>
               <ebiz:LastName>Elhanafy</ebiz:LastName>
               <ebiz:CompanyName>CBS</ebiz:CompanyName>
               <ebiz:Address1>21 Pacifica</ebiz:Address1>
               <ebiz:Address2/>
               <ebiz:Address3/>
               <ebiz:City>Irvine</ebiz:City>
               <ebiz:State>CA</ebiz:State>
               <ebiz:ZipCode>92618</ebiz:ZipCode>
               <ebiz:Country/>
               <ebiz:IsDefault>0</ebiz:IsDefault>
               <ebiz:AddressId>?</ebiz:AddressId>
            </ebiz:BillingAddress>
            <ebiz:ShippingAddress>
               <ebiz:FirstName>Mo</ebiz:FirstName>
               <ebiz:LastName>Elhanafy</ebiz:LastName>
               <ebiz:CompanyName>CBS</ebiz:CompanyName>
               <ebiz:Address1>21 Pacifica</ebiz:Address1>
               <ebiz:Address2/>
               <ebiz:Address3/>
               <ebiz:City>Irvine</ebiz:City>
               <ebiz:State>CA</ebiz:State>
               <ebiz:ZipCode>92618</ebiz:ZipCode>
               <ebiz:Country/>
               <ebiz:IsDefault>0</ebiz:IsDefault>
               <ebiz:AddressId></ebiz:AddressId>
            </ebiz:ShippingAddress>
            <ebiz:CustomerMessage>Customer Message</ebiz:CustomerMessage>
            <ebiz:Memo>Hello memo123</ebiz:Memo>
            <ebiz:ShipDate>2019-07-08</ebiz:ShipDate>
            <ebiz:ShipVia>UPS-1</ebiz:ShipVia>
            <ebiz:SalesRepId>Jef04</ebiz:SalesRepId>
            <ebiz:TermsId>Net30</ebiz:TermsId>
            <ebiz:IsToBeEmailed>1</ebiz:IsToBeEmailed>
            <ebiz:IsToBePrinted>0</ebiz:IsToBePrinted>
         </ebiz:salesOrder>
         <ebiz:customerId>AIM</ebiz:customerId>
         <ebiz:subCustomerId/>
         <ebiz:salesOrderNumber>So106</ebiz:salesOrderNumber>
       </ebiz:UpdateSalesOrder>
   </soapenv:Body>
</soapenv:Envelope>


Response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <UpdateSalesOrderResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <UpdateSalesOrderResult>
            <SalesOrderInternalId>08bdc645-1aa2-4e1e-b02f-85e58314872f</SalesOrderInternalId>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error/>
            <ErrorCode>0</ErrorCode>
         </UpdateSalesOrderResult>
      </UpdateSalesOrderResponse>
   </s:Body>
</s:Envelope>