POST api/UserPlan

Request Information

URI Parameters

None.

Body Parameters

UserPlan
NameDescriptionTypeAdditional information
RecordNo

integer

None.

PlanFK

integer

None.

Plan

Plan

None.

AspNetUsersFK

integer

None.

StartDate

date

None.

EndDate

date

None.

TransactionId

string

None.

Status

string

None.

Currency

string

None.

ProductName

string

None.

Name

string

None.

Email

string

None.

Address

string

None.

Amount

decimal number

None.

MerchantId

string

None.

OrderNo

integer

None.

SubscriptionID

string

None.

Reason

string

None.

ReasonDescription

string

None.

Feedback

string

None.

CancelledOn

date

None.

IsCancelled

boolean

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

MockTypeFK

integer

None.

MockTestFK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "PlanFK": 2,
  "Plan": {
    "RecordNo": 1,
    "PlanName": "sample string 2",
    "Cost": 3.0,
    "Period": 4,
    "Description": "sample string 5",
    "Discount": 6.0,
    "QtrDiscount": 1.0,
    "MarkerFees": 7.0,
    "LeadMarkerFees": 8.0,
    "SortOrder": 9,
    "CreatedOn": "2024-12-21T22:44:19.6659457+00:00",
    "UpdatedOn": "2024-12-21T22:44:19.6659457+00:00",
    "IsDeleted": true
  },
  "AspNetUsersFK": 3,
  "StartDate": "2024-12-21T22:44:19.6659457+00:00",
  "EndDate": "2024-12-21T22:44:19.6659457+00:00",
  "TransactionId": "sample string 4",
  "Status": "sample string 5",
  "Currency": "sample string 6",
  "ProductName": "sample string 7",
  "Name": "sample string 8",
  "Email": "sample string 9",
  "Address": "sample string 10",
  "Amount": 11.0,
  "MerchantId": "sample string 12",
  "OrderNo": 13,
  "SubscriptionID": "sample string 14",
  "Reason": "sample string 15",
  "ReasonDescription": "sample string 16",
  "Feedback": "sample string 17",
  "CancelledOn": "2024-12-21T22:44:19.6659457+00:00",
  "IsCancelled": true,
  "CreatedOn": "2024-12-21T22:44:19.6659457+00:00",
  "UpdatedOn": "2024-12-21T22:44:19.6659457+00:00",
  "IsDeleted": true,
  "MockTypeFK": 21,
  "MockTestFK": 22
}

application/xml, text/xml

Sample:
<UserPlan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models">
  <Address>sample string 10</Address>
  <Amount>11</Amount>
  <AspNetUsersFK>3</AspNetUsersFK>
  <CancelledOn>2024-12-21T22:44:19.6659457+00:00</CancelledOn>
  <CreatedOn>2024-12-21T22:44:19.6659457+00:00</CreatedOn>
  <Currency>sample string 6</Currency>
  <Email>sample string 9</Email>
  <EndDate>2024-12-21T22:44:19.6659457+00:00</EndDate>
  <Feedback>sample string 17</Feedback>
  <IsCancelled>true</IsCancelled>
  <IsDeleted>true</IsDeleted>
  <MerchantId>sample string 12</MerchantId>
  <MockTestFK>22</MockTestFK>
  <MockTypeFK>21</MockTypeFK>
  <Name>sample string 8</Name>
  <OrderNo>13</OrderNo>
  <Plan>
    <Cost>3</Cost>
    <CreatedOn>2024-12-21T22:44:19.6659457+00:00</CreatedOn>
    <Description>sample string 5</Description>
    <Discount>6</Discount>
    <IsDeleted>true</IsDeleted>
    <LeadMarkerFees>8</LeadMarkerFees>
    <MarkerFees>7</MarkerFees>
    <Period>4</Period>
    <PlanName>sample string 2</PlanName>
    <QtrDiscount>1</QtrDiscount>
    <RecordNo>1</RecordNo>
    <SortOrder>9</SortOrder>
    <UpdatedOn>2024-12-21T22:44:19.6659457+00:00</UpdatedOn>
  </Plan>
  <PlanFK>2</PlanFK>
  <ProductName>sample string 7</ProductName>
  <Reason>sample string 15</Reason>
  <ReasonDescription>sample string 16</ReasonDescription>
  <RecordNo>1</RecordNo>
  <StartDate>2024-12-21T22:44:19.6659457+00:00</StartDate>
  <Status>sample string 5</Status>
  <SubscriptionID>sample string 14</SubscriptionID>
  <TransactionId>sample string 4</TransactionId>
  <UpdatedOn>2024-12-21T22:44:19.6659457+00:00</UpdatedOn>
</UserPlan>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.