Changes

Jump to navigation Jump to search
1,908 bytes added ,  13:40, 24 July 2014
Created page with "{{Api_Method_Spec| Description=Cancel product purchase by product Id Should be used by logged user. |Parameters= {{Api_Parameter| ParamName=token |ParamType=String |ParamRe..."
{{Api_Method_Spec|
Description=Cancel product purchase by product Id

Should be used by logged user.

|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.
}}
{{Api_Parameter|
ParamName=productId
|ParamType=int
|ParamRequired=required
|ParamDescription=A product id for the product that wants to cancel.
}}
{{Api_Parameter|
ParamName=productTypeId
|ParamType=productType
|ParamRequired=required
|ParamDescription=Type id of the product that wants to cancel the purchase.
}}
{{Api_Parameter|
ParamName=pin
|ParamType=String
|ParamRequired=required
|ParamDescription=PurchasePin to authenticate the purchase.
}}

|Returns=
Returns a JSON object containing a user product information.

'''Example:'''

{
: <span style="color: #a11;">"StatusCode"</span>: <span style="color: #164;">0</span>,
: <span style="color: #a11;">"Severity"</span>: <span style="color: #164;">1</span>,
: <span style="color: #a11;">"StatusMessage"</span>: <span style="color: #164;">"OK"</span>,
: <span style="color: #a11;">"Content"</span>: <span style="color: #219;">""</span>
}

|Exceptions=
* [[AuthenticationRequiredException]]
* [[UserPurchasePinValueNoMatchException]]
* [[UserHasNoRightsToThisProductException]]
* [[PurchaseNotFoundException]]
* [[NonRenewableUserRightException]]
* [[PurchaseAlreadyCancelledException]]
* [[PurchaseAlreadyInCancellingException]]
* [[PurchaseAlreadyInPendingOBCancellationException]]


|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=
}}
editor
725

edits

Navigation menu