POST api/Product/SaveProduct

Request Information

URI Parameters

None.

Body Parameters

SaveProductMobileRequest
NameDescriptionTypeAdditional information
CompanyId

decimal number

None.

ProductId

decimal number

None.

ProductName

string

None.

UnitPrice

decimal number

None.

ExternalProductCode

string

None.

VatRate

decimal number

None.

MeasureUnitId

decimal number

None.

State

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1.0,
  "ProductId": 2.0,
  "ProductName": "sample string 3",
  "UnitPrice": 4.0,
  "ExternalProductCode": "sample string 5",
  "VatRate": 6.0,
  "MeasureUnitId": 7.0,
  "State": true
}

application/xml, text/xml

Sample:
<SaveProductMobileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
  <CompanyId>1</CompanyId>
  <ExternalProductCode>sample string 5</ExternalProductCode>
  <MeasureUnitId>7</MeasureUnitId>
  <ProductId>2</ProductId>
  <ProductName>sample string 3</ProductName>
  <State>true</State>
  <UnitPrice>4</UnitPrice>
  <VatRate>6</VatRate>
</SaveProductMobileRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveProductMobileRequest'.

Response Information

Resource Description

SaveProductMobileResponse
NameDescriptionTypeAdditional information
Result

ResultType

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": 0,
  "ErrorMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<SaveProductMobileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
  <_x003C_ErrorMessage_x003E_k__BackingField>sample string 1</_x003C_ErrorMessage_x003E_k__BackingField>
  <_x003C_Result_x003E_k__BackingField>Success</_x003C_Result_x003E_k__BackingField>
</SaveProductMobileResponse>