All Verbs | /quote/{Id}/{Quantity} | ||
---|---|---|---|
All Verbs | /quote/{Id}/{Quantity}/{Coupon} | ||
GET | /GetQuote | ||
GET | /GetQuote/{Id} |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | path | int | No | |
Quantity | path | int | No | |
Coupon | path | string | No | |
RenewalRef | query | string | No | |
UpgradeRef | query | string | No |
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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /quote/{Id}/{Quantity} HTTP/1.1
Host: account.servicestack.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
quantity: 0,
coupon: String,
renewalRef: String,
upgradeRef: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { 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 } } }