GET api/v1/secondarymarket/list

Get the secondary market item summaries in a list

Requires authorization!

Response Codes

  • 200 – Successfully fetched the SecondaryMarket item
  • 400 – No ids specified
  • 401 – User is not Authorized
  • 404 – SecondaryMarket item with specified ID is not found

Request Information

URI Parameters

None.

Body Parameters

SecondaryMarket item identificators. This endpoint supports both GET and POST methods. If using this endpoint with the GET method the request data must be sent with the request body, even though it is a GET request. The "Content-Type" header must be set so the server knows how to decode the data.

SecondMarketListingRequest
NameDescriptionTypeAdditional information
ItemIds

Secondary market item ID's to list. Limited to 1000 items.

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ItemIds": [
    "55275a72-2775-4a34-a4ef-1167e8d2ec13",
    "abe0052a-30e1-41cc-be01-8f4e0b55e9df"
  ]
}

application/xml, text/xml

Sample:
<SecondMarketListingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sobralaen.Api.Models">
  <ItemIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>55275a72-2775-4a34-a4ef-1167e8d2ec13</d2p1:guid>
    <d2p1:guid>abe0052a-30e1-41cc-be01-8f4e0b55e9df</d2p1:guid>
  </ItemIds>
</SecondMarketListingRequest>

application/x-www-form-urlencoded

Sample:
ItemIds[0]=55275a72-2775-4a34-a4ef-1167e8d2ec13&ItemIds[1]=abe0052a-30e1-41cc-be01-8f4e0b55e9df

Response Information

Resource Description

Get the secondary market item summaries in a list
SecondaryMarket item list of found items, mapped 1:1 to the input ID's; null where not found

ApiResultSecondMarketItemSummaryList
NameDescriptionTypeAdditional information
Payload

The payload of the response. Type depends on the API request.

Collection of SecondMarketItemSummary

None.

Success

Indicates if the request was successfull or not. true if the request was handled successfully, false otherwise.

boolean

Required

Errors

Error(s) accociated with the API request.

Collection of ApiError

None.

Response Formats

application/json, text/json

Sample:
{
  "Payload": [
    {
      "Id": "dc581b36-a0ac-4b8a-bb98-dafa9237e0c2",
      "Number": 2,
      "StartDate": "2024-03-27T23:39:50.4389602+02:00",
      "PlannedCloseDate": "2024-03-27T23:39:50.4389602+02:00",
      "ActualCloseDate": "2024-03-27T23:39:50.4389602+02:00",
      "UserCancelledOn": "2024-03-27T23:39:50.4389602+02:00",
      "LoanPart_id": "f80a7291-1665-4493-99c3-383baea2749f",
      "DesiredDiscountRate": 800.0,
      "StatusCode": 0
    },
    {
      "Id": "dc581b36-a0ac-4b8a-bb98-dafa9237e0c2",
      "Number": 2,
      "StartDate": "2024-03-27T23:39:50.4389602+02:00",
      "PlannedCloseDate": "2024-03-27T23:39:50.4389602+02:00",
      "ActualCloseDate": "2024-03-27T23:39:50.4389602+02:00",
      "UserCancelledOn": "2024-03-27T23:39:50.4389602+02:00",
      "LoanPart_id": "f80a7291-1665-4493-99c3-383baea2749f",
      "DesiredDiscountRate": 800.0,
      "StatusCode": 0
    }
  ],
  "Success": true,
  "Errors": [
    {
      "Code": 1,
      "Message": "sample string-2",
      "Details": "sample string-3"
    },
    {
      "Code": 1,
      "Message": "sample string-2",
      "Details": "sample string-3"
    }
  ]
}

application/xml, text/xml

Sample:
<ApiResultSecondMarketItemSummaryList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sobralaen.Api.Models">
  <Errors>
    <ApiError>
      <Code>1</Code>
      <Details>sample string-3</Details>
      <Message>sample string-2</Message>
    </ApiError>
    <ApiError>
      <Code>1</Code>
      <Details>sample string-3</Details>
      <Message>sample string-2</Message>
    </ApiError>
  </Errors>
  <Success>true</Success>
  <Payload>
    <SecondMarketItemSummary>
      <ActualCloseDate>2024-03-27T23:39:50.4389602+02:00</ActualCloseDate>
      <DesiredDiscountRateDecimalFraction>8</DesiredDiscountRateDecimalFraction>
      <Id>dc581b36-a0ac-4b8a-bb98-dafa9237e0c2</Id>
      <LoanPart_id>f80a7291-1665-4493-99c3-383baea2749f</LoanPart_id>
      <Number>2</Number>
      <PlannedCloseDate>2024-03-27T23:39:50.4389602+02:00</PlannedCloseDate>
      <StartDate>2024-03-27T23:39:50.4389602+02:00</StartDate>
      <StatusCode>Created</StatusCode>
      <UserCancelledOn>2024-03-27T23:39:50.4389602+02:00</UserCancelledOn>
    </SecondMarketItemSummary>
    <SecondMarketItemSummary>
      <ActualCloseDate>2024-03-27T23:39:50.4389602+02:00</ActualCloseDate>
      <DesiredDiscountRateDecimalFraction>8</DesiredDiscountRateDecimalFraction>
      <Id>dc581b36-a0ac-4b8a-bb98-dafa9237e0c2</Id>
      <LoanPart_id>f80a7291-1665-4493-99c3-383baea2749f</LoanPart_id>
      <Number>2</Number>
      <PlannedCloseDate>2024-03-27T23:39:50.4389602+02:00</PlannedCloseDate>
      <StartDate>2024-03-27T23:39:50.4389602+02:00</StartDate>
      <StatusCode>Created</StatusCode>
      <UserCancelledOn>2024-03-27T23:39:50.4389602+02:00</UserCancelledOn>
    </SecondMarketItemSummary>
  </Payload>
</ApiResultSecondMarketItemSummaryList>