POST | /PurchaseSubscription |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Code | body | string | No | |
Coupon | body | string | No | |
RenewalRef | body | string | No | |
UpgradeRef | body | string | No | |
Quantity | body | int | No | |
UserAuthId | body | string | No | |
SkuId | body | int | No | |
IsSmallCompany | body | bool? | No | |
IsNonProfit | body | bool? | 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 | |
LicenseName | body | string | No | |
LicenseEmail | body | string | No | |
LicenseAddress | body | string | No | |
CardNumber | body | string | No | |
Cvc | body | string | No | |
ExpMonth | body | int | No | |
ExpYear | body | int | No | |
Notes | body | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Section | form | string | No | |
Success | form | bool | No | |
Activated | form | bool | No | |
PurchasedOrderId | form | int? | 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 /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}