aria-ux

(0 reviews)

postEvent

/event [POST]

This operation will send notifications to customer based on Aria Events that is subscribed by ESB . Event payload from Aria will have complete information related to notification. This information will be used to sent notification email messages or SMS to customer.

As of now this integration support for two eventIds (event_id - 744 & 901)

  • event_id - 744

resources/image-21830f49-9310-45ad-a03c-0b1469e0f9fe.png

  • event_id - 901

Process sequence diagram

resources/aria-ux-42635d0c-7e0a-4a18-a877-1d6bc5e5a99e.png

Uses Cases

The internal use cases to the method are defined.

CaseDescription
1Dunning Notification
2Invoice Notification

URL

https://[localhost]:[port]/aria-ux/v1/{businessId}/event

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.Y
namevaluedescriptionrequired
client_idstringClient Id value for Client Id Enforcement policy. Environment Specific valueY
client_secretstringClient secret value for Client Id Enforcement policy. Environment Specific ValueY
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications. Minimum characters: 16 Maximum characters: 64N
Request

744 Event Request:

curl --location 'https://nonprod.esb.cloud.lla.com/dev/aria-ux/aria-ux/v1/PR/event' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92cDD' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic ZjI2OTYwNzgwMzIxNDUxYmIxODUwODk1Y2U1MDIzYzE6NDI0M2VmYzdmQjJFNEMzNThhOEVjMjMyOGM4MUNlZDI=' \
--data-raw '<apf2doc>
    <request>
        <version>3.3</version>
        <sender>A</sender>
        <transaction_id>322544891</transaction_id>
        <action>M</action>
        <class_name>A</class_name>
    </request>
    <acct_data>
        <client_no>3760769</client_no>
        <acct_no>36669641</acct_no>
        <client_acct_id>41000268-40000107</client_acct_id>
        <userid>21517653-21518857</userid>
        <password>$SH1$5000$8$6478788F7A25D246$32$D796A92DED94883CC1DB94D0122C3E3729EB64F188E5DA1530BD5FA2FAB70607</password>
        <status_cd>1</status_cd>
        <notify_method>13</notify_method>
        <currency>usd</currency>
        <test_acct>N</test_acct>
        <last_acct_comment>Email message of type "Dunning" with subject "FINAL NOTICE" created but not (or not yet) sent to account holder "peacockmediumrisk@gmail.com" on 6/13/2023 at 01:59:48</last_acct_comment>
    </acct_data>
    <acct_contact>
        <first_name>Medium Risk</first_name>
        <last_name>Dunning</last_name>
        <address1>126 Calle Aponte</address1>
        <city>San Juan</city>
        <state_prov>PR</state_prov>
        <postal_code>00911</postal_code>
        <country>US</country>
        <phone>17876041971</phone>
        <email>pooja-m.asangi@capgemini.com</email>
    </acct_contact>
    <notify_tmplt_group_data>
        <notify_tmplt_group>
            <notify_tmplt_group_id>LLA_PR_ENGLISH_NTG</notify_tmplt_group_id>
            <notify_tmplt_group_label>LLA Puerto Rico English NTG</notify_tmplt_group_label>
            <notify_tmplt_group_assign_lvl>ACCOUNT</notify_tmplt_group_assign_lvl>
        </notify_tmplt_group>
    </notify_tmplt_group_data>
    <master_plan_instance_data>
        <master_plan_instance>
            <master_plan_instance_no>49321146</master_plan_instance_no>
            <client_master_plan_instance_id>MPI-41000268-40000107</client_master_plan_instance_id>
            <plan_no>10429164</plan_no>
            <client_plan_id>Account_Master_Plan</client_plan_id>
            <plan_name>Account Master Plan</plan_name>
            <plan_activation_date>2023-06-06</plan_activation_date>
            <status_cd>1</status_cd>
            <resp_level_cd>1</resp_level_cd>
            <plan_units>1</plan_units>
            <billing_group_no>18340652</billing_group_no>
            <client_billing_group_id>21517653-21518857_BG</client_billing_group_id>
            <dunning_group_no>20391637</dunning_group_no>
            <client_dunning_group_id>21517653-21518857_DG</client_dunning_group_id>
            <dunning_state>1</dunning_state>
            <dunning_step>6</dunning_step>
            <dunning_step_description>Due Date Notice|PRE|PRE|PRE|PRE|ES</dunning_step_description>
            <mpi_billing_dates>
                <bill_day>7</bill_day>
                <created_date>2023-06-06</created_date>
                <next_bill_date>2023-07-07</next_bill_date>
                <last_bill_date>2023-06-07</last_bill_date>
                <recurring_bill_thru_date>2023-07-06</recurring_bill_thru_date>
                <usage_bill_thru_date>2023-06-06</usage_bill_thru_date>
                <plan_date>2023-06-06</plan_date>
                <status_date>2023-06-06</status_date>
                <next_dunning_date>2023-06-14</next_dunning_date>
            </mpi_billing_dates>
            <mpi_unit_instance_data>
                <mpi_unit_instance>
                    <plan_unit_inst_no>52994301</plan_unit_inst_no>
                    <client_plan_unit_inst_id>52994301</client_plan_unit_inst_id>
                    <plan_unit_inst_status>Active</plan_unit_inst_status>
                </mpi_unit_instance>
            </mpi_unit_instance_data>
            <supp_plan_instance_data>
                <supp_plan_instance>
                    <plan_instance_no>49321147</plan_instance_no>
                    <client_plan_instance_id>8027d000001pATeAAM</client_plan_instance_id>
                    <plan_no>10434801</plan_no>
                    <client_plan_id>PR_B2C_Unlimited_Your_Way</client_plan_id>
                    <plan_name>Liberty U-Pick Mobile</plan_name>
                    <plan_activation_date>2023-06-06</plan_activation_date>
                    <status_cd>1</status_cd>
                    <plan_units>1</plan_units>
                    <spi_billing_dates>
                        <bill_day>7</bill_day>
                        <next_bill_date>2023-07-07</next_bill_date>
                        <last_bill_date>2023-06-07</last_bill_date>
                        <recurring_bill_thru_date>2023-07-06</recurring_bill_thru_date>
                        <usage_bill_thru_date>2023-06-06</usage_bill_thru_date>
                    </spi_billing_dates>
                    <spi_unit_instance_data>
                        <spi_unit_instance>
                            <plan_unit_inst_no>52994302</plan_unit_inst_no>
                            <client_plan_unit_inst_id>52994302</client_plan_unit_inst_id>
                            <plan_unit_inst_status>Active</plan_unit_inst_status>
                        </spi_unit_instance>
                    </spi_unit_instance_data>
                    <spi_supp_fields_data>
                        <spi_supp_field>
                            <field_name>MSISDN</field_name>
                            <field_value>17874051530</field_value>
                        </spi_supp_field>
                        <spi_supp_field>
                            <field_name>User Name</field_name>
                            <field_value>Medium Risk,Dunning</field_value>
                        </spi_supp_field>
                        <spi_supp_field>
                            <field_name>Store ID</field_name>
                            <field_value>755</field_value>
                        </spi_supp_field>
                        <spi_supp_field>
                            <field_name>Device Type</field_name>
                            <field_value>Mobile Phone</field_value>
                        </spi_supp_field>
                    </spi_supp_fields_data>
                </supp_plan_instance>
            </supp_plan_instance_data>
        </master_plan_instance>
    </master_plan_instance_data>
    <event_data>
        <event>
            <event_id>744</event_id>
            <event_label>Account Master Plan Instance Dunning Degrade Date Changed</event_label>
        </event>
    </event_data>
</apf2doc>'

901 Event Request:

curl --location 'https://nonprod.esb.cloud.lla.com/dev/aria-ux/aria-ux/v1/PR/event' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92cDD' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic ZjI2OTYwNzgwMzIxNDUxYmIxODUwODk1Y2U1MDIzYzE6NDI0M2VmYzdmQjJFNEMzNThhOEVjMjMyOGM4MUNlZDI=' \
--data-raw '<apf2doc>
    <request>
        <version>3.3</version>
        <sender>A</sender>
        <transaction_id>689108777</transaction_id>
        <action>M</action>
        <class>T</class>
    </request>
    <account>
        <client_no>5025549</client_no>
        <acct_no>33345845</acct_no>
        <client_acct_id>41000268-40000107</client_acct_id>
        <userid>DAVE2023050201</userid>
        <master_plan_instances>
            <master_plan_instance_data>
                <plan_instance_no>2267076</plan_instance_no>
                <client_plan_instance_id>2267076</client_plan_instance_id>
                <resp_level_cd>1</resp_level_cd>
            </master_plan_instance_data>
        </master_plan_instances>
    </account>
    <notify_tmplt_group_data>
        <notify_tmplt_group>
            <notify_tmplt_group_id>lla_pr_english_ntg</notify_tmplt_group_id>
            <notify_tmplt_group_label>LLA Puerto Rico English NTG</notify_tmplt_group_label>
            <notify_tmplt_group_assign_lvl>ACCOUNT</notify_tmplt_group_assign_lvl>
        </notify_tmplt_group>
    </notify_tmplt_group_data>
    <financial_transaction_groups>
        <financial_transaction_group>
            <object_type>Invoice</object_type>
            <object_no>1199243698</object_no>
            <billing_group_no>1014975</billing_group_no>
            <client_billing_group_id>1014975</client_billing_group_id>
            <total_amount>0</total_amount>
        </financial_transaction_group>
    </financial_transaction_groups>
    <financial_transactions>
        <financial_transaction>
            <financial_trans_id>-1</financial_trans_id>
            <financial_trans_granular_id>1199243698</financial_trans_granular_id>
            <financial_trans_type_no>0</financial_trans_type_no>
            <financial_trans_type_label>Invoice Created</financial_trans_type_label>
            <financial_trans_gl_type>D</financial_trans_gl_type>
            <financial_trans_date>2024-03-13 12: 40: 33</financial_trans_date>
            <financial_trans_amount>0</financial_trans_amount>
            <financial_trans_inv_type_cd>F</financial_trans_inv_type_cd>
        </financial_transaction>
    </financial_transactions>
    <posting_info>
        <posting_status_cd>1</posting_status_cd>
        <posting_user>System</posting_user>
        <posting_date>2024-03-13 12: 40: 38</posting_date>
    </posting_info>
    <event_data>
        <event>
            <event_id>901</event_id>
            <event_label>Invoice Created</event_label>
        </event>
    </event_data>
</apf2doc>'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
requestobjectrequestN
senderstringSender is Aria so value always "A"Y
transaction_idstringtransaction_idN
actionstringactionN
class_namestringclass_nameN
acct_dataobjectacct_dataN
client_nostringclient_noN
acct_nostringacct_noN
client_acct_idstringclient_acct_idY
useridstringuseridN
passwordstringpasswordN
status_cdstringstatus_cdN
notify_methodstringnotify_methodN
currencystringcurrencyN
test_acctstringtest_acctN
last_acct_commentstringlast_acct_commentN
acct_contactobjectacct_contactN
first_namestringfirst_nameN
last_namestringlast_nameN
company_namestringcompany_nameN
address1stringaddress1N
citystringcityN
state_provstringstate_provN
postal_codestringpostal_codeN
countrystringcountryN
phonestringphoneN
emailstringemailN
notify_tmplt_group_dataobjectnotify_tmplt_group_dataN
notify_tmplt_groupobjectnotify_tmplt_groupN
notify_tmplt_group_assign_lvlstringnotify_tmplt_group_assign_lvlN
notify_tmplt_group_idstringnotify_tmplt_group_idY*
notify_tmplt_group_labelstringnotify_tmplt_group_labelN
master_plan_instance_dataobjectmaster_plan_instance_dataN
master_plan_instanceobjectmaster_plan_instanceN
master_plan_instance_nostringmaster_plan_instance_noN
client_master_plan_instance_idstringclient_master_plan_instance_idY
plan_nostringplan_noN
client_plan_idstringclient_plan_idN
plan_namestringplan_nameN
plan_activation_datestringplan_activation_dateN
status_cdstringstatus_cdN
resp_level_cdstringresp_level_cdN
plan_unitsstringplan_unitsN
billing_group_nostringbilling_group_noN
client_billing_group_idstringclient_billing_group_idN
dunning_group_nostringdunning_group_noN
client_dunning_group_idstringclient_dunning_group_idN
dunning_statestringdunning_stateY
dunning_stepstringdunning_stepN
dunning_step_descriptionstringdunning_step_descriptionY
mpi_billing_datesobjectmpi_billing_datesN
bill_daystringbill_dayN
created_datestringcreated_dateN
next_bill_datestringnext_bill_dateN
last_bill_datestringlast_bill_dateN
recurring_bill_thru_datestringrecurring_bill_thru_dateN
usage_bill_thru_datestringusage_bill_thru_dateN
plan_datestringplan_dateN
status_datestringstatus_dateN
next_dunning_datestringnext_dunning_dateN
mpi_unit_instance_dataobjectmpi_unit_instance_dataN
mpi_unit_instanceobjectmpi_unit_instanceN
plan_unit_inst_nostringplan_unit_inst_noN
client_plan_unit_inst_idstringclient_plan_unit_inst_idN
plan_unit_inst_statusstringplan_unit_inst_statusN
supp_plan_instance_dataobjectsupp_plan_instance_dataN
supp_plan_instanceobjectsupp_plan_instanceN
plan_instance_nostringplan_instance_noN
client_plan_instance_idstringclient_plan_instance_idN
plan_nostringplan_noN
client_plan_idstringclient_plan_idN
plan_namestringplan_nameN
plan_activation_datestringplan_activation_dateN
status_cdstringstatus_cdN
plan_unitsstringplan_unitsN
spi_billing_datesstringspi_billing_datesN
bill_daystringbill_dayN
next_bill_datestringnext_bill_dateN
last_bill_datestringlast_bill_dateN
recurring_bill_thru_datestringrecurring_bill_thru_dateN
usage_bill_thru_datestringusage_bill_thru_dateN
spi_unit_instance_dataobjectspi_unit_instance_dataN
spi_unit_instanceobjectspi_unit_instanceN
plan_unit_inst_nostringplan_unit_inst_noN
client_plan_unit_inst_idstringclient_plan_unit_inst_idN
plan_unit_inst_statusstringplan_unit_inst_statusN
spi_supp_fields_dataobjectspi_supp_fields_dataN
spi_supp_fieldobjectspi_supp_fieldN
field_name [MSISDN]string"MSISDN"Y*
field_valuestringMSISDN numberY*
event_dataobjectevent_dataN
eventobjecteventN
event_idstringevent_idY
event_labelstringevent_labelN

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - POST request processed and Item Created.

SUCCESS

Reviews