POST api/STMBenefit

Request Information

URI Parameters

None.

Body Parameters

STMBenefitNew
NameDescriptionTypeAdditional information
StmFiscalYearId

integer

None.

StmBenefitName

string

None.

StmBenefitAmount

decimal number

None.

StmBenefitExchangeAmount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "StmFiscalYearId": 1,
  "StmBenefitName": "sample string 2",
  "StmBenefitAmount": 3.0,
  "StmBenefitExchangeAmount": 4.0
}

text/html

Sample:
{"StmFiscalYearId":1,"StmBenefitName":"sample string 2","StmBenefitAmount":3.0,"StmBenefitExchangeAmount":4.0}

application/xml, text/xml

Sample:
<STMBenefitNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
  <StmBenefitAmount>3</StmBenefitAmount>
  <StmBenefitExchangeAmount>4</StmBenefitExchangeAmount>
  <StmBenefitName>sample string 2</StmBenefitName>
  <StmFiscalYearId>1</StmFiscalYearId>
</STMBenefitNew>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultTypedOfSTMBenefit
NameDescriptionTypeAdditional information
Code

integer

None.

Errors

Collection of string

None.

Data

STMBenefit

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 1,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Data": {
    "StmBenefitId": 1,
    "StmBenefitName": "sample string 2",
    "StmFiscalYearId": 3,
    "StmBenefitYear": "sample string 4",
    "StmBenefitDateText": "sample string 5",
    "StmBenefitStartDtm": "2026-04-01T16:47:38.5323103+07:00",
    "StmBenefitEndDtm": "2026-04-01T16:47:38.5323103+07:00",
    "StmBenefitAmount": 6.0,
    "StmBenefitExchangeAmount": 7.0,
    "IsActive": true,
    "IsUsed": true
  }
}

text/html

Sample:
{"Code":1,"Errors":["sample string 1","sample string 2"],"Data":{"StmBenefitId":1,"StmBenefitName":"sample string 2","StmFiscalYearId":3,"StmBenefitYear":"sample string 4","StmBenefitDateText":"sample string 5","StmBenefitStartDtm":"2026-04-01T16:47:38.5323103+07:00","StmBenefitEndDtm":"2026-04-01T16:47:38.5323103+07:00","StmBenefitAmount":6.0,"StmBenefitExchangeAmount":7.0,"IsActive":true,"IsUsed":true}}

application/xml, text/xml

Sample:
<ServiceResultTypedOfSTMBenefitYj8O1tFc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSW.Common.Models">
  <Code>1</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsUsed>true</d2p1:IsUsed>
    <d2p1:StmBenefitAmount>6</d2p1:StmBenefitAmount>
    <d2p1:StmBenefitDateText>sample string 5</d2p1:StmBenefitDateText>
    <d2p1:StmBenefitEndDtm>2026-04-01T16:47:38.5323103+07:00</d2p1:StmBenefitEndDtm>
    <d2p1:StmBenefitExchangeAmount>7</d2p1:StmBenefitExchangeAmount>
    <d2p1:StmBenefitId>1</d2p1:StmBenefitId>
    <d2p1:StmBenefitName>sample string 2</d2p1:StmBenefitName>
    <d2p1:StmBenefitStartDtm>2026-04-01T16:47:38.5323103+07:00</d2p1:StmBenefitStartDtm>
    <d2p1:StmBenefitYear>sample string 4</d2p1:StmBenefitYear>
    <d2p1:StmFiscalYearId>3</d2p1:StmFiscalYearId>
  </Data>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
</ServiceResultTypedOfSTMBenefitYj8O1tFc>