POST api/CopaymentRates

Request Information

URI Parameters

None.

Body Parameters

CopaymentRateNew
NameDescriptionTypeAdditional information
CompanyId

integer

None.

BenefitPlanId

integer

None.

StartDate

date

None.

EndDate

date

None.

Payrate

decimal number

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "BenefitPlanId": 1,
  "StartDate": "2026-06-28T16:28:32.0369098+07:00",
  "EndDate": "2026-06-28T16:28:32.0379095+07:00",
  "Payrate": 1.0,
  "IsActive": true
}

text/html

Sample:
{"CompanyId":1,"BenefitPlanId":1,"StartDate":"2026-06-28T16:28:32.0369098+07:00","EndDate":"2026-06-28T16:28:32.0379095+07:00","Payrate":1.0,"IsActive":true}

application/xml, text/xml

Sample:
<CopaymentRateNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
  <BenefitPlanId>1</BenefitPlanId>
  <CompanyId>1</CompanyId>
  <EndDate>2026-06-28T16:28:32.0379095+07:00</EndDate>
  <IsActive>true</IsActive>
  <Payrate>1</Payrate>
  <StartDate>2026-06-28T16:28:32.0369098+07:00</StartDate>
</CopaymentRateNew>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultTypedOfCopaymentRate
NameDescriptionTypeAdditional information
Code

integer

None.

Errors

Collection of string

None.

Data

CopaymentRate

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 1,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Data": {
    "CopaymentRateId": 1,
    "CompanyId": 1,
    "BenefitPlanId": 2,
    "StartDate": "2026-06-28T16:28:32.0409092+07:00",
    "EndDate": "2026-06-28T16:28:32.0409092+07:00",
    "Payrate": 1.0,
    "IsActive": true,
    "CreatedDtm": "2026-06-28T16:28:32.0409092+07:00",
    "CreatedByUserId": 5,
    "UpdatedDtm": "2026-06-28T16:28:32.0409092+07:00",
    "UpdatedByUserId": 1,
    "UsageCount": 6,
    "IsUsed": true
  }
}

text/html

Sample:
{"Code":1,"Errors":["sample string 1","sample string 2"],"Data":{"CopaymentRateId":1,"CompanyId":1,"BenefitPlanId":2,"StartDate":"2026-06-28T16:28:32.0409092+07:00","EndDate":"2026-06-28T16:28:32.0409092+07:00","Payrate":1.0,"IsActive":true,"CreatedDtm":"2026-06-28T16:28:32.0409092+07:00","CreatedByUserId":5,"UpdatedDtm":"2026-06-28T16:28:32.0409092+07:00","UpdatedByUserId":1,"UsageCount":6,"IsUsed":true}}

application/xml, text/xml

Sample:
<ServiceResultTypedOfCopaymentRateYj8O1tFc 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:BenefitPlanId>2</d2p1:BenefitPlanId>
    <d2p1:CompanyId>1</d2p1:CompanyId>
    <d2p1:CopaymentRateId>1</d2p1:CopaymentRateId>
    <d2p1:CreatedByUserId>5</d2p1:CreatedByUserId>
    <d2p1:CreatedDtm>2026-06-28T16:28:32.0409092+07:00</d2p1:CreatedDtm>
    <d2p1:EndDate>2026-06-28T16:28:32.0409092+07:00</d2p1:EndDate>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsUsed>true</d2p1:IsUsed>
    <d2p1:Payrate>1</d2p1:Payrate>
    <d2p1:StartDate>2026-06-28T16:28:32.0409092+07:00</d2p1:StartDate>
    <d2p1:UpdatedByUserId>1</d2p1:UpdatedByUserId>
    <d2p1:UpdatedDtm>2026-06-28T16:28:32.0409092+07:00</d2p1:UpdatedDtm>
    <d2p1:UsageCount>6</d2p1:UsageCount>
  </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>
</ServiceResultTypedOfCopaymentRateYj8O1tFc>