Invoice confirm
Method invoice_confirm is used for marking an outbound invoice as paid, meaning you have received payment and want to archive the invoice.
Return value
This method returns a string with the status.
Authentication
This method requires that you have registered to Maventa and received the API key.
Arguments
api_keys(required)- Invoice id string (required)
- Date string (date of payment or nil for current date, format “YYYYMMDD”)
Example code
1 require 'soap/wsdlDriver'
2
3 server = SOAP::WSDLDriverFactory.new("https://testing.maventa.com/apis/bravo/wsdl").create_rpc_driver
4
5 api_keys = Hash.new
6 api_keys[:vendor_api_key] = "" # Partner software API key
7 api_keys[:user_api_key] = "" # User API key
8 api_keys[:company_uuid] = "" # UUID of current company
9
10 puts server.invoice_confirm(api_keys, "3b24eff1-50d2-4e67-b16c-8b711e87df15", "20090917")