ServiceStack Home (Live)

<back to all web services

PurchaseSubscription

The following routes are available for this service:
POST/PurchaseSubscription
PurchaseSubscription Parameters:
NameParameterData TypeRequiredDescription
CodebodystringNo
CouponbodystringNo
RenewalRefbodystringNo
UpgradeRefbodystringNo
QuantitybodyintNo
UserAuthIdbodystringNo
SkuIdbodyintNo
IsSmallCompanybodybool?No
IsNonProfitbodybool?No
AgreeTermsbodyboolNo
FirstNamebodystringNo
LastNamebodystringNo
EmailbodystringNo
PasswordbodystringNo
CompanybodystringNo
PhoneNumberbodystringNo
AddressLine1bodystringNo
AddressLine2bodystringNo
AddressCitybodystringNo
AddressZipbodystringNo
AddressStatebodystringNo
AddressCountrybodystringNo
LicenseNamebodystringNo
LicenseEmailbodystringNo
LicenseAddressbodystringNo
CardNumberbodystringNo
CvcbodystringNo
ExpMonthbodyintNo
ExpYearbodyintNo
NotesbodystringNo
Subscriptions Parameters:
NameParameterData TypeRequiredDescription
SectionformstringNo
SuccessformboolNo
ActivatedformboolNo
PurchasedOrderIdformint?No

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

HTTP + OTHER

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

POST /PurchaseSubscription HTTP/1.1 
Host: account.servicestack.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"code":"String","coupon":"String","renewalRef":"String","upgradeRef":"String","quantity":0,"userAuthId":"String","skuId":0,"isSmallCompany":false,"isNonProfit":false,"agreeTerms":false,"firstName":"String","lastName":"String","email":"String","password":"String","company":"String","phoneNumber":"String","addressLine1":"String","addressLine2":"String","addressCity":"String","addressZip":"String","addressState":"String","addressCountry":"String","licenseName":"String","licenseEmail":"String","licenseAddress":"String","cardNumber":"String","cvc":"String","expMonth":0,"expYear":0,"notes":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"section":"String","success":false,"activated":false,"purchasedOrderId":0}