POST api/CharityPayment/Save

Request Information

URI Parameters

None.

Body Parameters

CharityPaymentSaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

FinYearId

integer

Required

PymntDate

string

Required

PymntRefNo

string

Required

String length: inclusive between 0 and 30

Approval

CharityApprovalLookupVM

None.

PymntRemark

string

String length: inclusive between 0 and 1000

PymntAmount

decimal number

Required

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

PaymentMode

string

Matching regular expression pattern: D|T

String length: inclusive between 0 and 1

Diocese

EstablishmentLookup

None.

PaymentType

string

Matching regular expression pattern: B|C

String length: inclusive between 0 and 1

StageDetails

Collection of CharityPaymentStagesDtlsVM

Required

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "FinYearId": 2,
  "PymntDate": "sample string 3",
  "PymntRefNo": "sample string 4",
  "Approval": {
    "ApprovalId": 1,
    "AprovlDate": "sample string 2",
    "AprovlRefNo": "sample string 3",
    "Project": {
      "ProjectId": 1,
      "ProjectName": "sample string 2",
      "ProjectType": {
        "ProjectTypeId": 1,
        "ProjectTypeName": "sample string 2"
      }
    },
    "Application": {
      "ApplicationId": 1,
      "ApplDate": "sample string 2",
      "ApplRefNo": "sample string 3",
      "SubTypeRefNo": "sample string 4",
      "ProjectSubType": {
        "SubTypeId": 1,
        "SubTypeName": "sample string 2"
      },
      "Prefix": {
        "PrefixId": 1,
        "PrefixName": "sample string 2"
      },
      "AplcntName": "sample string 5",
      "AplcntAddress": "sample string 6",
      "AplcntMobileNo": 7,
      "AplcntRationCardNo": "sample string 8",
      "AplcntAge": 9,
      "AplcntGender": "sample string 10",
      "Diocese": {
        "EstablishId": 1,
        "EstablishName": "sample string 2",
        "EstablishType": {
          "EstablishTypeId": 1,
          "EstablishTypeName": "sample string 2"
        },
        "EstablishCategory": {
          "EstablishCategoryId": 1,
          "EstablishCategoryName": "sample string 2"
        },
        "TotalMembers": 3,
        "TotalHouses": 4
      },
      "Parish": {
        "EstablishId": 1,
        "EstablishName": "sample string 2",
        "EstablishType": {
          "EstablishTypeId": 1,
          "EstablishTypeName": "sample string 2"
        },
        "EstablishCategory": {
          "EstablishCategoryId": 1,
          "EstablishCategoryName": "sample string 2"
        },
        "TotalMembers": 3,
        "TotalHouses": 4
      },
      "Clergy": {
        "ClergyId": 1,
        "ClergyName": "sample string 2",
        "Prefix": {
          "PrefixId": 1,
          "PrefixName": "sample string 2"
        },
        "Address": "sample string 3",
        "ClergyStatus": "sample string 4",
        "DOB": "sample string 5",
        "DeaconDate": "sample string 6",
        "ClergyCategoryId": 7,
        "ClergyTypeId": 8
      },
      "Occupation": {
        "OccupationId": 1,
        "OccupationName": "sample string 2"
      },
      "AplcntMonthlyIncome": 11.0,
      "PreviousHelpSts": "sample string 12"
    },
    "ApprovalCommitte": {
      "AprovlCommitteeId": 1,
      "AprovlCommitteeName": "sample string 2"
    },
    "AprovlAmount": 4.0,
    "AprovlStageNos": 5
  },
  "PymntRemark": "sample string 5",
  "PymntAmount": 6.0,
  "CreateUser": 7,
  "CreateIp": "sample string 8",
  "PaymentMode": "sample string 9",
  "Diocese": {
    "EstablishId": 1,
    "EstablishName": "sample string 2",
    "EstablishType": {
      "EstablishTypeId": 1,
      "EstablishTypeName": "sample string 2"
    },
    "EstablishCategory": {
      "EstablishCategoryId": 1,
      "EstablishCategoryName": "sample string 2"
    },
    "TotalMembers": 3,
    "TotalHouses": 4
  },
  "PaymentType": "sample string 10",
  "StageDetails": [
    {
      "SlNo": 1,
      "OrderBySlNo": 2,
      "ApprovedStage": {
        "SlNo": 1,
        "OrderBySlNo": 2,
        "StageDate": "sample string 3",
        "StageAmount": 4.0,
        "StageRemark": "sample string 5"
      },
      "PymntStageRemark": "sample string 3",
      "StageDate": "sample string 4"
    },
    {
      "SlNo": 1,
      "OrderBySlNo": 2,
      "ApprovedStage": {
        "SlNo": 1,
        "OrderBySlNo": 2,
        "StageDate": "sample string 3",
        "StageAmount": 4.0,
        "StageRemark": "sample string 5"
      },
      "PymntStageRemark": "sample string 3",
      "StageDate": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<CharityPaymentSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Approval>
    <Application>
      <AplcntAddress>sample string 6</AplcntAddress>
      <AplcntAge>9</AplcntAge>
      <AplcntGender>sample string 10</AplcntGender>
      <AplcntMobileNo>7</AplcntMobileNo>
      <AplcntMonthlyIncome>11</AplcntMonthlyIncome>
      <AplcntName>sample string 5</AplcntName>
      <AplcntRationCardNo>sample string 8</AplcntRationCardNo>
      <ApplDate>sample string 2</ApplDate>
      <ApplRefNo>sample string 3</ApplRefNo>
      <ApplicationId>1</ApplicationId>
      <Clergy>
        <Address>sample string 3</Address>
        <ClergyCategoryId>7</ClergyCategoryId>
        <ClergyId>1</ClergyId>
        <ClergyName>sample string 2</ClergyName>
        <ClergyStatus>sample string 4</ClergyStatus>
        <ClergyTypeId>8</ClergyTypeId>
        <DOB>sample string 5</DOB>
        <DeaconDate>sample string 6</DeaconDate>
        <Prefix>
          <PrefixId>1</PrefixId>
          <PrefixName>sample string 2</PrefixName>
        </Prefix>
      </Clergy>
      <Diocese>
        <EstablishCategory>
          <EstablishCategoryId>1</EstablishCategoryId>
          <EstablishCategoryName>sample string 2</EstablishCategoryName>
        </EstablishCategory>
        <EstablishId>1</EstablishId>
        <EstablishName>sample string 2</EstablishName>
        <EstablishType>
          <EstablishTypeId>1</EstablishTypeId>
          <EstablishTypeName>sample string 2</EstablishTypeName>
        </EstablishType>
        <TotalHouses>4</TotalHouses>
        <TotalMembers>3</TotalMembers>
      </Diocese>
      <Occupation>
        <OccupationId>1</OccupationId>
        <OccupationName>sample string 2</OccupationName>
      </Occupation>
      <Parish>
        <EstablishCategory>
          <EstablishCategoryId>1</EstablishCategoryId>
          <EstablishCategoryName>sample string 2</EstablishCategoryName>
        </EstablishCategory>
        <EstablishId>1</EstablishId>
        <EstablishName>sample string 2</EstablishName>
        <EstablishType>
          <EstablishTypeId>1</EstablishTypeId>
          <EstablishTypeName>sample string 2</EstablishTypeName>
        </EstablishType>
        <TotalHouses>4</TotalHouses>
        <TotalMembers>3</TotalMembers>
      </Parish>
      <Prefix>
        <PrefixId>1</PrefixId>
        <PrefixName>sample string 2</PrefixName>
      </Prefix>
      <PreviousHelpSts>sample string 12</PreviousHelpSts>
      <ProjectSubType>
        <SubTypeId>1</SubTypeId>
        <SubTypeName>sample string 2</SubTypeName>
      </ProjectSubType>
      <SubTypeRefNo>sample string 4</SubTypeRefNo>
    </Application>
    <ApprovalCommitte>
      <AprovlCommitteeId>1</AprovlCommitteeId>
      <AprovlCommitteeName>sample string 2</AprovlCommitteeName>
    </ApprovalCommitte>
    <ApprovalId>1</ApprovalId>
    <AprovlAmount>4</AprovlAmount>
    <AprovlDate>sample string 2</AprovlDate>
    <AprovlRefNo>sample string 3</AprovlRefNo>
    <AprovlStageNos>5</AprovlStageNos>
    <Project>
      <ProjectId>1</ProjectId>
      <ProjectName>sample string 2</ProjectName>
      <ProjectType>
        <ProjectTypeId>1</ProjectTypeId>
        <ProjectTypeName>sample string 2</ProjectTypeName>
      </ProjectType>
    </Project>
  </Approval>
  <BookId>1</BookId>
  <CreateIp>sample string 8</CreateIp>
  <CreateUser>7</CreateUser>
  <Diocese>
    <EstablishCategory>
      <EstablishCategoryId>1</EstablishCategoryId>
      <EstablishCategoryName>sample string 2</EstablishCategoryName>
    </EstablishCategory>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
    <EstablishType>
      <EstablishTypeId>1</EstablishTypeId>
      <EstablishTypeName>sample string 2</EstablishTypeName>
    </EstablishType>
    <TotalHouses>4</TotalHouses>
    <TotalMembers>3</TotalMembers>
  </Diocese>
  <FinYearId>2</FinYearId>
  <PaymentMode>sample string 9</PaymentMode>
  <PaymentType>sample string 10</PaymentType>
  <PymntAmount>6</PymntAmount>
  <PymntDate>sample string 3</PymntDate>
  <PymntRefNo>sample string 4</PymntRefNo>
  <PymntRemark>sample string 5</PymntRemark>
  <StageDetails>
    <CharityPaymentStagesDtlsVM>
      <ApprovedStage>
        <OrderBySlNo>2</OrderBySlNo>
        <SlNo>1</SlNo>
        <StageAmount>4</StageAmount>
        <StageDate>sample string 3</StageDate>
        <StageRemark>sample string 5</StageRemark>
      </ApprovedStage>
      <OrderBySlNo>2</OrderBySlNo>
      <PymntStageRemark>sample string 3</PymntStageRemark>
      <SlNo>1</SlNo>
      <StageDate>sample string 4</StageDate>
    </CharityPaymentStagesDtlsVM>
    <CharityPaymentStagesDtlsVM>
      <ApprovedStage>
        <OrderBySlNo>2</OrderBySlNo>
        <SlNo>1</SlNo>
        <StageAmount>4</StageAmount>
        <StageDate>sample string 3</StageDate>
        <StageRemark>sample string 5</StageRemark>
      </ApprovedStage>
      <OrderBySlNo>2</OrderBySlNo>
      <PymntStageRemark>sample string 3</PymntStageRemark>
      <SlNo>1</SlNo>
      <StageDate>sample string 4</StageDate>
    </CharityPaymentStagesDtlsVM>
  </StageDetails>
</CharityPaymentSaveVM>

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.