ServiceStack Home (Live)

<back to all web services

AdminUncancelSubscription

Admin
Requires Authentication
Required role:Admin
The following routes are available for this service:
All Verbs/AdminUncancelSubscription
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports MyApp.ServiceInterface
Imports MyApp.ServiceModel

Namespace Global

    Namespace MyApp.ServiceInterface

        <ValidateRequest(Validator:="IsAdmin")>
        Public Partial Class AdminUncancelSubscription
            Implements IPost
            <Validate(Validator:="NotEmpty")>
            Public Overridable Property LicenseRef As String
        End Class
    End Namespace

    Namespace MyApp.ServiceModel

        Public Enum SkuType
            Product
            PerDev
            PerCore
            Site
            Support
            Training
            Register
            Payment
        End Enum

        Public Partial Class Subscription
            Public Overridable Property Id As Integer
            Public Overridable Property CustomerId As Integer
            Public Overridable Property Email As String
            Public Overridable Property SkuId As Integer
            Public Overridable Property SkuName As String
            Public Overridable Property SkuType As SkuType
            Public Overridable Property Code As String
            Public Overridable Property Quantity As Integer
            Public Overridable Property SupportQuantity As Integer
            Public Overridable Property Total As Integer
            Public Overridable Property IsPlan As Boolean
            Public Overridable Property IsRenewal As Boolean
            Public Overridable Property SubscriptionDurationDays As Integer
            Public Overridable Property RenewalDate As Date?
            Public Overridable Property LicenseRef As String
            Public Overridable Property LicenseName As String
            Public Overridable Property LicenseAddress As String
            Public Overridable Property LicenseType As LicenseType
            Public Overridable Property ExpiryDate As Date
            Public Overridable Property LicenseKey As LicenseKey
            Public Overridable Property LicenseKeyText As String
            Public Overridable Property CreatedDate As Date
            Public Overridable Property ModifiedDate As Date
            Public Overridable Property CancelledDate As Date?
            Public Overridable Property StripeSubscriptionId As String
            Public Overridable Property EmailId As Integer?
            Public Overridable Property EmailRenewalId As Integer?
            Public Overridable Property EmailExpiredId As Integer?
            Public Overridable Property RenewalSubscriptionId As Integer?
            Public Overridable Property ExternalRef As String
            Public Overridable Property Notes As String
            Public Overridable Property [Error] As String
        End Class
    End Namespace

    Namespace ServiceStack

        Public Partial Class LicenseKey
            Public Overridable Property Ref As String
            Public Overridable Property Name As String
            Public Overridable Property Type As LicenseType
            Public Overridable Property Meta As Long
            Public Overridable Property Hash As String
            Public Overridable Property Halg As String
            Public Overridable Property Expiry As Date
        End Class

        Public Enum LicenseType
            Free
            FreeIndividual
            FreeOpenSource
            Indie
            Business
            Enterprise
            TextIndie
            TextBusiness
            OrmLiteIndie
            OrmLiteBusiness
            RedisIndie
            RedisBusiness
            AwsIndie
            AwsBusiness
            Trial
            Site
            TextSite
            RedisSite
            OrmLiteSite
        End Enum
    End Namespace
End Namespace

VB.NET AdminUncancelSubscription DTOs

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 /AdminUncancelSubscription HTTP/1.1 
Host: account.servicestack.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

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

{"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"}