PUT api/{lang}/PriceList/Post

Crea en la base una lista de precios.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

None.

Body Parameters

ViewModel de la lista de precios a crear

PriceListViewModel
NameDescriptionTypeAdditional information
Name

string

Required

IsRoot

boolean

None.

ProjectedChange

decimal number

None.

DueDate

date

None.

ApplicationDate

date

Required

IsPromotion

boolean

None.

IsSamePriceWithCut

boolean

None.

FatherId

string

None.

Formula

string

Required

CurrencyId

string

Required

UpdateType

integer

Range: inclusive between 1 and 2

Prices

Collection of PriceListItemViewModel

Required

State

PriceListStateViewModel

None.

FilterOptions

ODataQueryOptionsOfPriceListItem

None.

SearchManualPrices

Collection of SearchManualPrice

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "IsRoot": true,
  "ProjectedChange": 3.1,
  "DueDate": "2026-11-10T16:51:47.7941128-03:00",
  "ApplicationDate": "2026-11-10T16:51:47.7941128-03:00",
  "IsPromotion": true,
  "IsSamePriceWithCut": true,
  "FatherId": "sample string 7",
  "Formula": "sample string 8",
  "CurrencyId": "sample string 9",
  "UpdateType": 10,
  "Prices": [
    {
      "TradableItemId": "sample string 1",
      "Price": 2.1,
      "IsApproved": true,
      "IsManual": true,
      "IsSelected": true
    },
    {
      "TradableItemId": "sample string 1",
      "Price": 2.1,
      "IsApproved": true,
      "IsManual": true,
      "IsSelected": true
    }
  ],
  "State": {
    "IsIncludeAll": true,
    "IsDeleteAll": true
  },
  "FilterOptions": null,
  "SearchManualPrices": [
    {
      "Search": "sample string 1",
      "Price": 1.1,
      "IncludeFatherPrices": true
    },
    {
      "Search": "sample string 1",
      "Price": 1.1,
      "IncludeFatherPrices": true
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

De ser exitosa la creación retorna 200. De lo contrario retorna 400

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.