AddSalesOrder

Description

Adding a new sales order to EBizCharge Connect.

Syntax

SalesOrderResponse AddSalesOrder(SecurityToken securityToken , SalesOrder salesOrder).

Arguments

Type

Name

Description

SecurityToken

securityToken

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

SalesOrder

salesOrder

Includes sales order information, unique internal sales order ID assigned by EBizCharge, and sales order number. (required)

Return Value

Type

Description

SalesOrderResponse

Returns result of AddSalesOrder request.

Examples

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:AddSalesOrder>
         <ebiz:securityToken>
            <ebiz:SecurityId>qd6105a-1906-4be3-b01d-e5d6cd68120c</ebiz:SecurityId>
            <ebiz:UserId>id1</ebiz:UserId>
            <ebiz:Password>pass1</ebiz:Password>
         </ebiz:securityToken>
         <ebiz:salesOrder>
            <ebiz:CustomerId>AIM</ebiz:CustomerId>
            <ebiz:SubCustomerId/>
            <ebiz:SalesOrderNumber>So107</ebiz:SalesOrderNumber>
            <ebiz:Date>2019-07-01</ebiz:Date>
            <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:Items>
               <ebiz:Item>
                  <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:Item>
                  <ebiz:ItemId>01-00098</ebiz:ItemId>
                  <ebiz:Name>01-00099</ebiz:Name>
                  <ebiz:Description>TV</ebiz:Description>
                  <ebiz:UnitPrice>2000.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>2000.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>Hello</ebiz:CustomerMessage>
            <ebiz:Memo>Hello</ebiz:Memo>
            <ebiz:ShipDate>2019-07-08</ebiz:ShipDate>
            <ebiz:ShipVia>USPS</ebiz:ShipVia>
            <ebiz:SalesRepId>Jef04</ebiz:SalesRepId>
            <ebiz:TermsId>Net30</ebiz:TermsId>
            <ebiz:IsToBeEmailed>0</ebiz:IsToBeEmailed>
            <ebiz:IsToBePrinted>0</ebiz:IsToBePrinted>
         </ebiz:salesOrder>
      </ebiz:AddSalesOrder>
   </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">
      <AddSalesOrderResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <AddSalesOrderResult>
            <SalesOrderInternalId>5301b691-56d6-45e3-a7e1-21217917666a</SalesOrderInternalId>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error/>
            <ErrorCode>0</ErrorCode>
         </AddSalesOrderResult>
      </AddSalesOrderResponse>
   </s:Body>
</s:Envelope>