Reference for RimuHosting's Data Structures (as used in our REST-ful APIs)

Name: GetPricingPlansResponse

The response to the pricing plans listing resource.

XML Example:
<GetPricingPlansResponse>
  <error_info>IErrorInfo</error_info>
  zero or N[<extended_error_infos>IErrorInfo</extended_error_infos>]
  <human_readable_message>xsd:string</human_readable_message>
  <plan_filter>PlanFilter</plan_filter>
  zero or N[<pricing_plan_infos>PricingPlanInfo</pricing_plan_infos>]
  <redirect_uri>xsd:string</redirect_uri>
  <response_display_duration_type>SHORT | REGULAR | PERMANENT</response_display_duration_type>
  <response_type>OK | ERROR</response_type>
  <status_code>xsd:int</status_code>
  <status_message>xsd:string</status_message>
</GetPricingPlansResponse>
JSON Example:
{"GetPricingPlansResponse":
 {
   "error_info": IErrorInfo,
   "extended_error_infos": [IErrorInfo],
   "human_readable_message": String,
   "plan_filter": PlanFilter,
   "pricing_plan_infos": [PricingPlanInfo],
   "redirect_uri": String,
   "response_display_duration_type": 'SHORT' | 'REGULAR' | 'PERMANENT',
   "response_type": 'OK' | 'ERROR',
   "status_code": Number,
   "status_message": String,
 }
}

Elements
NameTypeRequiredNillableDefault ValueDescription
error_infoIErrorInfofalsefalseIf the response type is an error, then this can contain more information about the error.
extended_error_infoszero or N[IErrorInfo]falsefalsee.g.
human_readable_messagexsd:stringfalsefalseA message summarizing the request result.
plan_filterPlanFilterfalsefalseThe plan filter, if any, we used to select the resulting pricing plans.
pricing_plan_infoszero or N[PricingPlanInfo]falsefalseThe pricing plans that match the filter you provided (no filter, then all current plans are returned).
redirect_urixsd:stringfalsefalseA suggestion from the server about which URI to go to after this request.
response_display_duration_typeSHORT | REGULAR | PERMANENTfalsefalseAn indicator for a UI about how long to display a message.
response_typeOK | ERRORfalsefalseWhether the response is an AOK or error response.
status_codexsd:intfalsefalseMay the status code be for ever 2xx.
status_messagexsd:stringfalsefalseThe status message (should match the status code).