POST api/BillingService/AddPaidSubscription

Documentation for 'AddPaidSubscription'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "device_guid": "sample string 1",
  "period": 64,
  "specified_days": 3,
  "product_text_id": "sample string 4",
  "promotion_code": "sample string 5"
}

application/xml, text/xml

Sample:
<AddSubscriptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.Billing">
  <device_guid>sample string 1</device_guid>
  <period>64</period>
  <product_text_id>sample string 4</product_text_id>
  <promotion_code>sample string 5</promotion_code>
  <specified_days>3</specified_days>
</AddSubscriptionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "subscription_text_id": "sample string 1",
  "invoice_number": "sample string 2",
  "is_success": true,
  "error_message": "sample string 4",
  "exception_name": "sample string 5",
  "error_code": 6
}

application/xml, text/xml

Sample:
<AddSubscriptionResponse 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">6</error_code>
  <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 4</error_message>
  <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 5</exception_name>
  <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success>
  <invoice_number>sample string 2</invoice_number>
  <subscription_text_id>sample string 1</subscription_text_id>
</AddSubscriptionResponse>