POST api/BillingService/UpdatePromotion
Documentation for 'UpdatePromotion'.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
request | Documentation for 'request'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "promotion_name": "sample string 1", "promotion_type": 0, "promotion_code": "sample string 2", "scope": 0, "discount_type": 0, "discount_value": 1.0, "description": "sample string 3", "terms_and_conditions": "sample string 4", "available_from_utc_time": "sample string 5", "expired_utc_time": "sample string 6", "duration": 1, "is_user_used": true }
application/xml, text/xml
Sample:
<UpdatePromotionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.Billing"> <available_from_utc_time>sample string 5</available_from_utc_time> <description>sample string 3</description> <discount_type>None</discount_type> <discount_value>1</discount_value> <duration>1</duration> <expired_utc_time>sample string 6</expired_utc_time> <is_user_used>true</is_user_used> <promotion_code>sample string 2</promotion_code> <promotion_name>sample string 1</promotion_name> <promotion_type>None</promotion_type> <scope>All</scope> <terms_and_conditions>sample string 4</terms_and_conditions> </UpdatePromotionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "is_success": true, "error_message": "sample string 2", "exception_name": "sample string 3", "error_code": 4 }
application/xml, text/xml
Sample:
<Void xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.NewAPI"> <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">4</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 2</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 3</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> </Void>