POST api/v{version}/Meals/AddMealPayment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

AddLunchPaymentModel
NameDescriptionTypeAdditional information
StudentId

integer

Required

DistrictId

integer

Required

FirstName

string

None.

LunchPaymentAmount

decimal number

Required

LunchBalance

decimal number

None.

TransactionId

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "StudentId": 1,
  "DistrictId": 2,
  "FirstName": "sample string 3",
  "LunchPaymentAmount": 4.1,
  "LunchBalance": 5.1,
  "TransactionId": 6.1
}

application/xml, text/xml

Sample:
<AddLunchPaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/K12.Shared.APIModels">
  <DistrictId>2</DistrictId>
  <FirstName>sample string 3</FirstName>
  <LunchBalance>5.1</LunchBalance>
  <LunchPaymentAmount>4.1</LunchPaymentAmount>
  <StudentId>1</StudentId>
  <TransactionId>6.1</TransactionId>
</AddLunchPaymentModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OperationResult
NameDescriptionTypeAdditional information
result

string

None.

Response Formats

application/json, text/json

Sample:
{
  "result": "sample string 1"
}

application/xml, text/xml

Sample:
<OperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/K12.Shared.Models">
  <Result>sample string 1</Result>
</OperationResult>