GetInvoice

Description

Syntax

Invoice GetInvoice(SecurityToken securityToken, string customerId, string subCustomerId, string invoiceNumber, string invoiceInternalId)

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

invoiceNumber

Invoice number. (required)

string

invoiceInternalId

Unique invoice ID assigned by the internal system. (required)

Return Value

Type

Description

Invoice

Returns invoice information, such as invoice amount, amount due, invoice date, and other pertinent information.

Examples

var client = new EBizSOAP.IeBizServiceClient();
EBizSOAP.SecurityToken securityToken = new EBizSOAP.SecurityToken();
securityToken.UserId = "";
securityToken.SecurityId = "1dc496d1-90b4-4a38-ad78-28a795af78e9";
securityToken.Password = "";
EBizSOAP.Invoice invoice= client.GetInvoice(securityToken, "101010", "1001", "INV4125412", "");
Console.WriteLine(invoice.InvoiceNumber);
Console.WriteLine(invoice.InvoiceDate);
Console.WriteLine(invoice.AmountDue);
Console.WriteLine(invoice.InvoiceDueDate);
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:GetInvoice>
         <ebiz:securityTokenCustomer>
            <ebiz:SecurityId>1dc496d1-90b4-4a38-ad78-28a795af78e9</ebiz:SecurityId>
            <ebiz:UserId/>
            <ebiz:Password/>
         </ebiz:securityTokenCustomer>
         <ebiz:customerId>SP0115</ebiz:customerId>
         <ebiz:subCustomerId>S01743</ebiz:subCustomerId>
         <ebiz:invoiceNumber>112008122</ebiz:invoiceNumber>
         <ebiz:invoiceInternalId/>
      </ebiz:GetInvoice>
   </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">
      <GetInvoiceResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <GetInvoiceResult>
            <CustomerId>SP0115</CustomerId>
            <SubCustomerId>S01743</SubCustomerId>
            <InvoiceNumber>113224435</InvoiceNumber>
            <InvoiceInternalId>a77a7337-dc33-4575-abf8-5440cdcc5017</InvoiceInternalId>
            <InvoiceDate>2013-01-02</InvoiceDate>
            <Currency>USD</Currency>
            <InvoiceAmount>659.9600</InvoiceAmount>
            <InvoiceDueDate>2013-02-01</InvoiceDueDate>
            <AmountDue>-3.0000</AmountDue>
            <PoNum/>
            <SoNum/>
            <DivisionId>001</DivisionId>
            <Software/>
            <NotifyCustomer>false</NotifyCustomer>
         </GetInvoiceResult>
      </GetInvoiceResponse>
   </s:Body>
</s:Envelope>