POST api/studentPayment

Request Information

URI Parameters

None.

Body Parameters

StudentPaymentsView
NameDescriptionTypeAdditional information
isenrolled

boolean

None.

StudentPayment

StudentPayment

None.

StudentItemPaymentsViewModel

Collection of StudentItemPaymentsViewModel

None.

StudentPaymentDetail

StudentPaymentDetail

None.

StudentLedger

StudentLedger

None.

StudentCashPaymentDetail

StudentCashPaymentDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "isenrolled": true,
  "studentPayment": {
    "id": 1,
    "termId": 2,
    "studentId": "sample string 3",
    "name": "sample string 4",
    "orNo": 5.1,
    "isOR": true,
    "paymentDate": "2024-09-20T01:52:42.5473188+08:00",
    "isCash": true,
    "hasVoid": true,
    "user": "sample string 10"
  },
  "studentItemPaymentsViewModel": [
    {
      "id": 1,
      "feeCode": "sample string 2",
      "feeDescription": "sample string 3",
      "paymentId": 4,
      "amount": 5.0,
      "isPostable": true
    },
    {
      "id": 1,
      "feeCode": "sample string 2",
      "feeDescription": "sample string 3",
      "paymentId": 4,
      "amount": 5.0,
      "isPostable": true
    }
  ],
  "studentPaymentDetail": {
    "id": 1,
    "paymentId": 2,
    "checkNo": "sample string 3",
    "bankName": "sample string 4",
    "checkDate": "2024-09-20T01:52:42.5473188+08:00",
    "otherPaymentDetails": "sample string 5",
    "checkAmount": 1.0
  },
  "studentLedger": {
    "id": 1,
    "termId": 2,
    "studentId": "sample string 3",
    "transactionName": "sample string 4",
    "orNo": "sample string 5",
    "transactionDate": "2024-09-20T01:52:42.5473188+08:00",
    "amount": 7.0,
    "isCredited": true,
    "user": "sample string 9",
    "islocked": true
  },
  "studentCashPaymentDetail": {
    "id": 1,
    "paymentId": 2,
    "currencyDesc": "sample string 3",
    "currencyDetail": "sample string 4"
  }
}

text/html

Sample:
{"isenrolled":true,"studentPayment":{"id":1,"termId":2,"studentId":"sample string 3","name":"sample string 4","orNo":5.1,"isOR":true,"paymentDate":"2024-09-20T01:52:42.5473188+08:00","isCash":true,"hasVoid":true,"user":"sample string 10"},"studentItemPaymentsViewModel":[{"id":1,"feeCode":"sample string 2","feeDescription":"sample string 3","paymentId":4,"amount":5.0,"isPostable":true},{"id":1,"feeCode":"sample string 2","feeDescription":"sample string 3","paymentId":4,"amount":5.0,"isPostable":true}],"studentPaymentDetail":{"id":1,"paymentId":2,"checkNo":"sample string 3","bankName":"sample string 4","checkDate":"2024-09-20T01:52:42.5473188+08:00","otherPaymentDetails":"sample string 5","checkAmount":1.0},"studentLedger":{"id":1,"termId":2,"studentId":"sample string 3","transactionName":"sample string 4","orNo":"sample string 5","transactionDate":"2024-09-20T01:52:42.5473188+08:00","amount":7.0,"isCredited":true,"user":"sample string 9","islocked":true},"studentCashPaymentDetail":{"id":1,"paymentId":2,"currencyDesc":"sample string 3","currencyDetail":"sample string 4"}}

application/xml, text/xml

Sample:
<StudentPaymentsView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UBBEAMS.Api.ViewModels">
  <StudentCashPaymentDetail xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models">
    <d2p1:CurrencyDesc>sample string 3</d2p1:CurrencyDesc>
    <d2p1:CurrencyDetail>sample string 4</d2p1:CurrencyDetail>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:PaymentId>2</d2p1:PaymentId>
  </StudentCashPaymentDetail>
  <StudentItemPaymentsViewModel>
    <StudentItemPaymentsViewModel>
      <Amount>5</Amount>
      <FeeCode>sample string 2</FeeCode>
      <FeeDescription>sample string 3</FeeDescription>
      <Id>1</Id>
      <PaymentId>4</PaymentId>
      <isPostable>true</isPostable>
    </StudentItemPaymentsViewModel>
    <StudentItemPaymentsViewModel>
      <Amount>5</Amount>
      <FeeCode>sample string 2</FeeCode>
      <FeeDescription>sample string 3</FeeDescription>
      <Id>1</Id>
      <PaymentId>4</PaymentId>
      <isPostable>true</isPostable>
    </StudentItemPaymentsViewModel>
  </StudentItemPaymentsViewModel>
  <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:52:42.5473188+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>
  <StudentPayment xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 4</d2p1:Name>
    <d2p1:ORNo>5.1</d2p1:ORNo>
    <d2p1:PaymentDate>2024-09-20T01:52:42.5473188+08:00</d2p1:PaymentDate>
    <d2p1:StudentId>sample string 3</d2p1:StudentId>
    <d2p1:TermId>2</d2p1:TermId>
    <d2p1:User>sample string 10</d2p1:User>
    <d2p1:hasVoid>true</d2p1:hasVoid>
    <d2p1:isCash>true</d2p1:isCash>
    <d2p1:isOR>true</d2p1:isOR>
  </StudentPayment>
  <StudentPaymentDetail xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models">
    <d2p1:BankName>sample string 4</d2p1:BankName>
    <d2p1:CheckAmount>1</d2p1:CheckAmount>
    <d2p1:CheckDate>2024-09-20T01:52:42.5473188+08:00</d2p1:CheckDate>
    <d2p1:CheckNo>sample string 3</d2p1:CheckNo>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:OtherPaymentDetails>sample string 5</d2p1:OtherPaymentDetails>
    <d2p1:PaymentId>2</d2p1:PaymentId>
  </StudentPaymentDetail>
  <isenrolled>true</isenrolled>
</StudentPaymentsView>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.