RHP_API

<back to all web services

GetMembershipOptions

Get all membership products for the current user.

Requires Authentication
The following routes are available for this service:
GET/Product/Membership
MembershipOptions Parameters:
NameParameterData TypeRequiredDescription
ProductsformList<MembershipProduct>No
PaymentOptionsformPaymentProvider[]No
DefaultPaymentProviderformPaymentProviderNo
AdditionalPaymentOptionsformAdditionalPaymentOptionsNo
VerotelPaymentOptionsformVerotelPaymentOptionsNo
IsPaymentAvailableformboolNo
ReturnCodeformstringNo
MessageformstringNo
UserDiscountformMembershipDiscountTypeNo
UserDiscountDetailformUserDiscountDetailNo
CurrencyformCurrencyDetailNo
PurchaseTokenformstringNo
UpgradePathformUpgradePathNo
IsStoredCardAvailableformboolNo
NonSubscriptionProductsformList<PurchaseProduct>NoDEPRECATED - CoversationCredits has been moved to ConversationCredits property.
AddCreditCardProductTokenformstringNo
ConversationCreditsformList<PurchaseProduct>No
StoreCreditsformList<PurchaseProduct>No
ProductOptionsformList<ProductOptions>No
MembershipProduct Parameters:
NameParameterData TypeRequiredDescription
CostformList<MembershipProductCostDuration>No
NameformstringNo
AliasformstringNo
MemberLevelformMemberLevelTypeNo
MemberLevelValueformintNo
CanBePurchasedformboolNo
MembershipProductCostDuration Parameters:
NameParameterData TypeRequiredDescription
TokenformstringNo
DurationformMembershipProductDurationNo
CostformMembershipProductCostNo
VerotelSiteCodeformstringNo
ProductIDformstringNo
ProductIDAndroidformstringNo
MembershipProductDuration Parameters:
NameParameterData TypeRequiredDescription
DurationTypeformMembershipDurationTypeNo
LengthformintNo
MembershipProductCost Parameters:
NameParameterData TypeRequiredDescription
FullPriceformdecimalNo
PriceformdecimalNo
MonthlyPriceformdecimalNo
DiscountTypeformMembershipDiscountTypeNo
SiteCodeformstringNo
AdditionalPaymentOptions Parameters:
NameParameterData TypeRequiredDescription
BankTransferformPaymentBankTransferNo
BPayformPaymentBPayNo
ChequeformPaymentChequeNo
CompanyDetailsformPaymentCompanyDetailsNo
PayIDformPaymentPayIDNo
PaymentBankTransfer Parameters:
NameParameterData TypeRequiredDescription
AccountNameformstringNo
BSBformstringNo
AccountNumberformstringNo
ReferenceformstringNo
PaymentBPay Parameters:
NameParameterData TypeRequiredDescription
BillerCodeformintNo
ReferenceformstringNo
PaymentCheque Parameters:
NameParameterData TypeRequiredDescription
AccountNameformstringNo
AddressformstringNo
ReferenceformstringNo
PaymentCompanyDetails Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
AddressformstringNo
PaymentPayID Parameters:
NameParameterData TypeRequiredDescription
NumberformstringNo
ReferenceformstringNo
VerotelPaymentOptions Parameters:
NameParameterData TypeRequiredDescription
LinkformstringNo
UsernameformstringNo
UserDiscountDetail Parameters:
NameParameterData TypeRequiredDescription
PercentageformintNo
CurrencyDetail Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
SymbolformstringNo
CodeformstringNo
CurrencyIDformintNo
PurchaseProduct Parameters:
NameParameterData TypeRequiredDescription
CostformProductCostNo
TokenformstringNo
NameformstringNo
CanBePurchasedformboolNo
TypeformstringNo
AppleProductformstringNo
PaymentIconformstringNo
ProductCost Parameters:
NameParameterData TypeRequiredDescription
PriceformdecimalNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Product/Membership HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Products":[{"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}],"PaymentOptions":["Verotel"],"DefaultPaymentProvider":"Verotel","AdditionalPaymentOptions":{"BankTransfer":{"AccountName":"String","BSB":"String","AccountNumber":"String","Reference":"String"},"BPay":{"BillerCode":0,"Reference":"String"},"Cheque":{"AccountName":"String","Address":"String","Reference":"String"},"CompanyDetails":{"Name":"String","Address":"String"},"PayID":{"Number":"String","Reference":"String"}},"VerotelPaymentOptions":{"Link":"String","Username":"String"},"IsPaymentAvailable":false,"ReturnCode":"String","Message":"String","UserDiscount":"NoDiscount","UserDiscountDetail":{"Percentage":0},"Currency":{"Name":"String","Symbol":"String","Code":"String","CurrencyID":0},"PurchaseToken":"String","UpgradePath":"None","IsStoredCardAvailable":false,"NonSubscriptionProducts":[{"Cost":{"Price":0},"Token":"String","Name":"String","CanBePurchased":false,"Type":"String","AppleProduct":"String","PaymentIcon":"String"}],"AddCreditCardProductToken":"String","ConversationCredits":[{"Cost":{"Price":0},"Token":"String","Name":"String","CanBePurchased":false,"Type":"String","AppleProduct":"String","PaymentIcon":"String"}],"StoreCredits":[{"Cost":{"Price":0},"Token":"String","Name":"String","CanBePurchased":false,"Type":"String","AppleProduct":"String","PaymentIcon":"String"}],"ProductOptions":["Membership"]}