Difference between revisions of "CreatePurchase"

From Gvp-public
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
{{Api_Parameter|
 
{{Api_Parameter|
 
ParamName=productType
 
ParamName=productType
|ParamType=int
+
|ParamType=[[ProductType]]
 
|ParamRequired=required
 
|ParamRequired=required
 
|ParamDescription=This use case deals with subscriptions.
 
|ParamDescription=This use case deals with subscriptions.
Line 51: Line 51:
 
|ParamRequired=required
 
|ParamRequired=required
 
|ParamDescription=This parameter makes sense only with paypal an ewallet payment methods.
 
|ParamDescription=This parameter makes sense only with paypal an ewallet payment methods.
 +
}}
 +
'''NEW IN 8.2!'''
 +
{{Api_Parameter|
 +
ParamName=TrackId
 +
|ParamType=String
 +
|ParamRequired=optional
 +
|ParamDescription=Recommendation Id
 +
}}
 +
{{Api_Parameter|
 +
ParamName=UxReference
 +
|ParamType=String
 +
|ParamRequired=optional
 +
|ParamDescription=Recommendation Reference
 
}}
 
}}
  

Latest revision as of 13:08, 10 August 2020

Description

Create a purchase for product

Parameters

  • token (String, required)
A valid token for identifying the API session context and logged user.
  • productId (int, required)
Product Id of the subscription to be purchased
This use case deals with subscriptions.
  • pricingModelId (int, required)
PricingModel Id
  • pin (String, required)
User purchase PIN
  • returnURL (String, required)
This parameter makes sense only with paypal an ewallet payment methods.
  • cancelURL (String, required)
This parameter makes sense only with paypal an ewallet payment methods.

NEW IN 8.2!

  • TrackId (String, optional)
Recommendation Id
  • UxReference (String, optional)
Recommendation Reference


Returns

Returns a JSON with a PurchaseResponse object containing information that Purchase has been created with success.

Example:

{

"Offset": 0,
"Limit": 100,
"Count": 6,
"Content": [
PurchaseResponse object
]

}


Exceptions


Caching

This method is not cached.


Known issues

None


Version history

API Version Number Change description Changes author
1.0 Initial method design Harley Cabral
3.2 Enabled TVOD purchase of Series Pedro Caamaño


See also