| Required role: | Business |
| GET | /subscription/get |
|---|
namespace BusinessApi
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type SubscriptionDetailsFreeUntil() =
class end
[<AllowNullLiteral>]
type SubscriptionDetailsInvoice() =
class end
[<AllowNullLiteral>]
type SubscriptionDetailsStripe() =
member val StripeX:String = null with get,set
member val CardExpiresAtMonth:Int32 = new Int32() with get,set
member val CardExpiresAtYear:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type SubscriptionDetailsFreeOnClaim() =
class end
[<AllowNullLiteral>]
type SubscriptionDetailsUnion() =
member val FreeUntil:SubscriptionDetailsFreeUntil = null with get,set
member val Invoice:SubscriptionDetailsInvoice = null with get,set
member val Stripe:SubscriptionDetailsStripe = null with get,set
member val FreeOnClaim:SubscriptionDetailsFreeOnClaim = null with get,set
F# GetSubscriptionRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /subscription/get HTTP/1.1 Host: business-api.brovs.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"subscription":[{"id":0,"businessId":0,"subscriptionPlanId":0,"subscriptionDetails":{"freeUntil":{},"invoice":{},"stripe":{"stripeX":"String","cardExpiresAtMonth":0,"cardExpiresAtYear":0},"freeOnClaim":{}}}]}