PUT api/admin/RenewSubscription

Request Information

URI Parameters

None.

Body Parameters

RenewSubscriptionRequest
NameDescriptionTypeAdditional information
subscriptionId

string

None.

amount

decimal number

None.

trialEndDate

date

None.

trialStartDate

date

None.

numberOfMonths

integer

None.

invoiceMetadataNote

string

None.

Request Formats

application/json, text/json

Sample:
{
  "subscriptionId": "sample string 1",
  "amount": 2.0,
  "trialEndDate": "2024-03-28T14:32:57.8466634+00:00",
  "trialStartDate": "2024-03-28T14:32:57.8466634+00:00",
  "numberOfMonths": 5,
  "invoiceMetadataNote": "sample string 6"
}

text/html

Sample:
{"subscriptionId":"sample string 1","amount":2.0,"trialEndDate":"2024-03-28T14:32:57.8466634+00:00","trialStartDate":"2024-03-28T14:32:57.8466634+00:00","numberOfMonths":5,"invoiceMetadataNote":"sample string 6"}

application/xml, text/xml

Sample:
<RenewSubscriptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <Amount>2</Amount>
  <InvoiceMetadataNote>sample string 6</InvoiceMetadataNote>
  <NumberOfMonths>5</NumberOfMonths>
  <SubscriptionId>sample string 1</SubscriptionId>
  <TrialEndDate>2024-03-28T14:32:57.8466634+00:00</TrialEndDate>
  <TrialStartDate>2024-03-28T14:32:57.8466634+00:00</TrialStartDate>
</RenewSubscriptionRequest>

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 'RenewSubscriptionRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.