GET ESRAssignment/GetActiveAssignmentsforExpenseDate?expenseDate={expenseDate}

Gets a list of ESRAssignmentsBasicResponse, for the current user and expense date.


Parameters

NameDescriptionAdditional information
expenseDate
The expense Date.

Define this parameter in the request URI.

Response body formats

A list of ESRAssignmentsBasicResponse

application/json, text/json

Sample:
{
  "EsrAssignments": [
    {
      "AssignmentId": 1,
      "AssignmentNumber": "sample string 2",
      "AssignmentText": "sample string 3",
      "EarliestAssignmentStartDate": "2025-01-26T06:48:37.2086837+00:00",
      "EffectiveStartDate": "2025-01-26T06:48:37.2086837+00:00",
      "EffectiveEndDate": "2025-01-26T06:48:37.2086837+00:00",
      "Active": true
    },
    {
      "AssignmentId": 1,
      "AssignmentNumber": "sample string 2",
      "AssignmentText": "sample string 3",
      "EarliestAssignmentStartDate": "2025-01-26T06:48:37.2086837+00:00",
      "EffectiveStartDate": "2025-01-26T06:48:37.2086837+00:00",
      "EffectiveEndDate": "2025-01-26T06:48:37.2086837+00:00",
      "Active": true
    },
    {
      "AssignmentId": 1,
      "AssignmentNumber": "sample string 2",
      "AssignmentText": "sample string 3",
      "EarliestAssignmentStartDate": "2025-01-26T06:48:37.2086837+00:00",
      "EffectiveStartDate": "2025-01-26T06:48:37.2086837+00:00",
      "EffectiveEndDate": "2025-01-26T06:48:37.2086837+00:00",
      "Active": true
    }
  ],
  "ResponseInformation": {
    "Errors": [
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      }
    ],
    "Status": 0,
    "Links": [
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ESRAssignmentsBasicResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses">
  <ResponseInformation xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <Errors>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
    </Errors>
    <Links>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
    </Links>
    <Status>Failure</Status>
  </ResponseInformation>
  <EsrAssignments xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types">
    <d2p1:ESRAssignmentBasic>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:AssignmentId>1</d2p1:AssignmentId>
      <d2p1:AssignmentNumber>sample string 2</d2p1:AssignmentNumber>
      <d2p1:AssignmentText>sample string 3</d2p1:AssignmentText>
      <d2p1:EarliestAssignmentStartDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EarliestAssignmentStartDate>
      <d2p1:EffectiveEndDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EffectiveEndDate>
      <d2p1:EffectiveStartDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EffectiveStartDate>
    </d2p1:ESRAssignmentBasic>
    <d2p1:ESRAssignmentBasic>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:AssignmentId>1</d2p1:AssignmentId>
      <d2p1:AssignmentNumber>sample string 2</d2p1:AssignmentNumber>
      <d2p1:AssignmentText>sample string 3</d2p1:AssignmentText>
      <d2p1:EarliestAssignmentStartDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EarliestAssignmentStartDate>
      <d2p1:EffectiveEndDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EffectiveEndDate>
      <d2p1:EffectiveStartDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EffectiveStartDate>
    </d2p1:ESRAssignmentBasic>
    <d2p1:ESRAssignmentBasic>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:AssignmentId>1</d2p1:AssignmentId>
      <d2p1:AssignmentNumber>sample string 2</d2p1:AssignmentNumber>
      <d2p1:AssignmentText>sample string 3</d2p1:AssignmentText>
      <d2p1:EarliestAssignmentStartDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EarliestAssignmentStartDate>
      <d2p1:EffectiveEndDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EffectiveEndDate>
      <d2p1:EffectiveStartDate>2025-01-26T06:48:37.2086837+00:00</d2p1:EffectiveStartDate>
    </d2p1:ESRAssignmentBasic>
  </EsrAssignments>
</ESRAssignmentsBasicResponse>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body