DELETE api/v2/sms/messages/pendings

This method allows the client to cancel all the pending messages specified. Object containing a list of messageIDs that will be cancelled

Request Information

URI Parameters

None.

Body Parameters

DeletePendingRecurringMessagesRequest
NameDescriptionTypeAdditional information
All

Set this to true if all messages excluding those listed in MessageIDs should be deleted

boolean

None.

MessageIDs

List of MessageIDs of messages to be deleted

Collection of string

None.

StartDate

The start date filter for the deletion range

string

None.

EndDate

The end date filter for the deletion range

string

None.

Reference

The reference filter for deletions

string

None.

Destination

The destination filter for deletions

string

None.

Type

Whether it is Pending Or Recurring

PendingRecurringType

None.

Range

The range that was selected

FutureDateRange

None.

Request Formats

application/json, text/json

Sample:
{
  "All": true,
  "MessageIDs": [
    "sample string 1",
    "sample string 2"
  ],
  "StartDate": "sample string 2",
  "EndDate": "sample string 3",
  "Reference": "sample string 4",
  "Destination": "sample string 5",
  "Type": 0,
  "Range": 0
}

application/xml, text/xml

Sample:
<DeletePendingRecurringMessagesRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <All>true</All>
  <MessageIDs>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </MessageIDs>
  <StartDate>sample string 2</StartDate>
  <EndDate>sample string 3</EndDate>
  <Reference>sample string 4</Reference>
  <Destination>sample string 5</Destination>
  <Type>PENDING</Type>
  <Range>ALL</Range>
</DeletePendingRecurringMessagesRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfDeletePendingMessagesResponse
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfDeletePendingMessagesResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {}
  }
}

application/xml, text/xml

Sample:
<ResponseOfDeletePendingMessagesResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <MessageIDs>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </MessageIDs>
    </Detail>
  </ResponseData>
</ResponseOfDeletePendingMessagesResponse>