POST alerts/resend

Available from CRM.COM R9.0.0

Deprecated from CRM.COM R18.0.0

This method is used to re-send rejected alerts. This method is applicable only on rejected alerts. A single alert can be re-send through this method

Resource URL

Parameters

Name

Type

Description


token

String

The token retrieved from the login method


alert_identifier

(mandatory)

Alert Identifier

The identifier of the alert that should be send again. The allowed alert Identifier fields are the following:

Name

Type

Description

id

(semi-optional)

String

The ID of the alert

number

(semi-optional)

String

The number of the alert

Note that only rejected alerts can be specified in this method.


Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Name

Type

Description

id

String

The ID of the retrieved alert

number

String

The number of the retrieved alert

life_cycle_stateString

The life cycle state of the retrieved alert which can be SUCCESSFUL or REJECTED

typeStringThe type of the retrieved alert which can be EMAIL or SMS
entityString

The name of the entity that was communicated through the alert. The supported entities are the following:

  • ACCOUNTSRECEIVABLE
  • ACTIVITIES
  • ADHOCDISCOUNT
  • CONTACTINFORMATION
  • CREDITNOTES

  • INVOICES

  • INVOICECANCELLATIONS

  • JOBS
  • LEADS
  • PAYMENTS
  • PAYMENTCANCELLATIONS
  • REFUNDS
  • REWARDOFFERS
  • SERVICEREQUESTS
  • SUBSCRIPTIONS
  • WALLETS
  • WALLETTRANSACTIONS
  • WRITEOFFS
  • REWARDOFFERS entity is available from CRM.COM R11.0.0
  • LEADS entity is available from CRM.COM R14.0.0
  • ACCOUNTSRECEIVABLE, ADHOCDISCOUNT, CONTACTINFORMATION, CREDITNOTES, INVOICES, INVOICECANCELLATIONS, PAYMENTS, PAYMENTCANCELLATIONS, REFUNDS, WALLETS, WALLETTRANSACTIONS, WRITEOFFS are available from CRM.COM R14.1.0


entity_idStringThe ID of the entity that was communicated through the alert
subjectString

The subject of the retrieved alert. This is applicable only if the type is EMAIL

contentStringThe content of the retrieved alert
recipient_email_addressStringThe email address of the recipient. This is applicable only if the type is EMAIL
recipient_phone_numberNumberThe phone number of the recipient. This is applicable only if the type is SMS
error_codeStringThe code of the error that occurred while sending the alert. This is applicable only for rejected alerts
error_descriptionStringThe description of the error that occurred while sending the alert. This is applicable only for rejected alerts
recipientUser ObjectThe recipient user of the retrieved alert
alert_definitionAlert Definition ObjectThe alert definition that was used to send the alert
workflow_ruleWorkflow Rule ObjectThe workflow rule that triggered the alert
log_informationLog Information ObjectThe log information of the retrieved alert

Referred Objects Response Data

 user object response data

Name

Type

Description

id

String

The ID of the retrieved user

username

String

The user name of the retrieved user

person_name

String

The full name of the retrieved user

email

String

The email of the retrieved user

 alert_definition object response data

Name

Type

Description

id

String

The ID of the retrieved alert definition

alternative_codeStringThe alternative code of the retrieved alert definition
nameStringThe name of the retrieved alert definition
life_cycle_stateString

The life cycle state of the retrieved alert definition. The supported life cycle states are EFFECTIVE or NOT_EFFECTIVE

typeStringThe type of the alert definition which can be EMAIL or SMS

 workflow_rule object response data

Name

Type

Description

id

String

The ID of the retrieved workflow rule

alternative_codeStringThe alternative code of the retrieved workflow rule
nameStringThe name of the retrieved workflow rule
life_cycle_stateString

The life cycle state of the retrieved workflow rule. The supported life cycle states are EFFECTIVE or NOT_EFFECTIVE

 log_information object response data

Name

Type

Description

created_date

Date

The date that the retrieved record was created

updated_date

Date

The last date that the retrieved record was updated

created_by_unit

Unit Object

The unit that created the retrieved record

From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled

Deprecated from CRM.COM R18.0.0

created_by_business_unit

Unit Object

The unit that created the retrieved record

From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled

Available from CRM.COM R18.0.0

created_by_user

User Object

The user that created the retrieved record

From CRM.COM R14.1.0 and onward, person_name and email attributes will be returned as empty, if the related legacy compatibility setting is disabled

updated_by_unit

Unit Object

The last unit that updated the retrieved record

From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled

Deprecated from CRM.COM R18.0.0

updated_by_business_unit

Unit Object

The last unit that updated the retrieved record

Available from CRM.COM R18.0.0

updated_by_user

User Object

The last user that updated the retrieved record

From CRM.COM R14.1.0 and onward, person_name and email attributes will be returned as empty, if the related legacy compatibility setting is disabled

Referred Objects Response Data

 unit object response data

Name

Type

Description

id

String

The ID of the retrieved unit

name

String

The name of the retrieved unit

group_name

String

The name of the group that the retrieved unit belongs to

community_name

String

The name of the community that the retrieved unit belongs to

alternative_code

String

The alternative code of the retrieved unit

description

String

The description of the retrieved unit

 business unit object response data

Name

Type

Description

id

String

The ID of the retrieved business unit

name

String

The name of the retrieved business unit

codeStringThe code of the retrieved business unit
unified_codeString

The unified code of the retrieved business unit

description

String

The description of the retrieved business unit

parent_business_unit_nameStringThe name of the parent business unit that the retrieved business unit belongs to

 user object response data

Name

Type

Description

id

String

The ID of the retrieved user

username

String

The user name of the retrieved user

person_name

String

The full name of the retrieved user

email

String

The email of the retrieved user

Examples

 Example 1

HTTP Method: POST


Request:

Body:

{
          "token":"438BA44BD33B44EEBC77746030A92629",
          "alert_identifier":{"number":"11"}
} 


Response:

{
    "status":
    {
        "message": "",
        "description": "",
        "code": "OK"
    },
    "data":
    {
        "recipient_phone_number": "357232256789",
        "entity": "ACTIVITIES",
        "error_code": "SendingSMSFailException",
        "error_description": "Error:Sending sms failed.  Error: ERROR No Account Found for the Given Credentials. - Description:Sending sms failed.",
        "number": "11",
        "log_information":
        {
            "updated_date": "2016-01-19T11:28:22",
            "created_date": "2016-01-07T13:33:22",
            "created_by_unit":
            {
                "community_name": "Internal Community",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "name": "Admin Unit",
                "group_name": "Main Group",
                "description": "r1",
                "alternative_code": "MG"
            },
            "updated_by_unit":
            {
                "community_name": "Internal Community",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "name": "Admin Unit",
                "group_name": "Main Group",
                "description": "r1",
                "alternative_code": "MG"
            },
            "created_by_user":
            {
                "person_name": "MPAdministrator",
                "username": "MPAdministrator",
                "id": "1",
                "email": "crm.com.tst@gmail.com"
            },
            "updated_by_user":
            {
                "person_name": "Marios Lannister",
                "username": "MPAdministrator",
                "id": "1"
            }
        },
        "life_cycle_state": "REJECTED",
        "alert_definition":
        {
            "life_cycle_state": "EFFECTIVE",
            "type": "SMS",
            "id": "3901B04101C843C4BA80EC6698FA8331",
            "name": "Installation alert SMS",
            "alternative_code": "IAS"
        },
        "entity_id": "FB351B991DFB46FFAD49BDB19B653ED3",
        "content": "New Installation activity ACT000256 assigned to your unit Admin Unit ",
        "recipient":
        {
            "person_name": "m_clerides",
            "username": "m_clerides",
            "id": "D502772234A6A5F3DEBF0D77D06D9703",
            "email": "crm.com.tst@gmail.com"
        },
        "type": "SMS",
        "id": "02F9E6D58FC14B4CB5740451067FDB64",
        "workflow_rule":
        {
            "life_cycle_state": "NOT_EFFECTIVE",
            "id": "70701D9EAD034C52A729BD4EC89C7230",
            "name": "Installations",
            "alternative_code": "I"
        }
    }
}