How can I filter by developer when retrieving a revenue report by API

Not applicable

Hi,

according to http://apigee.com/docs/monetization/content/create... I should be able to add a mint criteria to filter by developer however nothing I try works and there are no examples. My original query which works and filters just by product is:

{  
"fromDate":"2015-8-1",
"toDate":"2015-8-31",
"showTxDetail":true,
"showSummary":true,
"productIds":[  
"product1",
"product2",
],
"mintCriteria":{ 
"transactionCustomAttributes":[  
"custom-product1"]
},
"transactionTypes":[  
"CHARGE"
],
"currencyOption":"LOCAL",
"groupBy":[  
"PACKAGE",
"PRODUCT",
"DEVELOPER",
"APPLICATION"
],
"transactionCustomAttributes":[  
"custom-product1"
]
}

Based on the mint criteria documentation I tried adding in a filter for a developer into various places:

{ 
"fromDate":"2015-8-1",
"toDate":"2015-8-31",
"showTxDetail":true,
"showSummary":true,
"productIds":[ 
"product1",
"product2",
],"developerCriteria":{  
"id":"person@company.com"
},"mintCriteria":{ 
"transactionCustomAttributes":[ 
"custom-product1"]
},
"transactionTypes":[ 
"CHARGE"
],
"currencyOption":"LOCAL",
"groupBy":[ 
"PACKAGE",
"PRODUCT",
"DEVELOPER",
"APPLICATION"
],
"transactionCustomAttributes":[ 
"custom-product1"
]
}

and I also tried:

{ 
"fromDate":"2015-8-1",
"toDate":"2015-8-31",
"showTxDetail":true,
"showSummary":true,
"productIds":[ 
"product1",
"product2",
],
"mintCriteria":{ 
"developerCriteria":{ 
"id":"person@company.com"
},
"transactionCustomAttributes":[ 
"custom-product1"]
},
"transactionTypes":[ 
"CHARGE"
],
"currencyOption":"LOCAL",
"groupBy":[ 
"PACKAGE",
"PRODUCT",
"DEVELOPER",
"APPLICATION"
],
"transactionCustomAttributes":[ 
"custom-product1"
]
}

Neiter works. Would it be possible to post an example revenue report query filtering by developer.

0 1 273
1 REPLY 1

Not applicable

Hi All,

Got an answer separately as part of a support issue. Posting that response here to help anyone else who faces this issue:

It is devCriteria and the developerid not the email address:

{ "fromDate":"2015-08-01", "toDate":"2015-08-31", "showTxDetail":true, "showSummary":true, "transactionTypes":[ "PURCHASE", "CHARGE", "REFUND", "CREDIT", "SETUPFEES", "TERMINATIONFEES", "RECURRINGFEES" ], "devCriteria":[ { "id":"rFtpaAVwOSYjjQjv", "orgId":"myorg" } ], "currencyOption":"LOCAL", "groupBy":[ "PACKAGE", "PRODUCT", "DEVELOPER", "APPLICATION" ] }

The developerid could be obtained by issuing curl -X GET :

https://api.enterprise.apigee.com/v1/organizations/myorg/developers/dev@company.com

A bug has been filed against the documentation regarding devCriteria syntax.