get_dunning_processes_m Sample Call and Response
This example shows an administrative client retrieving the plans and payment methods associated with two specific dunning processes, along with per-step detail for each, based on the get_dunning_processes_m method defined in methods_m_r73.yml.
This example covers a standard multi-step dunning process and a single-step grace-period process, each requested by its Aria-assigned dunning process number. It does not cover filtering the results by payment method type or by associated master plan, which this method also supports as separate, independent filters.
Sample call
{
"rest_call": "get_dunning_processes_m",
"output_format": "json",
"client_no": 400218,
"auth_key": "7f3a9c1d2e4b5f6a8c9d0e1f2a3b4c5d",
"dunning_processes": [
{ "dunning_process_no": 71010 },
{ "dunning_process_no": 71022 }
],
"include_dunning_steps": "true"
}
Besides client_no and auth_key, this call passes dunning_processes, an array of filter entries, each of which identifies one dunning process to retrieve; within each entry, dunning_process_no and client_dunning_process_id form an alt_required_field pair, so either identifier alone is enough, and this example uses the Aria-assigned numeric identifier for both entries. dunning_processes, along with the separate pay_method_types and master_plans filters and include_dunning_steps, are all optional; omitting dunning_processes entirely would return every dunning process defined for the client instead of only the two requested here. include_dunning_steps is set to true so that the response includes each process’s per-step detail, include_all_subscriptions_ind, and final_step_template_no.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"dunning_process_details": [
{
"dunning_process_no": 71010,
"client_dunning_process_id": "STD-DUNNING",
"dunning_process_name": "Standard Dunning",
"dunning_process_description": "Default dunning process applied to past-due recurring accounts",
"client_default_ind": 1,
"total_step_count": 3,
"mapped_master_plans": [
{ "plan_no": 3050, "client_plan_id": "GOLD-MONTHLY", "plan_name": "Gold Monthly Plan" },
{ "plan_no": 3060, "client_plan_id": "GOLD-ANNUAL", "plan_name": "Gold Annual Plan" }
],
"mapped_pay_method_types": [
{ "pay_method_type_cd": 1, "pay_method_type": "Credit card" },
{ "pay_method_type_cd": 2, "pay_method_type": "Electronic Check (ACH)" }
],
"include_all_subscriptions_ind": 1,
"final_step_template_no": "DUN_FINAL_STD",
"dunning_process_steps": [
{
"step_no": 1,
"step_description": "First payment reminder",
"status_duration_days": 5,
"collect_ind": 1,
"notification_template_no": "DUN_STEP1_REMINDER",
"email_destination": "Account & Billing",
"fee_type": "None"
},
{
"step_no": 2,
"step_description": "Second reminder with late fee",
"status_duration_days": 7,
"collect_ind": 1,
"notification_template_no": "DUN_STEP2_LATEFEE",
"email_destination": "Billing only",
"fee_type": "Flat Fee",
"fee_currencies": [
{ "currency_cd": "USD", "fee_amount": "15.00" },
{ "currency_cd": "EUR", "fee_amount": "13.50" }
]
}
]
},
{
"dunning_process_no": 71022,
"client_dunning_process_id": "GRACE-30",
"dunning_process_name": "Thirty Day Grace Dunning",
"dunning_process_description": "Extended grace period process for enterprise accounts",
"client_default_ind": 0,
"total_step_count": 1,
"include_all_subscriptions_ind": 0,
"final_step_template_no": "DUN_FINAL_GRACE",
"dunning_process_steps": [
{
"step_no": 1,
"step_description": "Single reminder before suspension",
"status_duration_days": 30,
"collect_ind": 0,
"notification_template_no": "DUN_STEP1_GRACE",
"email_destination": "Default",
"fee_type": "None"
}
]
}
]
}
An error_code of zero with an error_msg of “OK” indicates the request succeeded. Because the call requested exactly two dunning processes by number, dunning_process_details contains exactly those two entries, not the client’s full list of dunning processes. client_default_ind of 1 on the first entry means Standard Dunning is defined as the client’s default dunning process; client_default_ind of 0 on the second entry means Thirty Day Grace Dunning is not. total_step_count of 3 on the first entry counts the non-final steps only, excluding the final suspension step, and dunning_process_steps shows two of those three steps as representative examples; a complete response would include one entry per non-final step. mapped_master_plans and mapped_pay_method_types are shown only for the first entry to illustrate their shape; they are optional, nullable arrays, and the second entry omits them to show that a dunning process can have no plans or payment method types mapped to it. collect_ind of 1 means a collection attempt is made during that step, while 0 means it is not. email_destination values shown here (Account & Billing, Billing only, Default) are three of the eight documented human-readable labels for where the dunning notification is sent. fee_type of Flat Fee on the second step of the first process means a fixed fee is assessed, so fee_currencies lists that fee amount in two currencies, United States dollars and euros, separated by currency; fee_type of None on the other steps means no fee is assessed, so fee_currencies is left out. final_step_template_no and include_all_subscriptions_ind appear on both entries only because include_dunning_steps was set to true; omitting that flag would omit these fields along with dunning_process_steps entirely. Left out of this example are the pay_method_types and master_plans input filters (both independent, optional ways to narrow the results by payment method type or associated master plan rather than by dunning process identifier).