POST api/StudentScholarship

Request Information

URI Parameters

None.

Body Parameters

StudentLedgerView
NameDescriptionTypeAdditional information
StudentLedger

StudentLedger

None.

StudentScholarship

Collection of StudentScholarship

None.

Request Formats

application/json, text/json

Sample:
{
  "studentLedger": {
    "id": 1,
    "termId": 2,
    "studentId": "sample string 3",
    "transactionName": "sample string 4",
    "orNo": "sample string 5",
    "transactionDate": "2024-09-20T01:48:49.3103222+08:00",
    "amount": 7.0,
    "isCredited": true,
    "user": "sample string 9",
    "islocked": true
  },
  "studentScholarship": [
    {
      "id": 1,
      "studentId": "sample string 2",
      "termId": 3,
      "ledgerId": 4,
      "discountCode": "sample string 5",
      "isFixAmount": true,
      "addedBy": "sample string 7"
    },
    {
      "id": 1,
      "studentId": "sample string 2",
      "termId": 3,
      "ledgerId": 4,
      "discountCode": "sample string 5",
      "isFixAmount": true,
      "addedBy": "sample string 7"
    }
  ]
}

text/html

Sample:
{"studentLedger":{"id":1,"termId":2,"studentId":"sample string 3","transactionName":"sample string 4","orNo":"sample string 5","transactionDate":"2024-09-20T01:48:49.3103222+08:00","amount":7.0,"isCredited":true,"user":"sample string 9","islocked":true},"studentScholarship":[{"id":1,"studentId":"sample string 2","termId":3,"ledgerId":4,"discountCode":"sample string 5","isFixAmount":true,"addedBy":"sample string 7"},{"id":1,"studentId":"sample string 2","termId":3,"ledgerId":4,"discountCode":"sample string 5","isFixAmount":true,"addedBy":"sample string 7"}]}

application/xml, text/xml

Sample:
<StudentLedgerView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UBBEAMS.Api.ViewModels">
  <StudentLedger xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models">
    <d2p1:Amount>7</d2p1:Amount>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:ORNo>sample string 5</d2p1:ORNo>
    <d2p1:StudentId>sample string 3</d2p1:StudentId>
    <d2p1:TermId>2</d2p1:TermId>
    <d2p1:TransactionDate>2024-09-20T01:48:49.3103222+08:00</d2p1:TransactionDate>
    <d2p1:TransactionName>sample string 4</d2p1:TransactionName>
    <d2p1:User>sample string 9</d2p1:User>
    <d2p1:isCredited>true</d2p1:isCredited>
    <d2p1:islocked>true</d2p1:islocked>
  </StudentLedger>
  <StudentScholarship xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models">
    <d2p1:StudentScholarship>
      <d2p1:AddedBy>sample string 7</d2p1:AddedBy>
      <d2p1:DiscountCode>sample string 5</d2p1:DiscountCode>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LedgerId>4</d2p1:LedgerId>
      <d2p1:StudentId>sample string 2</d2p1:StudentId>
      <d2p1:TermId>3</d2p1:TermId>
      <d2p1:isFixAmount>true</d2p1:isFixAmount>
    </d2p1:StudentScholarship>
    <d2p1:StudentScholarship>
      <d2p1:AddedBy>sample string 7</d2p1:AddedBy>
      <d2p1:DiscountCode>sample string 5</d2p1:DiscountCode>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LedgerId>4</d2p1:LedgerId>
      <d2p1:StudentId>sample string 2</d2p1:StudentId>
      <d2p1:TermId>3</d2p1:TermId>
      <d2p1:isFixAmount>true</d2p1:isFixAmount>
    </d2p1:StudentScholarship>
  </StudentScholarship>
</StudentLedgerView>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.