update_revrec_profile_m Sample Call and Response
This example shows a call to update_revrec_profile_m that revises an existing revenue recognition profile so that revenue is recognized on order fulfillment rather than on payment, based on the update_revrec_profile_m method defined in methods_m_r73.yml, Admin Tools API, release seventy-three.
This example covers every required field, plus the three optional flags that control when revenue is recognized. It does not cover the client-defined identifier alternative to the profile identifier used here.
Sample call
{
"rest_call": "update_revrec_profile_m",
"output_format": "json",
"client_no": 100024,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"profile_id": 3301,
"profile_name": "Standard Subscription Revrec",
"profile_desc": "Recognizes revenue for standard subscription plans on order fulfillment rather than on payment date.",
"on_plan_payment_date": 0,
"on_order_payment_date": 0,
"on_order_fulfill_date": 1
}
The rest_call and output_format fields sit outside the method’s own documented arguments in the yml; the REST layer common to the Admin Tools API adds these two fields to every call. Client_no and auth_key come from the shared param_defaults block.
Profile_id identifies the existing revenue recognition profile being updated; it is one side of an alternative pair with client_profile_id, and this example uses the Aria-assigned numeric identifier. Profile_name is the method’s other required field (nullable: false).
On_plan_payment_date, on_order_payment_date, and on_order_fulfill_date are each a flag of zero or one. This example sets on_plan_payment_date and on_order_payment_date to zero and on_order_fulfill_date to one, meaning revenue is recognized when the order is fulfilled rather than when a plan payment or order payment is received.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"profile_id": 3301
}
An error_code of zero and an error_msg of “OK” indicate that Aria updated the revenue recognition profile successfully. Profile_id echoes back the Aria-assigned identifier for the profile that was updated.
Left out of this example is the client_profile_id alternative identifier.