ServiceStack Home (Live)

<back to all web services

GetQuote

The following routes are available for this service:
All Verbs/quote/{Id}/{Quantity}
All Verbs/quote/{Id}/{Quantity}/{Coupon}
GET/GetQuote
GET/GetQuote/{Id}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports MyApp.ServiceModel

Namespace Global

    Namespace MyApp.ServiceModel

        Public Partial Class GetQuote
            Implements IGet
            Public Overridable Property Id As Integer
            Public Overridable Property Quantity As Integer
            Public Overridable Property Coupon As String
            Public Overridable Property RenewalRef As String
            Public Overridable Property UpgradeRef As String
        End Class

        Public Partial Class QuoteResponse
            Public Overridable Property SkuId As Integer
            Public Overridable Property Code As String
            Public Overridable Property CustomerId As Integer?
            Public Overridable Property ModifyingExistingSubscription As Boolean
            Public Overridable Property ChangingSubscriptions As Boolean
            Public Overridable Property SwitchingLicensingModels As Boolean
            Public Overridable Property ReplacesExistingQuantity As Boolean
            Public Overridable Property ExistingSubscriptionQuantity As Integer?
            Public Overridable Property NewSubscriptionQuantity As Integer?
            Public Overridable Property UnusedAmount As String
            Public Overridable Property ManualProrating As Boolean
            Public Overridable Property UnusedDays As Integer
            Public Overridable Property Quantity As Integer
            Public Overridable Property MinQuantity As Integer
            Public Overridable Property MaxQuantity As Integer?
            Public Overridable Property Subtotal As String
            Public Overridable Property DiscountDescription As String
            Public Overridable Property DiscountReceived As String
            Public Overridable Property Discount As String
            Public Overridable Property Total As String
            Public Overridable Property ExpiryDate As String
            Public Overridable Property RenewalDate As String
            Public Overridable Property IsReferrer As Boolean
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET GetQuote 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 /quote/{Id}/{Quantity} HTTP/1.1 
Host: account.servicestack.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":0,"quantity":0,"coupon":"String","renewalRef":"String","upgradeRef":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}