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": "2022-12-09T08:48:31.3508569+00:00",
  "trialStartDate": "2022-12-09T08:48:31.3508569+00:00",
  "numberOfMonths": 5,
  "invoiceMetadataNote": "sample string 6"
}

text/html

Sample:
{"subscriptionId":"sample string 1","amount":2.0,"trialEndDate":"2022-12-09T08:48:31.3508569+00:00","trialStartDate":"2022-12-09T08:48:31.3508569+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>2022-12-09T08:48:31.3508569+00:00</TrialEndDate>
  <TrialStartDate>2022-12-09T08:48:31.3508569+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.