Api ecommerce and segment

I use this pattern.

?module=API&method=Goals.getItemsName
&idSite=1
&period=day
&date=today
&format=JSON
&token_auth=xxxxxx
&segment=ProductCategory==electronic

See the bold text, I try to use the segment to filter ProductCategory in ecomerce but fail.

Thanks a lot.

Google Analytic use

filters=ga:productCategory=~electronic

but how about Piwik ?

This feature is not available yet in Piwik to segment by ecommerce product category. Please create a ticket in trac for the feature request

Thanks a lot.