1,871 bytes added
, 14:58, 2 June 2014
{{Api_Method_Spec|
Description=Gets all available pricing models by [[ProductType]] and ProductId
This method has difference for logged user or note logged. If the user is logged, and try to get the [[PricingModel]] for a transactional product, it will be show the assigned pricing model. If the not-logged user try to get the pricing model for a transactional product it might return the subscription pricing model that it has been assigned.
|Parameters=
{{Api_Parameter|
ParamName=token
|ParamType=String
|ParamRequired=required
|ParamDescription=A valid token for identifying the API session context. The token can be anonymous or logged. The return will depends the business rules were used from each OB.
}}
{{Api_Parameter|
ParamName=productType
|ParamType=[[ProductType]]
|ParamRequired=required
|ParamDescription=A type of product possible in the system.
}}
{{Api_Parameter|
ParamName=productId
|ParamType=int
|ParamRequired=required
|ParamDescription=A ID of one product that wants the information about.
}}
|Returns=
Returns a JSON object containing an array of [[PricingModel]].
'''Example:'''
{
: <span style="color: #a11;">"Offset"</span>: <span style="color: #164;">0</span>,
: <span style="color: #a11;">"Limit"</span>: <span style="color: #164;">100</span>,
: <span style="color: #a11;">"Count"</span>: <span style="color: #164;">6</span>,
: <span style="color: #a11;">"List"</span>:
:: [ <span style="color: #219;">Array of [[PricingModel]] objects</span> ]
}
|Exceptions=
None
|Cache=
This method is not cached.
|KnownIssues=
None
|VersionHistory=
{{{!}} border="2" style="width:800px;" cellpadding="5" cellspacing="0"
{{!}}- style="background:#88ccff;font-size:110%"
! API Version Number
! Change description
! Changes author
{{!}}- valign="top"
! 1.0
{{!}} Initial method design
{{!}} Harley Cabral
{{!}}}
|SeeAlso=
}}