POST CommonCharges/CreateProduct
Create a Product specific Common Charge
Request Information
URI Parameters
None.
Body Parameters
Specifies ProductCommonCharge
InitPro.Ida.Web.Api.Dto.ProductCommonChargeName | Description | Type | Additional information |
---|---|---|---|
ProductArticleNumber |
Identifies a Product |
string |
Required |
ProductCommonChargeKey |
Your Reference for Product specific CommonCharge - not mandatory |
string |
None. |
CommonChargeId |
Identifier of Common Charge |
integer |
None. |
CommonChargeKey |
Identifies a CommonCharge |
string |
Required |
Name |
Name of Common Charge Required for Update, Create Actions of Base CommonCharge Not Required for Update, Create Actions of Derived Objects ManufacturerBusinessunitCommonCharge, ProductCommonCharge |
string |
None. |
PriceNet |
The Price Required for Update, Create Actions |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProductArticleNumber": "sample string 1", "ProductCommonChargeKey": "sample string 2", "CommonChargeId": 3, "CommonChargeKey": "sample string 4", "Name": "sample string 5", "PriceNet": 6.0 }
application/xml, text/xml
Sample:
<ProductCommonCharge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InitPro.Ida.Web.Api.Dto"> <CommonChargeId>3</CommonChargeId> <CommonChargeKey>sample string 4</CommonChargeKey> <Name>sample string 5</Name> <PriceNet>6</PriceNet> <ProductArticleNumber>sample string 1</ProductArticleNumber> <ProductCommonChargeKey>sample string 2</ProductCommonChargeKey> </ProductCommonCharge>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Statuscode 200 when ok Statuscode 400 when not ok
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.