Invoice revoke

Method invoice_revoke is used for sending invoice credit-note.

Return value(s)

This method returns return code as a string.

Authentication

This method requires that you have registered to Maventa and received the API key.

Arguments

  1. api_keys (required)
  2. Invoice id string (required)

Example code

 1 require 'soap/wsdlDriver'
 2 
 3 serv = SOAP::WSDLDriverFactory.new("https://secure.maventa.com/api/wsdl").create_rpc_driver
 4 
 5 begin 
 6   api_keys = Hash.new
 7   api_keys[:vendor_api_key] = "" # If you are software vendor, you shall put here API-key for this application
 8   api_keys[:user_api_key] = "" # Put here your API key
 9   api_keys[:company_uuid] = "" # Put here UUID of the Company you are acting for
10 
11   # Create a credit-note (minus invoice)
12   result = serv.invoice_revoke(api_keys, "Invoice ID")
13   puts result
14 
15 rescue Exception => ex 
16   puts ex
17 end

Also available in: HTML TXT