add_rate_schedule_on_plan_m Sample Call and Response
This example shows a client creating a new, usage-tiered rate schedule and attaching it to an existing plan. It is based on the add_rate_schedule_on_plan_m method as defined in methods_m_r73.yml, Admin Tools API.
This example includes every required field plus a representative set of optional fields that together describe one monthly rate schedule with two usage tiers for a single service. It does not cover future-dated rate changes, a follow-up default rate schedule, or every optional billing-interval combination the method accepts.
Sample call
{
"rest_call": "add_rate_schedule_on_plan_m",
"output_format": "json",
"client_no": 10023,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"plan_no": 20456,
"schedule_name": "Standard Monthly Rate Schedule",
"currency_cd": "usd",
"client_rate_schedule_id": "RS-STD-2026-001",
"is_default": 1,
"recurring_billing_interval": 1,
"recurring_billing_period_type": 3,
"usage_billing_interval": 1,
"usage_billing_period_type": 3,
"available_from_dt": "2026-08-01",
"service": [
{
"service_no": 30456,
"tier": [
{
"from": 1,
"to": 1000,
"description": "First 1,000 units",
"amount": 0.05
},
{
"from": 1001,
"description": "Usage beyond 1,000 units",
"amount": 0.03
}
]
}
]
}
The rest_call and output_format fields sit outside the method’s own documented arguments; the REST layer adds them to every call, with rest_call naming the method and output_format requesting a JSON response. Within the method’s own arguments, client_no and auth_key identify and authenticate the client. The plan_no field identifies the plan that receives the new rate schedule; it forms an alternative-field pair with client_plan_id, and this example supplies the Aria-assigned plan_no rather than the client-defined identifier. Similarly, service_no identifies the service the tiers apply to and is used here in place of its alternative, client_service_id. The recurring_billing_period_type and usage_billing_period_type fields are each drawn from an enumerated list of one, two, or three, meaning daily, weekly, or monthly respectively; this example uses three for both, meaning the schedule bills recurring and usage charges on a monthly cycle. The is_default field is set to one, meaning this schedule is the default rate schedule for the plan. The service field is an array because a rate schedule can cover more than one service on the plan, even though this example shows only one. Within each service entry, the tier field is likewise an array, because a rate schedule commonly defines several usage tiers; this example shows two tiers, the first covering usage from one through one thousand units at zero point zero five per unit, and the second covering all usage beyond one thousand units at zero point zero three per unit, with no to value supplied to indicate there is no upper limit. This example omits the optional followup_rs_no and client_followup_rs_id alternative-field pair, along with future_rate, future_change_dt, and each tier’s future_amount field, since this schedule does not define a future-dated rate change.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"rate_schedule": {
"schedule_no": 88765,
"client_rate_schedule_id": "RS-STD-2026-001"
}
}
An error_code of zero, paired with an error_msg of “OK,” indicates that Aria created the rate schedule successfully. The rate_schedule object represents the single schedule just created, not a repeatable array, because each call to add_rate_schedule_on_plan_m creates exactly one new rate schedule. The schedule_no field is the numeric identifier Aria assigns to the new schedule, and client_rate_schedule_id echoes back the client-defined identifier supplied in the call. This example leaves out nothing else from the method’s return structure; the full response consists only of the error indicators and the single rate_schedule object shown here.