UpdateInvoice

Description

Update an existing invoice.

Syntax

InvoiceResponse UpdateInvoice(SecurityToken securityToken, Invoice invoice, 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)

Invoice

invoice

Includes invoice information, such as invoice number, invoice date, and items. (required)

string

customerId

Customer ID. (required)

string

subCustomerId

Sub-customer ID. (optional)

string

invoiceNumber

Invoice number. (required)

string

invoiceInternalId

Unique invoice ID assigned by EBizCharge. (required)

Return Value

Type

Description

InvoiceResponse

Returns result of UpdateInvoice request.

Examples

var client = new IeBizServiceClient();
SecurityToken securityToken = new SecurityToken();

securityToken.UserId = "";
securityToken.SecurityId = "1dc496d1-90b4-4a38-ad78-28a795af78e7";
securityToken.Password = "";

 Invoice invoice = new Invoice();
 invoice.CustomerId = "C-E&000002"; 
 invoice.InvoiceNumber = "00102565";
 invoice.InvoiceDate = "04/02/2016";
 invoice.InvoiceDueDate = "08/12/2016";
 invoice.InvoiceAmount = (decimal)2000.45;
 invoice.AmountDue = (decimal)200.45;
 invoice.DivisionId = "001";
 InvoiceResponse Response = client.UpdateInvoice(securityToken, invoice, "C-E&000002", "10001-1", "INV001", "");

Console.WriteLine(Response.Status);
Console.WriteLine(Response.StatusCode);
Console.WriteLine(Response.Error);
Console.WriteLine(Response.ErrorCode);
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:UpdateInvoice>
         <ebiz:securityToken>
            <ebiz:SecurityId>1dc496d1-90b4-4a38-ad78-28a795af78e9</ebiz:SecurityId>
            <ebiz:UserId></ebiz:UserId>
            <ebiz:Password></ebiz:Password>
         </ebiz:securityToken>
         <ebiz:invoice>
            <ebiz:CustomerId>SP0115</ebiz:CustomerId>
            <ebiz:SubCustomerId>a10.1</ebiz:SubCustomerId>
            <ebiz:InvoiceNumber>112008122-1</ebiz:InvoiceNumber>
            <ebiz:InvoiceDate>1/21/2013</ebiz:InvoiceDate>
            <ebiz:Currency>USD</ebiz:Currency>
            <ebiz:InvoiceAmount>1000.00</ebiz:InvoiceAmount>
            <ebiz:InvoiceDueDate>2018-10-2</ebiz:InvoiceDueDate>
            <ebiz:AmountDue>800.50</ebiz:AmountDue>
            <ebiz:PoNum>po001</ebiz:PoNum>
            <ebiz:SoNum>so001</ebiz:SoNum>
            <ebiz:DivisionId>001</ebiz:DivisionId>
            <ebiz:TypeId>01</ebiz:TypeId>
         </ebiz:invoice>
         <ebiz:customerId>SP0115</ebiz:customerId>
         <ebiz:subCustomerId>S01743</ebiz:subCustomerId>
         <ebiz:invoiceNumber>112008122-1</ebiz:invoiceNumber>
         <ebiz:invoiceInternalId/>
      </ebiz:UpdateInvoice>
   </soapenv:Body>
</soapenv:Envelope>