Invoice dispute
Please bear in mind that disputing invoices may lead to legal actions!
You may be looking for Invoice_decline?
Method invoice_dispute is used for disputing invoices in cases where an inbound invoice is deemed to be fraudulent. It will alert the Maventa administrators and actions will be taken.
Return value
This method returns a string with the result (“OK” or “ERROR: @error”).
Arguments
api_keys(required)- Invoice id string (required)
- Message string
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_dispute(api_keys, "00521759-4570-467c-98dd-c496b22de0bc", "Message, why invoice was disputed")