BackofficeApi

<back to all web services

GetSubscriptionRequest

Backoffice
Requires Authentication
Required role:Backoffice
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 BackofficeApi;

namespace BackofficeApi
{
    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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSubscriptionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BackofficeApi.Dto">
  <Subscriptions>
    <SubscriptionDto>
      <BusinessId>0</BusinessId>
      <Id>0</Id>
      <SubscriptionDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/Entities.Common">
        <d4p1:FreeOnClaim />
        <d4p1:FreeUntil />
        <d4p1:Invoice />
        <d4p1:Stripe>
          <d4p1:CardExpiresAtMonth>0</d4p1:CardExpiresAtMonth>
          <d4p1:CardExpiresAtYear>0</d4p1:CardExpiresAtYear>
          <d4p1:StripeX>String</d4p1:StripeX>
        </d4p1:Stripe>
      </SubscriptionDetails>
      <SubscriptionPlanId>0</SubscriptionPlanId>
    </SubscriptionDto>
  </Subscriptions>
</GetSubscriptionResponse>