GetOAuthV2Info returns "Invalid API call as no apiproduct match found"

I am trying to retrieve the attributes for a RefreshToken using the GetOAuthV2Info policy below, but Apigee is returning the error “Invalid API call as no apiproduct match found”. The refresh token is definitely valid because I am able to refresh it with the RefreshAccessToken operation in a subsequent step.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetOAuthV2Info continueOnError="false" enabled="true" name="get-refresh-token">
    <DisplayName>GetRefreshToken</DisplayName>
    <RefreshToken ref="request.queryparam.refresh_token"/>
</GetOAuthV2Info>

Why am I getting this error?

1 Like

Please make sure to have API bundle associated with API Product.

operation name is missing in the policy?

Also,instead of associating uri path in the API product, include the complete proxy(if not some so).

It is associated with an API Product. Like I said the next policy I call in the flow, RefreshAccessToken works just fine. It’s only when I add in the GetOAuthV2Info policy that I get this error…