BusinessApi

<back to all web services

GetSubscriptionRequest

Business
Requires Authentication
Required role:Business
The following routes are available for this service:
GET/subscription/get
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BusinessApi;

namespace BusinessApi
{
    public partial class SubscriptionDetailsFreeOnClaim
    {
    }

    public partial class SubscriptionDetailsFreeUntil
    {
    }

    public partial class SubscriptionDetailsInvoice
    {
    }

    public partial class SubscriptionDetailsStripe
    {
        public string? StripeX { get; set; }
        public int CardExpiresAtMonth { get; set; }
        public int CardExpiresAtYear { get; set; }
    }

    public partial class SubscriptionDetailsUnion
    {
        public SubscriptionDetailsFreeUntil? FreeUntil { get; set; }
        public SubscriptionDetailsInvoice? Invoice { get; set; }
        public SubscriptionDetailsStripe? Stripe { get; set; }
        public SubscriptionDetailsFreeOnClaim? FreeOnClaim { get; set; }
    }

}

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

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