ServiceStack Home (Live)

<back to all web services

Renew

The following routes are available for this service:
All Verbs/renew
All Verbs/Renew
Renew Parameters:
NameParameterData TypeRequiredDescription
LicenseRefquerystringNo
LicenseKeyquerystringNo
ErrorquerystringNo
RenewResponse Parameters:
NameParameterData TypeRequiredDescription
SubscriptionsformList<Subscription>No
ResponseStatusformResponseStatusNo
Subscription Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CustomerIdformintNo
EmailformstringNo
SkuIdformintNo
SkuNameformstringNo
SkuTypeformSkuTypeNo
CodeformstringNo
QuantityformintNo
SupportQuantityformintNo
TotalformintNo
IsPlanformboolNo
IsRenewalformboolNo
SubscriptionDurationDaysformintNo
RenewalDateformDateTime?No
LicenseRefformstringNo
LicenseNameformstringNo
LicenseAddressformstringNo
LicenseTypeformLicenseTypeNo
ExpiryDateformDateTimeNo
LicenseKeyformLicenseKeyNo
LicenseKeyTextformstringNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
CancelledDateformDateTime?No
StripeSubscriptionIdformstringNo
EmailIdformint?No
EmailRenewalIdformint?No
EmailExpiredIdformint?No
RenewalSubscriptionIdformint?No
ExternalRefformstringNo
NotesformstringNo
ErrorformstringNo
SkuType Enum:
Product
PerDev
PerCore
Site
Support
Training
Register
Payment
LicenseType Enum:
Free
FreeIndividual
FreeOpenSource
Indie
Business
Enterprise
TextIndie
TextBusiness
OrmLiteIndie
OrmLiteBusiness
RedisIndie
RedisBusiness
AwsIndie
AwsBusiness
Trial
Site
TextSite
RedisSite
OrmLiteSite
LicenseKey Parameters:
NameParameterData TypeRequiredDescription
RefformstringNo
NameformstringNo
TypeformLicenseTypeNo
MetaformlongNo
HashformstringNo
HalgformstringNo
ExpiryformDateTimeNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /renew HTTP/1.1 
Host: account.servicestack.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"licenseRef":"String","licenseKey":"String","error":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"subscriptions":[{"id":0,"customerId":0,"email":"String","skuId":0,"skuName":"String","skuType":"Product","code":"String","quantity":0,"supportQuantity":0,"total":0,"isPlan":false,"isRenewal":false,"subscriptionDurationDays":0,"renewalDate":"\/Date(-62135596800000-0000)\/","licenseRef":"String","licenseName":"String","licenseAddress":"String","licenseType":"Free","expiryDate":"\/Date(-62135596800000-0000)\/","licenseKey":{"ref":"String","name":"String","type":"Free","meta":0,"hash":"String","halg":"String","expiry":"\/Date(-62135596800000-0000)\/"},"licenseKeyText":"String","createdDate":"\/Date(-62135596800000-0000)\/","modifiedDate":"\/Date(-62135596800000-0000)\/","cancelledDate":"\/Date(-62135596800000-0000)\/","stripeSubscriptionId":"String","emailId":0,"emailRenewalId":0,"emailExpiredId":0,"renewalSubscriptionId":0,"externalRef":"String","notes":"String","error":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}