POST api/MedAidMembership/Save

Request Information

URI Parameters

None.

Body Parameters

MedAidMembershipSaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

RenewDate

string

Required

SubscriptionType

MedAidSubscrTypeLookupVM

Required

BookType

AccountBookTypeLookup

Required

Period

MedAidPeriodLookupVM

Required

Category

MedAidCategoryLookupVM

Required

Member

MedAidMemberLookupVM

Required

Type

MedAidTypeLookupVM

Required

MedAidFrom

string

None.

SubscriptionStatus

MedAidSubscrStatusLookupVM

Required

Status

string

Required

Matching regular expression pattern: A|C

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "RenewDate": "sample string 2",
  "SubscriptionType": {
    "SubscriptionTypeId": 1,
    "SubscriptionTypeName": "sample string 2"
  },
  "BookType": {
    "BookTypeId": 1,
    "BookTypeName": "sample string 2"
  },
  "Period": {
    "PeriodId": 1,
    "PeriodName": "sample string 2"
  },
  "Category": {
    "CategoryId": 1,
    "CategoryName": "sample string 2"
  },
  "Member": {
    "MemberId": 1,
    "MemberName": "sample string 2",
    "MemberCode": "sample string 3",
    "Type": {
      "TypeId": 1,
      "TypeName": "sample string 2"
    },
    "Category": {
      "CategoryId": 1,
      "CategoryName": "sample string 2"
    },
    "AccountBookTypeById": 4
  },
  "Type": {
    "TypeId": 1,
    "TypeName": "sample string 2"
  },
  "MedAidFrom": "sample string 3",
  "SubscriptionStatus": {
    "SubscriptionStatusId": 1,
    "SubscriptionStatusName": "sample string 2"
  },
  "Status": "sample string 4",
  "CreateUser": 5,
  "CreateIp": "sample string 6"
}

application/xml, text/xml

Sample:
<MedAidMembershipSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BookId>1</BookId>
  <BookType>
    <BookTypeId>1</BookTypeId>
    <BookTypeName>sample string 2</BookTypeName>
  </BookType>
  <Category>
    <CategoryId>1</CategoryId>
    <CategoryName>sample string 2</CategoryName>
  </Category>
  <CreateIp>sample string 6</CreateIp>
  <CreateUser>5</CreateUser>
  <MedAidFrom>sample string 3</MedAidFrom>
  <Member>
    <AccountBookTypeById>4</AccountBookTypeById>
    <Category>
      <CategoryId>1</CategoryId>
      <CategoryName>sample string 2</CategoryName>
    </Category>
    <MemberCode>sample string 3</MemberCode>
    <MemberId>1</MemberId>
    <MemberName>sample string 2</MemberName>
    <Type>
      <TypeId>1</TypeId>
      <TypeName>sample string 2</TypeName>
    </Type>
  </Member>
  <Period>
    <PeriodId>1</PeriodId>
    <PeriodName>sample string 2</PeriodName>
  </Period>
  <RenewDate>sample string 2</RenewDate>
  <Status>sample string 4</Status>
  <SubscriptionStatus>
    <SubscriptionStatusId>1</SubscriptionStatusId>
    <SubscriptionStatusName>sample string 2</SubscriptionStatusName>
  </SubscriptionStatus>
  <SubscriptionType>
    <SubscriptionTypeId>1</SubscriptionTypeId>
    <SubscriptionTypeName>sample string 2</SubscriptionTypeName>
  </SubscriptionType>
  <Type>
    <TypeId>1</TypeId>
    <TypeName>sample string 2</TypeName>
  </Type>
</MedAidMembershipSaveVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.