Difference between revisions of "CreatePurchase"
Jump to navigation
Jump to search
(Created page with "{{Api_Method_Spec| Description=Create a purchase for product |Parameters= {{Api_Parameter| ParamName=token |ParamType=String |ParamRequired=required |ParamDescription=A valid t...") |
|||
Line 30: | Line 30: | ||
{{Api_Parameter| | {{Api_Parameter| | ||
ParamName=paymentType | ParamName=paymentType | ||
− | |ParamType=PaymentType | + | |ParamType=[[PaymentType]] |
|ParamRequired=required | |ParamRequired=required | ||
|ParamDescription= | |ParamDescription= |
Revision as of 12:42, 4 June 2014
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)
- productType (int, required)
- pricingModelId (int, required)
- paymentType (PaymentType, required)
- pin (String, required)
- returnURL (String, required)
- cancelURL (String, required)
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 |