POST api/Products

Request Information

URI Parameters

None.

Body Parameters

Product
NameDescriptionTypeAdditional information
ProductId

integer

None.

CategoryId

integer

None.

BrandId

integer

None.

Name

string

None.

Image

string

None.

ImageSmallBase64

string

None.

ImageMediumBase64

string

None.

ImageLargeBase64

string

None.

Barcode

string

None.

InternalCode

string

None.

TypeSale

string

None.

Price

decimal number

None.

Remarks

string

Data type: MultilineText

Category

Category

None.

TypeArt

string

None.

pvp_medicity

decimal number

None.

pvp_economicas

decimal number

None.

pvp_puntonatural

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "CategoryId": 1,
  "BrandId": 1,
  "Name": "sample string 2",
  "Image": "sample string 3",
  "ImageSmallBase64": "sample string 4",
  "ImageMediumBase64": "sample string 5",
  "ImageLargeBase64": "sample string 6",
  "Barcode": "sample string 7",
  "InternalCode": "sample string 8",
  "TypeSale": "sample string 9",
  "Price": 10.0,
  "Remarks": "sample string 11",
  "Category": {
    "CategoryId": 1,
    "FarmaEnlaceId": 2,
    "BrandId": 1,
    "Name": "sample string 3",
    "Order": 4,
    "SearchProduct": true,
    "Image": "sample string 6",
    "ParentId": 1,
    "SearchCode": "sample string 7",
    "IsActive": true,
    "ImageLine": "sample string 9"
  },
  "TypeArt": "sample string 12",
  "pvp_medicity": 1.0,
  "pvp_economicas": 1.0,
  "pvp_puntonatural": 1.0
}

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 'Product'.

Response Information

Resource Description

Product
NameDescriptionTypeAdditional information
ProductId

integer

None.

CategoryId

integer

None.

BrandId

integer

None.

Name

string

None.

Image

string

None.

ImageSmallBase64

string

None.

ImageMediumBase64

string

None.

ImageLargeBase64

string

None.

Barcode

string

None.

InternalCode

string

None.

TypeSale

string

None.

Price

decimal number

None.

Remarks

string

Data type: MultilineText

Category

Category

None.

TypeArt

string

None.

pvp_medicity

decimal number

None.

pvp_economicas

decimal number

None.

pvp_puntonatural

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "CategoryId": 1,
  "BrandId": 1,
  "Name": "sample string 2",
  "Image": "sample string 3",
  "ImageSmallBase64": "sample string 4",
  "ImageMediumBase64": "sample string 5",
  "ImageLargeBase64": "sample string 6",
  "Barcode": "sample string 7",
  "InternalCode": "sample string 8",
  "TypeSale": "sample string 9",
  "Price": 10.0,
  "Remarks": "sample string 11",
  "Category": {
    "CategoryId": 1,
    "FarmaEnlaceId": 2,
    "BrandId": 1,
    "Name": "sample string 3",
    "Order": 4,
    "SearchProduct": true,
    "Image": "sample string 6",
    "ParentId": 1,
    "SearchCode": "sample string 7",
    "IsActive": true,
    "ImageLine": "sample string 9"
  },
  "TypeArt": "sample string 12",
  "pvp_medicity": 1.0,
  "pvp_economicas": 1.0,
  "pvp_puntonatural": 1.0
}