POST api/{programid}/TimeEntry/SubmitTimeEntry

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

Body Parameters

SubmitTimeEntryRequest
NameDescriptionTypeAdditional information
ProgramCode

string

None.

ParticipantId

string

None.

ProviderId

string

None.

UserName

string

None.

Action

string

None.

SubmitTimeEntries

Collection of SubmitTimeEntry

None.

Request Formats

application/json, text/json

Sample:
{
  "ProgramCode": "sample string 1",
  "ParticipantId": "sample string 2",
  "ProviderId": "sample string 3",
  "UserName": "sample string 4",
  "Action": "sample string 5",
  "SubmitTimeEntries": [
    {
      "TimesheetNo": "sample string 1",
      "LineNo": 2,
      "LineId": 3,
      "ServiceCode": "sample string 4",
      "TimesheetServiceActivities": [
        "sample string 1",
        "sample string 2"
      ],
      "ManualEntryReasons": [
        1,
        2
      ],
      "TimeIn": "2024-11-16T04:36:06.3208387-05:00",
      "TimeOut": "2024-11-16T04:36:06.3208387-05:00",
      "PayCycleStartDate": "2024-11-16T04:36:06.3208387-05:00",
      "PayCycleEndDate": "2024-11-16T04:36:06.3208387-05:00",
      "ShiftId": "sample string 9",
      "LineEntryType": 10,
      "Notes": "sample string 11",
      "Observations": "sample string 12",
      "NumberConsumersServed": 13,
      "AlternateLocation": "sample string 14",
      "ServiceLocationType": 15,
      "ExternalReferenceId": "sample string 16"
    },
    {
      "TimesheetNo": "sample string 1",
      "LineNo": 2,
      "LineId": 3,
      "ServiceCode": "sample string 4",
      "TimesheetServiceActivities": [
        "sample string 1",
        "sample string 2"
      ],
      "ManualEntryReasons": [
        1,
        2
      ],
      "TimeIn": "2024-11-16T04:36:06.3208387-05:00",
      "TimeOut": "2024-11-16T04:36:06.3208387-05:00",
      "PayCycleStartDate": "2024-11-16T04:36:06.3208387-05:00",
      "PayCycleEndDate": "2024-11-16T04:36:06.3208387-05:00",
      "ShiftId": "sample string 9",
      "LineEntryType": 10,
      "Notes": "sample string 11",
      "Observations": "sample string 12",
      "NumberConsumersServed": 13,
      "AlternateLocation": "sample string 14",
      "ServiceLocationType": 15,
      "ExternalReferenceId": "sample string 16"
    }
  ]
}

application/xml, text/xml

Sample:
<SubmitTimeEntryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.WebAPI_DTO">
  <Action>sample string 5</Action>
  <ParticipantId>sample string 2</ParticipantId>
  <ProgramCode>sample string 1</ProgramCode>
  <ProviderId>sample string 3</ProviderId>
  <SubmitTimeEntries>
    <SubmitTimeEntryRequest.SubmitTimeEntry>
      <AlternateLocation>sample string 14</AlternateLocation>
      <ExternalReferenceId>sample string 16</ExternalReferenceId>
      <LineEntryType>10</LineEntryType>
      <LineId>3</LineId>
      <LineNo>2</LineNo>
      <ManualEntryReasons xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </ManualEntryReasons>
      <Notes>sample string 11</Notes>
      <NumberConsumersServed>13</NumberConsumersServed>
      <Observations>sample string 12</Observations>
      <PayCycleEndDate>2024-11-16T04:36:06.3208387-05:00</PayCycleEndDate>
      <PayCycleStartDate>2024-11-16T04:36:06.3208387-05:00</PayCycleStartDate>
      <ServiceCode>sample string 4</ServiceCode>
      <ServiceLocationType>15</ServiceLocationType>
      <ShiftId>sample string 9</ShiftId>
      <TimeIn>2024-11-16T04:36:06.3208387-05:00</TimeIn>
      <TimeOut>2024-11-16T04:36:06.3208387-05:00</TimeOut>
      <TimesheetNo>sample string 1</TimesheetNo>
      <TimesheetServiceActivities xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </TimesheetServiceActivities>
    </SubmitTimeEntryRequest.SubmitTimeEntry>
    <SubmitTimeEntryRequest.SubmitTimeEntry>
      <AlternateLocation>sample string 14</AlternateLocation>
      <ExternalReferenceId>sample string 16</ExternalReferenceId>
      <LineEntryType>10</LineEntryType>
      <LineId>3</LineId>
      <LineNo>2</LineNo>
      <ManualEntryReasons xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </ManualEntryReasons>
      <Notes>sample string 11</Notes>
      <NumberConsumersServed>13</NumberConsumersServed>
      <Observations>sample string 12</Observations>
      <PayCycleEndDate>2024-11-16T04:36:06.3208387-05:00</PayCycleEndDate>
      <PayCycleStartDate>2024-11-16T04:36:06.3208387-05:00</PayCycleStartDate>
      <ServiceCode>sample string 4</ServiceCode>
      <ServiceLocationType>15</ServiceLocationType>
      <ShiftId>sample string 9</ShiftId>
      <TimeIn>2024-11-16T04:36:06.3208387-05:00</TimeIn>
      <TimeOut>2024-11-16T04:36:06.3208387-05:00</TimeOut>
      <TimesheetNo>sample string 1</TimesheetNo>
      <TimesheetServiceActivities xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </TimesheetServiceActivities>
    </SubmitTimeEntryRequest.SubmitTimeEntry>
  </SubmitTimeEntries>
  <UserName>sample string 4</UserName>
</SubmitTimeEntryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SubmitTimeEntryRequest'.

Response Information

Resource Description

Collection of SubmitTimeEntryResponse
NameDescriptionTypeAdditional information
TimesheetNo

string

None.

LineNo

string

None.

Actions

Collection of string

None.

PendMessages

Collection of string

None.

ShiftId

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TimesheetNo": "sample string 1",
    "LineNo": "sample string 2",
    "Actions": [
      "sample string 1",
      "sample string 2"
    ],
    "PendMessages": [
      "sample string 1",
      "sample string 2"
    ],
    "ShiftId": "sample string 3"
  },
  {
    "TimesheetNo": "sample string 1",
    "LineNo": "sample string 2",
    "Actions": [
      "sample string 1",
      "sample string 2"
    ],
    "PendMessages": [
      "sample string 1",
      "sample string 2"
    ],
    "ShiftId": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSubmitTimeEntryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.WebAPI_DTO.TimeEntry">
  <SubmitTimeEntryResponse>
    <Actions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Actions>
    <LineNo>sample string 2</LineNo>
    <PendMessages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </PendMessages>
    <ShiftId>sample string 3</ShiftId>
    <TimesheetNo>sample string 1</TimesheetNo>
  </SubmitTimeEntryResponse>
  <SubmitTimeEntryResponse>
    <Actions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Actions>
    <LineNo>sample string 2</LineNo>
    <PendMessages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </PendMessages>
    <ShiftId>sample string 3</ShiftId>
    <TimesheetNo>sample string 1</TimesheetNo>
  </SubmitTimeEntryResponse>
</ArrayOfSubmitTimeEntryResponse>