GET | /User/Purchase/DecodePurchase |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Code | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Cost | form | List<MembershipProductCostDuration> | No | |
Name | form | string | No | |
Alias | form | string | No | |
MemberLevel | form | MemberLevelType | No | |
MemberLevelValue | form | int | No | |
CanBePurchased | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Token | form | string | No | |
Duration | form | MembershipProductDuration | No | |
Cost | form | MembershipProductCost | No | |
VerotelSiteCode | form | string | No | |
ProductID | form | string | No | |
ProductIDAndroid | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
DurationType | form | MembershipDurationType | No | |
Length | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
FullPrice | form | decimal | No | |
Price | form | decimal | No | |
MonthlyPrice | form | decimal | No | |
DiscountType | form | MembershipDiscountType | No | |
SiteCode | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /User/Purchase/DecodePurchase HTTP/1.1 Host: tstsrvs.redhotpie.com.au Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Cost":[{"Token":"String","Duration":{"DurationType":"Day","Length":0},"Cost":{"FullPrice":0,"Price":0,"MonthlyPrice":0,"DiscountType":"NoDiscount","SiteCode":"String"},"VerotelSiteCode":"String","ProductID":"String","ProductIDAndroid":"String"}],"Name":"String","Alias":"String","MemberLevel":"Guest","MemberLevelValue":0,"CanBePurchased":false}