GET | /Product/Membership |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Products | form | List<MembershipProduct> | No | |
PaymentOptions | form | PaymentProvider[] | No | |
DefaultPaymentProvider | form | PaymentProvider | No | |
AdditionalPaymentOptions | form | AdditionalPaymentOptions | No | |
VerotelPaymentOptions | form | VerotelPaymentOptions | No | |
IsPaymentAvailable | form | bool | No | |
ReturnCode | form | string | No | |
Message | form | string | No | |
UserDiscount | form | MembershipDiscountType | No | |
UserDiscountDetail | form | UserDiscountDetail | No | |
Currency | form | CurrencyDetail | No | |
PurchaseToken | form | string | No | |
UpgradePath | form | UpgradePath | No | |
IsStoredCardAvailable | form | bool | No | |
NonSubscriptionProducts | form | List<PurchaseProduct> | No | DEPRECATED - CoversationCredits has been moved to ConversationCredits property. |
AddCreditCardProductToken | form | string | No | |
ConversationCredits | form | List<PurchaseProduct> | No | |
StoreCredits | form | List<PurchaseProduct> | No | |
ProductOptions | form | List<ProductOptions> | 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 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BankTransfer | form | PaymentBankTransfer | No | |
BPay | form | PaymentBPay | No | |
Cheque | form | PaymentCheque | No | |
CompanyDetails | form | PaymentCompanyDetails | No | |
PayID | form | PaymentPayID | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AccountName | form | string | No | |
BSB | form | string | No | |
AccountNumber | form | string | No | |
Reference | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BillerCode | form | int | No | |
Reference | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AccountName | form | string | No | |
Address | form | string | No | |
Reference | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Address | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Number | form | string | No | |
Reference | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Link | form | string | No | |
Username | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Percentage | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Symbol | form | string | No | |
Code | form | string | No | |
CurrencyID | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Cost | form | ProductCost | No | |
Token | form | string | No | |
Name | form | string | No | |
CanBePurchased | form | bool | No | |
Type | form | string | No | |
AppleProduct | form | string | No | |
PaymentIcon | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Price | form | decimal | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK Content-Type: text/jsv 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 ] }