POST api/items

Request Information

URI Parameters

None.

Body Parameters

CreateItemRequestDto
NameDescriptionTypeAdditional information
name

string

None.

category_id

integer

None.

units

string

None.

user_code

integer

None.

tamil_name

string

None.

is_kot

integer

None.

show_order

integer

None.

prices

Collection of ItemPriceInputDto

None.

price

decimal number

None.

table_price

decimal number

None.

parcel_price

decimal number

None.

online_price

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "category_id": 2,
  "units": "sample string 3",
  "user_code": 1,
  "tamil_name": "sample string 4",
  "is_kot": 1,
  "show_order": 1,
  "prices": [
    {
      "location_id": 2,
      "price": 4.0
    },
    {
      "location_id": 2,
      "price": 4.0
    }
  ],
  "price": 1.0,
  "table_price": 1.0,
  "parcel_price": 1.0,
  "online_price": 1.0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.