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": [
    "712c9303-b847-48ff-8b73-f44fb5199e23",
    "3301d9bb-49d2-427e-b7d4-713eedd748b9"
  ]
}

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>712c9303-b847-48ff-8b73-f44fb5199e23</d2p1:guid>
    <d2p1:guid>3301d9bb-49d2-427e-b7d4-713eedd748b9</d2p1:guid>
  </ItemIds>
</SecondMarketListingRequest>

application/x-www-form-urlencoded

Sample:
ItemIds[0]=712c9303-b847-48ff-8b73-f44fb5199e23&ItemIds[1]=3301d9bb-49d2-427e-b7d4-713eedd748b9

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": "b7521cee-d446-4ac0-a7e4-f478e664748f",
      "Number": 2,
      "StartDate": "2019-11-20T00:00:23.3852802+02:00",
      "PlannedCloseDate": "2019-11-20T00:00:23.3852802+02:00",
      "ActualCloseDate": "2019-11-20T00:00:23.3852802+02:00",
      "UserCancelledOn": "2019-11-20T00:00:23.3852802+02:00",
      "LoanPart_id": "a20e9977-cf75-4433-aa05-3a3aed91a2e2",
      "DesiredDiscountRate": 800.0,
      "StatusCode": 0
    },
    {
      "Id": "b7521cee-d446-4ac0-a7e4-f478e664748f",
      "Number": 2,
      "StartDate": "2019-11-20T00:00:23.3852802+02:00",
      "PlannedCloseDate": "2019-11-20T00:00:23.3852802+02:00",
      "ActualCloseDate": "2019-11-20T00:00:23.3852802+02:00",
      "UserCancelledOn": "2019-11-20T00:00:23.3852802+02:00",
      "LoanPart_id": "a20e9977-cf75-4433-aa05-3a3aed91a2e2",
      "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>2019-11-20T00:00:23.3852802+02:00</ActualCloseDate>
      <DesiredDiscountRateDecimalFraction>8</DesiredDiscountRateDecimalFraction>
      <Id>b7521cee-d446-4ac0-a7e4-f478e664748f</Id>
      <LoanPart_id>a20e9977-cf75-4433-aa05-3a3aed91a2e2</LoanPart_id>
      <Number>2</Number>
      <PlannedCloseDate>2019-11-20T00:00:23.3852802+02:00</PlannedCloseDate>
      <StartDate>2019-11-20T00:00:23.3852802+02:00</StartDate>
      <StatusCode>Created</StatusCode>
      <UserCancelledOn>2019-11-20T00:00:23.3852802+02:00</UserCancelledOn>
    </SecondMarketItemSummary>
    <SecondMarketItemSummary>
      <ActualCloseDate>2019-11-20T00:00:23.3852802+02:00</ActualCloseDate>
      <DesiredDiscountRateDecimalFraction>8</DesiredDiscountRateDecimalFraction>
      <Id>b7521cee-d446-4ac0-a7e4-f478e664748f</Id>
      <LoanPart_id>a20e9977-cf75-4433-aa05-3a3aed91a2e2</LoanPart_id>
      <Number>2</Number>
      <PlannedCloseDate>2019-11-20T00:00:23.3852802+02:00</PlannedCloseDate>
      <StartDate>2019-11-20T00:00:23.3852802+02:00</StartDate>
      <StatusCode>Created</StatusCode>
      <UserCancelledOn>2019-11-20T00:00:23.3852802+02:00</UserCancelledOn>
    </SecondMarketItemSummary>
  </Payload>
</ApiResultSecondMarketItemSummaryList>