POST api/stripe-create-subscription

Request Information

URI Parameters

None.

Body Parameters

StripeSubscriptionRequest
NameDescriptionTypeAdditional information
paymentID

integer

None.

startDate

date

None.

lengthMonths

integer

None.

paymentMethodId

string

None.

customerId

string

None.

priceId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "paymentID": 1,
  "startDate": "2021-04-19T20:14:53.9132163-04:00",
  "lengthMonths": 1,
  "paymentMethodId": "sample string 2",
  "customerId": "sample string 3",
  "priceId": "sample string 4"
}

application/xml, text/xml

Sample:
<StripeSubscriptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <customerId>sample string 3</customerId>
  <lengthMonths>1</lengthMonths>
  <paymentID>1</paymentID>
  <paymentMethodId>sample string 2</paymentMethodId>
  <priceId>sample string 4</priceId>
  <startDate>2021-04-19T20:14:53.9132163-04:00</startDate>
</StripeSubscriptionRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StripeSubscriptionRequest'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />