GET api/Membership/GetActiveMembership?userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

Required

Body Parameters

None.

Response Information

Resource Description

MembershipActiveResponseModel
NameDescriptionTypeAdditional information
Membership

MembershipProductActive

None.

Result

ResponseResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Membership": {
    "ProductName": "sample string 1",
    "StartDate": "2024-11-29T09:27:10.2439689+11:00",
    "EndDate": "2024-11-29T09:27:10.2439689+11:00",
    "TotalAmount": 2.0,
    "AmountPaidCredited": 1.0,
    "ProRataActiveMembershipAmount": 1.0,
    "ProRataCreditAmount": 1.0
  },
  "Result": {
    "Success": true,
    "Message": "sample string 2",
    "Errors": [
      {
        "Message": "sample string 1"
      },
      {
        "Message": "sample string 1"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<MembershipActiveResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Response">
  <Result>
    <Errors>
      <ErrorMessage>
        <Message>sample string 1</Message>
      </ErrorMessage>
      <ErrorMessage>
        <Message>sample string 1</Message>
      </ErrorMessage>
    </Errors>
    <Message>sample string 2</Message>
    <Success>true</Success>
  </Result>
  <Membership xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Response.HelperModel">
    <d2p1:AmountPaidCredited>1</d2p1:AmountPaidCredited>
    <d2p1:EndDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2024-11-28T22:27:10.2439689Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>660</d3p1:OffsetMinutes>
    </d2p1:EndDate>
    <d2p1:ProRataActiveMembershipAmount>1</d2p1:ProRataActiveMembershipAmount>
    <d2p1:ProRataCreditAmount>1</d2p1:ProRataCreditAmount>
    <d2p1:ProductName>sample string 1</d2p1:ProductName>
    <d2p1:StartDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2024-11-28T22:27:10.2439689Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>660</d3p1:OffsetMinutes>
    </d2p1:StartDate>
    <d2p1:TotalAmount>2</d2p1:TotalAmount>
  </Membership>
</MembershipActiveResponseModel>