All Verbs | /buy/{Id} | ||
---|---|---|---|
GET | /Buy/{Id} | ||
All Verbs | /buy/{Id}/{Quantity} | ||
GET | /Buy |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | path | string | No | |
Coupon | query | string | No | |
Quantity | path | int? | No | |
RenewalRef | query | string | No | |
UpgradeRef | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Coupon | form | string | No | |
RenewalRef | form | string | No | |
UpgradeRef | form | string | No | |
Sku | form | Sku | No | |
Quote | form | QuoteResponse | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
ProductId | form | int | No | |
Type | form | SkuType | No | |
Feature | form | LicenseFeature | No | |
Code | form | string | No | |
Name | form | string | No | |
Notes | form | string | No | |
MinQty | form | int? | No | |
MaxQty | form | int? | No | |
Price | form | int | No | |
Plan | form | string | No | |
DiscountOff | form | int | No | |
DiscountLabelOff | form | string | No | |
ActualPrice | form | int | No | |
IsPlan | form | bool | No | |
IsRenewal | form | bool | No | |
SubscriptionDurationDays | form | int? | No | |
ExpiryDurationDays | form | int? | No | |
TrialPeriodDays | form | int? | No | |
SupportQty | form | int | No | |
CoresQty | form | int? | No | |
CreatedDate | form | DateTime | No | |
ModifiedDate | form | DateTime | No | |
LicenseType | form | LicenseType | No | |
Active | form | bool | No |
Product | |
PerDev | |
PerCore | |
Site | |
Support | |
Training | |
Register | |
Payment |
Name | Value | |
---|---|---|
None | 0 | |
Free | 0 | |
Premium | 1 | |
Text | 2 | |
Client | 4 | |
Common | 8 | |
Redis | 16 | |
RedisSku | 18 | |
OrmLite | 32 | |
OrmLiteSku | 34 | |
ServiceStack | 64 | |
Server | 128 | |
Razor | 256 | |
Admin | 512 | |
Aws | 1024 | |
AwsSku | 1026 | |
All | 2047 |
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 |
---|---|---|---|---|
SkuId | form | int | No | |
Code | form | string | No | |
CustomerId | form | int? | No | |
ModifyingExistingSubscription | form | bool | No | |
ChangingSubscriptions | form | bool | No | |
SwitchingLicensingModels | form | bool | No | |
ReplacesExistingQuantity | form | bool | No | |
ExistingSubscriptionQuantity | form | int? | No | |
NewSubscriptionQuantity | form | int? | No | |
UnusedAmount | form | string | No | |
ManualProrating | form | bool | No | |
UnusedDays | form | int | No | |
Quantity | form | int | No | |
MinQuantity | form | int | No | |
MaxQuantity | form | int? | No | |
Subtotal | form | string | No | |
DiscountDescription | form | string | No | |
DiscountReceived | form | string | No | |
Discount | form | string | No | |
Total | form | string | No | |
ExpiryDate | form | string | No | |
RenewalDate | form | string | No | |
IsReferrer | form | bool | No | |
ResponseStatus | form | ResponseStatus | 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 /buy/{Id} HTTP/1.1
Host: account.servicestack.net
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"String","coupon":"String","quantity":0,"renewalRef":"String","upgradeRef":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"coupon":"String","renewalRef":"String","upgradeRef":"String","sku":{"id":0,"productId":0,"type":"Product","feature":0,"code":"String","name":"String","notes":"String","maxQty":0,"price":0,"plan":"String","discountOff":0,"discountLabelOff":"String","actualPrice":0,"isPlan":false,"isRenewal":false,"subscriptionDurationDays":0,"expiryDurationDays":0,"trialPeriodDays":0,"supportQty":0,"coresQty":0,"createdDate":"\/Date(-62135596800000-0000)\/","modifiedDate":"\/Date(-62135596800000-0000)\/","licenseType":"Free","active":false},"quote":{"skuId":0,"code":"String","customerId":0,"modifyingExistingSubscription":false,"changingSubscriptions":false,"switchingLicensingModels":false,"replacesExistingQuantity":false,"existingSubscriptionQuantity":0,"newSubscriptionQuantity":0,"unusedAmount":"String","manualProrating":false,"unusedDays":0,"quantity":0,"minQuantity":0,"maxQuantity":0,"subtotal":"String","discountDescription":"String","discountReceived":"String","discount":"String","total":"String","expiryDate":"String","renewalDate":"String","isReferrer":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}