POST 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": [
    "2ae035be-0fbc-495f-b850-c4e51fad448b",
    "3cf7c021-84d2-4370-825f-d27394b79e95"
  ]
}

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>2ae035be-0fbc-495f-b850-c4e51fad448b</d2p1:guid>
    <d2p1:guid>3cf7c021-84d2-4370-825f-d27394b79e95</d2p1:guid>
  </ItemIds>
</SecondMarketListingRequest>

application/x-www-form-urlencoded

Sample:
ItemIds[0]=2ae035be-0fbc-495f-b850-c4e51fad448b&ItemIds[1]=3cf7c021-84d2-4370-825f-d27394b79e95

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": "6cbc3c93-982c-4d49-b2ee-e83d724bd0ec",
      "Number": 2,
      "StartDate": "2024-12-17T02:25:25.8646462+02:00",
      "PlannedCloseDate": "2024-12-17T02:25:25.8646462+02:00",
      "ActualCloseDate": "2024-12-17T02:25:25.8646462+02:00",
      "UserCancelledOn": "2024-12-17T02:25:25.8646462+02:00",
      "LoanPart_id": "60ac7968-0b16-459e-9728-af2d62413053",
      "DesiredDiscountRate": 800.0,
      "StatusCode": 0
    },
    {
      "Id": "6cbc3c93-982c-4d49-b2ee-e83d724bd0ec",
      "Number": 2,
      "StartDate": "2024-12-17T02:25:25.8646462+02:00",
      "PlannedCloseDate": "2024-12-17T02:25:25.8646462+02:00",
      "ActualCloseDate": "2024-12-17T02:25:25.8646462+02:00",
      "UserCancelledOn": "2024-12-17T02:25:25.8646462+02:00",
      "LoanPart_id": "60ac7968-0b16-459e-9728-af2d62413053",
      "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-12-17T02:25:25.8646462+02:00</ActualCloseDate>
      <DesiredDiscountRateDecimalFraction>8</DesiredDiscountRateDecimalFraction>
      <Id>6cbc3c93-982c-4d49-b2ee-e83d724bd0ec</Id>
      <LoanPart_id>60ac7968-0b16-459e-9728-af2d62413053</LoanPart_id>
      <Number>2</Number>
      <PlannedCloseDate>2024-12-17T02:25:25.8646462+02:00</PlannedCloseDate>
      <StartDate>2024-12-17T02:25:25.8646462+02:00</StartDate>
      <StatusCode>Created</StatusCode>
      <UserCancelledOn>2024-12-17T02:25:25.8646462+02:00</UserCancelledOn>
    </SecondMarketItemSummary>
    <SecondMarketItemSummary>
      <ActualCloseDate>2024-12-17T02:25:25.8646462+02:00</ActualCloseDate>
      <DesiredDiscountRateDecimalFraction>8</DesiredDiscountRateDecimalFraction>
      <Id>6cbc3c93-982c-4d49-b2ee-e83d724bd0ec</Id>
      <LoanPart_id>60ac7968-0b16-459e-9728-af2d62413053</LoanPart_id>
      <Number>2</Number>
      <PlannedCloseDate>2024-12-17T02:25:25.8646462+02:00</PlannedCloseDate>
      <StartDate>2024-12-17T02:25:25.8646462+02:00</StartDate>
      <StatusCode>Created</StatusCode>
      <UserCancelledOn>2024-12-17T02:25:25.8646462+02:00</UserCancelledOn>
    </SecondMarketItemSummary>
  </Payload>
</ApiResultSecondMarketItemSummaryList>