POST APIControllers/Policy/GetPushNotificationV2

Request Information

URI Parameters

None.

Body Parameters

GetPushNotificationRequest
NameDescriptionTypeAdditional information
securityKey

string

None.

policyIdList

Collection of integer

None.

memberAccountId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "securityKey": "sample string 1",
  "policyIdList": [
    1,
    2
  ],
  "memberAccountId": 2
}

application/xml, text/xml

Sample:
<GetPushNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models">
  <memberAccountId>2</memberAccountId>
  <policyIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </policyIdList>
  <securityKey>sample string 1</securityKey>
</GetPushNotificationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfPushNotificationMessage
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Entity

PushNotificationMessage

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Entity": {
    "BadgeCounter": 1,
    "Messages": [
      {
        "ActivityId": 1,
        "Subject": "sample string 2",
        "Body": "sample string 3",
        "Summary": "sample string 4",
        "CreatedDateTime": "2025-08-28T10:54:24.6304371+02:00",
        "DisplayDate": "sample string 6",
        "IsRead": true
      },
      {
        "ActivityId": 1,
        "Subject": "sample string 2",
        "Body": "sample string 3",
        "Summary": "sample string 4",
        "CreatedDateTime": "2025-08-28T10:54:24.6304371+02:00",
        "DisplayDate": "sample string 6",
        "IsRead": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfPushNotificationMessageA16EjPBX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core">
  <Entity xmlns:d2p1="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models">
    <d2p1:BadgeCounter>1</d2p1:BadgeCounter>
    <d2p1:Messages>
      <d2p1:PushNotificationMessages>
        <d2p1:ActivityId>1</d2p1:ActivityId>
        <d2p1:Body>sample string 3</d2p1:Body>
        <d2p1:CreatedDateTime>2025-08-28T10:54:24.6304371+02:00</d2p1:CreatedDateTime>
        <d2p1:DisplayDate>sample string 6</d2p1:DisplayDate>
        <d2p1:IsRead>true</d2p1:IsRead>
        <d2p1:Subject>sample string 2</d2p1:Subject>
        <d2p1:Summary>sample string 4</d2p1:Summary>
      </d2p1:PushNotificationMessages>
      <d2p1:PushNotificationMessages>
        <d2p1:ActivityId>1</d2p1:ActivityId>
        <d2p1:Body>sample string 3</d2p1:Body>
        <d2p1:CreatedDateTime>2025-08-28T10:54:24.6304371+02:00</d2p1:CreatedDateTime>
        <d2p1:DisplayDate>sample string 6</d2p1:DisplayDate>
        <d2p1:IsRead>true</d2p1:IsRead>
        <d2p1:Subject>sample string 2</d2p1:Subject>
        <d2p1:Summary>sample string 4</d2p1:Summary>
      </d2p1:PushNotificationMessages>
    </d2p1:Messages>
  </Entity>
  <Message>sample string 2</Message>
  <Success>true</Success>
</ResponseOfPushNotificationMessageA16EjPBX>