GET | /subscriptions/activate/{ExternalRef} | ||
---|---|---|---|
POST | /subscriptions/activate | ||
GET POST | /ActivateSubscription |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ExternalRef | path | string | No | |
UserAuthId | body | string | No | |
AgreeTerms | body | bool | No | |
FirstName | body | string | No | |
LastName | body | string | No | |
body | string | No | ||
Password | body | string | No | |
Company | body | string | No | |
PhoneNumber | body | string | No | |
AddressLine1 | body | string | No | |
AddressLine2 | body | string | No | |
AddressCity | body | string | No | |
AddressZip | body | string | No | |
AddressState | body | string | No | |
AddressCountry | body | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Subscription | form | Subscription | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
CustomerId | form | int | No | |
form | string | No | ||
SkuId | form | int | No | |
SkuName | form | string | No | |
SkuType | form | SkuType | No | |
Code | form | string | No | |
Quantity | form | int | No | |
SupportQuantity | form | int | No | |
Total | form | int | No | |
IsPlan | form | bool | No | |
IsRenewal | form | bool | No | |
SubscriptionDurationDays | form | int | No | |
RenewalDate | form | DateTime? | No | |
LicenseRef | form | string | No | |
LicenseName | form | string | No | |
LicenseAddress | form | string | No | |
LicenseType | form | LicenseType | No | |
ExpiryDate | form | DateTime | No | |
LicenseKey | form | LicenseKey | No | |
LicenseKeyText | form | string | No | |
CreatedDate | form | DateTime | No | |
ModifiedDate | form | DateTime | No | |
CancelledDate | form | DateTime? | No | |
StripeSubscriptionId | form | string | No | |
EmailId | form | int? | No | |
EmailRenewalId | form | int? | No | |
EmailExpiredId | form | int? | No | |
RenewalSubscriptionId | form | int? | No | |
ExternalRef | form | string | No | |
Notes | form | string | No | |
Error | form | string | No |
Product | |
PerDev | |
PerCore | |
Site | |
Support | |
Training | |
Register | |
Payment |
Free | |
FreeIndividual | |
FreeOpenSource | |
Indie | |
Business | |
Enterprise | |
TextIndie | |
TextBusiness | |
OrmLiteIndie | |
OrmLiteBusiness | |
RedisIndie | |
RedisBusiness | |
AwsIndie | |
AwsBusiness | |
Trial | |
Site | |
TextSite | |
RedisSite | |
OrmLiteSite |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Ref | form | string | No | |
Name | form | string | No | |
Type | form | LicenseType | No | |
Meta | form | long | No | |
Hash | form | string | No | |
Halg | form | string | No | |
Expiry | form | DateTime | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /subscriptions/activate HTTP/1.1
Host: account.servicestack.net
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"externalRef":"String","userAuthId":"String","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"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"subscription":{"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"}}}