Hey All,
I’m trying to add a record to come up in this screen.
From my understanding (please note that I’m new to InfusionSoft (IS) API), I need to create an Order.
To create an Order , I will have to use the Create Order XML-RPC endpoint.
My app is using ruby/rails and I’m trying to do this with ruby.
From my understanding, currently this is not supposed by the infusionsoft ruby gem, so , I’ve checked the ruby example given and followed the example given
This was my first attempt
key = '<Secret Key>'
server = XMLRPC::Client.new2("https://lr300.infusionsoft.com:443/api/xmlrpc")
order = {
"contactID" => 232,
"cardID" => 0,
"productIDs" => ["2"],
"subscriptionIDs" => [],
"processSpecials" => false,
"promoCodes" => [],
"leadAffiliateID" => 4,
"saleAffiliateID" => 0
}
result = server.call("OrderService.placeOrder", key, order)
and I get the following error from the API
XMLRPC::FaultException: No method matching arguments: java.lang.String, java.util.HashMap
This is my second attempt
# same code as above but the call is different
result = server.call("OrderService.placeOrder", <key>, 232, 0, 0, [2], [], 0, [], 4, 0)
and I got
XMLRPC::FaultException: No method matching arguments: java.lang.String, java.util.HashMap
Can I get a help on what is this error means and how can I resolve this.
PS: I couldn’t find any document relating the error codes we are getting etc…
Thanks in advance