PUT api/admin/RenewTksSubscription

Request Information

URI Parameters

None.

Body Parameters

RenewTksSubscriptionRequest
NameDescriptionTypeAdditional information
subscriptionId

string

None.

amount

decimal number

None.

trialEndDate

date

None.

trialStartDate

date

None.

payments

Collection of SplitPaymentModel

None.

numberOfMonths

integer

None.

invoiceMetadataNote

string

None.

Request Formats

application/json, text/json

Sample:
{
  "subscriptionId": "sample string 1",
  "amount": 2.0,
  "trialEndDate": "2024-04-19T06:41:27.0750441+00:00",
  "trialStartDate": "2024-04-19T06:41:27.0750441+00:00",
  "payments": [
    {
      "amount": 1.0,
      "paymentDate": "2024-04-19T06:41:27.0750441+00:00"
    },
    {
      "amount": 1.0,
      "paymentDate": "2024-04-19T06:41:27.0750441+00:00"
    }
  ],
  "numberOfMonths": 5,
  "invoiceMetadataNote": "sample string 6"
}

text/html

Sample:
{"subscriptionId":"sample string 1","amount":2.0,"trialEndDate":"2024-04-19T06:41:27.0750441+00:00","trialStartDate":"2024-04-19T06:41:27.0750441+00:00","payments":[{"amount":1.0,"paymentDate":"2024-04-19T06:41:27.0750441+00:00"},{"amount":1.0,"paymentDate":"2024-04-19T06:41:27.0750441+00:00"}],"numberOfMonths":5,"invoiceMetadataNote":"sample string 6"}

application/xml, text/xml

Sample:
<RenewTksSubscriptionRequest 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>
  <RemainingPayments>
    <SplitPaymentModel>
      <Amount>1</Amount>
      <PaymentDate>2024-04-19T06:41:27.0750441+00:00</PaymentDate>
    </SplitPaymentModel>
  </RemainingPayments>
  <SplitPayments>
    <SplitPaymentModel>
      <Amount>1</Amount>
      <PaymentDate>2024-04-19T06:41:27.0750441+00:00</PaymentDate>
    </SplitPaymentModel>
    <SplitPaymentModel>
      <Amount>1</Amount>
      <PaymentDate>2024-04-19T06:41:27.0750441+00:00</PaymentDate>
    </SplitPaymentModel>
  </SplitPayments>
  <TrialEndDate>2024-04-19T06:41:27.0750441+00:00</TrialEndDate>
  <TrialStartDate>2024-04-19T06:41:27.0750441+00:00</TrialStartDate>
  <SubscriptionId>sample string 1</SubscriptionId>
</RenewTksSubscriptionRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.