Skip to main content
Aria Knowledge Central

get_recurring_credit_templates_m Sample Call and Response

This example shows a client retrieving the complete list of recurring credit templates it has created, based on the get_recurring_credit_templates_m method defined in methods_m_r73.yml.

This example includes every required field for the call and a representative set of returned template summaries. It does not cover the eligibility, discount, and coupon detail of a single template; get_recurring_credit_template_details_m covers that.

Sample call

{
  "rest_call": "get_recurring_credit_templates_m",
  "output_format": "json",
  "client_no": 60123,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}

The rest_call and output_format fields are envelope fields that the REST layer adds to every call; neither appears in the method’s own documented arguments. The call requires only client_no, Aria’s identifier for the client requesting the list, and auth_key, the authentication key issued to that client. The method takes no filter arguments, since it always returns every recurring credit template the client has created.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "credit_templates": [
    {
      "recurring_credit_template_no": 7010,
      "credit_template_name": "Anniversary Service Credit",
      "client_credit_template_id": "anniversary-credit"
    },
    {
      "recurring_credit_template_no": 7011,
      "credit_template_name": "Referral Bonus Credit",
      "client_credit_template_id": "referral-bonus-credit"
    }
  ]
}

An error_code of zero and an error_msg of “OK” indicate that the credit template list was retrieved successfully. The credit_templates array holds one entry per recurring credit template the client has created; a real client could have more templates than the two entries shown here. Each entry carries only its identifying information (recurring_credit_template_no, credit_template_name, and client_credit_template_id); the eligibility rules, discount amount, and associated coupons for each template are returned only by get_recurring_credit_template_details_m, not by this list-level method.

TOP
  • Was this article helpful?