POST api/BillingService/AddSubProduct
Documentation for 'AddSubProduct'.
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:
{
"sub_product_name": "sample string 1",
"product_text_id": "sample string 2",
"type": 0,
"price": 3.0,
"state": 0,
"shutterstock_image": 4,
"shutterstock_video": 5,
"storyblock_image": 6,
"storyblock_video": 7
}
application/xml, text/xml
Sample:
<AddSubProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.Billing"> <price>3</price> <product_text_id>sample string 2</product_text_id> <shutterstock_image>4</shutterstock_image> <shutterstock_video>5</shutterstock_video> <state>None</state> <storyblock_image>6</storyblock_image> <storyblock_video>7</storyblock_video> <sub_product_name>sample string 1</sub_product_name> <type>None</type> </AddSubProductRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{
"sub_product_name": "sample string 1",
"sub_product_text_id": "sample string 2",
"type": 0,
"price": 3.0,
"state": 0,
"create_time_utc": "sample string 4",
"update_time_utc": "sample string 5",
"shutterstock_image": 6,
"shutterstock_video": 7,
"storyblock_image": 8,
"storyblock_video": 9,
"is_success": true,
"error_message": "sample string 11",
"exception_name": "sample string 12",
"error_code": 13
}
application/xml, text/xml
Sample:
<AddSubProductResponse 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">13</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 11</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 12</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> <create_time_utc>sample string 4</create_time_utc> <price>3</price> <shutterstock_image>6</shutterstock_image> <shutterstock_video>7</shutterstock_video> <state>None</state> <storyblock_image>8</storyblock_image> <storyblock_video>9</storyblock_video> <sub_product_name>sample string 1</sub_product_name> <sub_product_text_id>sample string 2</sub_product_text_id> <type>None</type> <update_time_utc>sample string 5</update_time_utc> </AddSubProductResponse>