Forum Discussion

PMatwyuk's avatar
PMatwyuk
Copper Contributor
May 08, 2019

System.NotSupportedException thrown when refferencing Azure Marketplace Store Charge API.

Hey everyone getting the following error when I call "https://consumption.azure.com:443/v3/enrollments/$enrollmentNo/marketplacechargesbycustomdate?startTime=$startTime&endTime=$endTime"

 

It works fine though when I call the usagedetailsbycustomdate API.


2019-05-07T14:33:45.726 [Info] Exception at line 21 message: System.NotSupportedException: Specified method is not supported.    at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)

 

Any thoughts or suggestions are greatly appreciated.

  • Jarmo Haaranen's avatar
    Jarmo Haaranen
    Copper Contributor

    Hi PMatwyuk

     

    marketplacechargesbycustomdate startDate and endDate data type is DateTime "Sortable DateTime pattern ISO-8601" and in usagedetailsbycustomdate  startDate and endDate data type is string

Resources