Skip to main content
Aria Knowledge Central

create_revrec_profile_m Sample Call and Response

This example shows a call to create_revrec_profile_m that creates a new revenue recognition profile, which controls whether revenue is recognized based on plan payment dates, order payment dates, or order fulfillment dates. It is based on methods_m_r73.yml, Admin Tools API.

This example covers the profile name, description, client-defined identifier, and the three recognition-timing flags; it does not cover assigning this profile to any specific plan or account, since that assignment is handled elsewhere.

Sample call

{
  "rest_call": "create_revrec_profile_m",
  "output_format": "json",
  "client_no": 10023,
  "auth_key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
  "profile_name": "Fulfillment-Based Recognition",
  "client_profile_id": "REVREC-FULFILL-01",
  "profile_desc": "Recognizes revenue when the order fulfillment date is reached rather than on payment or invoicing dates",
  "on_plan_payment_date": 0,
  "on_order_payment_date": 0,
  "on_order_fulfill_date": 1
}

The fields rest_call and output_format are REST-layer additions that sit outside the method’s own documented arguments in the yml; you supply rest_call with the method name and output_format with json to request a JSON response. The profile_name field is the only required argument beyond the standard client_no and auth_key credentials. The client_profile_id and profile_desc fields are optional identifying and descriptive text. Each of on_plan_payment_date, on_order_payment_date, and on_order_fulfill_date is an independent flag accepting 0 or 1; this example sets only on_order_fulfill_date to 1, so revenue recognizes on the order’s fulfillment date rather than on plan payment or order payment dates, though the yml does not indicate that these three flags are mutually exclusive.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "profile_id": 812
}

An error_code value of zero, together with an error_msg value of "OK", indicates that Aria created the revenue recognition profile successfully. The profile_id value is the Aria-assigned unique identifier for the newly created profile. This example does not attempt to show a failure response.

TOP
  • Was this article helpful?