POST api/BillingService/ChangeSubscriptionPlan

Documentation for 'ChangeSubscriptionPlan'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "current_plan_name": "sample string 1",
  "change_to_plan_name": "sample string 2"
}

application/xml, text/xml

Sample:
<ChangeSubscriptionPlanRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.Billing">
  <change_to_plan_name>sample string 2</change_to_plan_name>
  <current_plan_name>sample string 1</current_plan_name>
</ChangeSubscriptionPlanRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "invoice_number": "sample string 1",
  "cost": 2.0,
  "currency": "sample string 3",
  "is_success": true,
  "error_message": "sample string 5",
  "exception_name": "sample string 6",
  "error_code": 7
}

application/xml, text/xml

Sample:
<ChangeSubscriptionPlanResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.Billing">
  <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">7</error_code>
  <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 5</error_message>
  <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 6</exception_name>
  <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success>
  <cost>2</cost>
  <currency>sample string 3</currency>
  <invoice_number>sample string 1</invoice_number>
</ChangeSubscriptionPlanResponse>