BackofficeApi

<back to all web services

GetSubscriptionRequest

Backoffice
Requires Authentication
Required role:Backoffice
The following routes are available for this service:
GET/subscription/get
namespace BackofficeApi

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 .other suffix or ?format=other

HTTP + OTHER

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: backoffice-api.brovs.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"subscriptions":[{"id":0,"businessId":0,"subscriptionPlanId":0,"subscriptionDetails":{"freeUntil":{},"invoice":{},"stripe":{"stripeX":"String","cardExpiresAtMonth":0,"cardExpiresAtYear":0},"freeOnClaim":{}}}]}