POST api/BillingService/AddProduct

Documentation for 'AddProduct'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "product_name": "sample string 1",
  "netsuite_id": "sample string 2",
  "product_price": 3.0,
  "product_type": 0,
  "product_detail": "sample string 4",
  "currency_type": "sample string 5",
  "stock_count": 6,
  "init_product_state": 0,
  "min_period": 0,
  "specified_days": 7,
  "return_cost": 8.0
}

application/xml, text/xml

Sample:
<AddProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.Billing">
  <currency_type>sample string 5</currency_type>
  <init_product_state>None</init_product_state>
  <min_period>Once</min_period>
  <netsuite_id>sample string 2</netsuite_id>
  <product_detail>sample string 4</product_detail>
  <product_name>sample string 1</product_name>
  <product_price>3</product_price>
  <product_type>None</product_type>
  <return_cost>8</return_cost>
  <specified_days>7</specified_days>
  <stock_count>6</stock_count>
</AddProductRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "product_text_id": "sample string 1",
  "product_name": "sample string 2",
  "netsuite_id": "sample string 3",
  "product_price": 4.0,
  "product_type": 0,
  "product_detail": "sample string 5",
  "currency_type": "sample string 6",
  "stock_count": 7,
  "product_state": 0,
  "min_period": 0,
  "specified_days": 8,
  "return_cost": 9.0,
  "tax_amount": 10.0,
  "is_success": true,
  "error_message": "sample string 12",
  "exception_name": "sample string 13",
  "error_code": 14
}

application/xml, text/xml

Sample:
<AddProductResponse 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">14</error_code>
  <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 12</error_message>
  <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 13</exception_name>
  <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success>
  <currency_type>sample string 6</currency_type>
  <min_period>Once</min_period>
  <netsuite_id>sample string 3</netsuite_id>
  <product_detail>sample string 5</product_detail>
  <product_name>sample string 2</product_name>
  <product_price>4</product_price>
  <product_state>None</product_state>
  <product_text_id>sample string 1</product_text_id>
  <product_type>None</product_type>
  <return_cost>9</return_cost>
  <specified_days>8</specified_days>
  <stock_count>7</stock_count>
  <tax_amount>10</tax_amount>
</AddProductResponse>