Set commission value in API call

0
Hi - is it possible to set the value of commission in the API code? The conversion data array doesn't appear to have an option for that:

$conversion_data = array(
"name" => "Custom Order",
"component" => "com_yourcomponent",
"extended_name" => "The item name",
"type" => 1,
"value" => 100 ,
"reference_id" => 234,
"approved" => 1,
);

Also - could you please confirm what "type" => 1 refers to and and what is the purpose of specifying the component?
Responses (2)
  • Accepted Answer

    Wednesday, August 12 2015, 11:20 AM - #Permalink
    0
    Hello David,

    at the moment it's not possible to specify the comission in the API call but this is something we're adding on the next release.

    "type" => 1 refers to just an internal value, it's really not something to worry about. it is intended in case you have "more than one type of action tracked" per component. in this case you would differentiate the actions by setting a different type number.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 11 2015, 07:29 PM - #Permalink
    0
    ps - it says i am not a verified customer. But that is because my subscription expired last month as you can hopefully see from my account. If I can get this working the way i want I will happily renew. Thanks
    The reply is currently minimized Show
Your Reply