---
title: Posts the catalog entry price.
slug: commerce-connect-15/service-api/posts-the-catalog-entry-price
docTags: 
createdAt: 2026-10-09T17:33:29.599Z
---

{
  "id": "JIS6mthCWK0y1DfCQUO21",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices"
      }
    ],
    "name": "Posts the catalog entry price.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "entryCode",
          "type": "string",
          "description": "The entry code."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "The price.",
          "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.Price",
          "schema": [
            {
              "name": "PriceValueId",
              "kind": "optional",
              "type": "integer<int64>",
              "description": "Gets or sets the price value identifier.",
              "format": "int64"
            },
            {
              "name": "CatalogEntryCode",
              "kind": "optional",
              "type": "string",
              "description": "Gets the catalog entry key."
            },
            {
              "name": "MarketId",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the market identifier."
            },
            {
              "name": "PriceTypeId",
              "kind": "optional",
              "type": "string",
              "description": "<p>Gets or sets the price type identifier.  Valid Values are AllCustomers, UserName, PriceGroup.</p>"
            },
            {
              "name": "PriceCode",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the price code for the specified price type identifier."
            },
            {
              "name": "ValidFrom",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Gets or sets the valid from.",
              "format": "date-time"
            },
            {
              "name": "ValidUntil",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Gets or sets the valid until.",
              "format": "date-time"
            },
            {
              "name": "MinQuantity",
              "kind": "optional",
              "type": "number<double>",
              "description": "Gets or sets the minimum quantity.",
              "format": "double"
            },
            {
              "name": "UnitPrice",
              "kind": "optional",
              "type": "number<double>",
              "description": "Gets or sets the unit price.",
              "format": "double"
            },
            {
              "name": "CurrencyCode",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the currency code."
            }
          ],
          "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.Price",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "The catalog entry price is saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.Price",
            "schema": [
              {
                "name": "PriceValueId",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Gets or sets the price value identifier.",
                "format": "int64"
              },
              {
                "name": "CatalogEntryCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets the catalog entry key."
              },
              {
                "name": "MarketId",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the market identifier."
              },
              {
                "name": "PriceTypeId",
                "kind": "optional",
                "type": "string",
                "description": "<p>Gets or sets the price type identifier.  Valid Values are AllCustomers, UserName, PriceGroup.</p>"
              },
              {
                "name": "PriceCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the price code for the specified price type identifier."
              },
              {
                "name": "ValidFrom",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "Gets or sets the valid from.",
                "format": "date-time"
              },
              {
                "name": "ValidUntil",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "Gets or sets the valid until.",
                "format": "date-time"
              },
              {
                "name": "MinQuantity",
                "kind": "optional",
                "type": "number<double>",
                "description": "Gets or sets the minimum quantity.",
                "format": "double"
              },
              {
                "name": "UnitPrice",
                "kind": "optional",
                "type": "number<double>",
                "description": "Gets or sets the unit price.",
                "format": "double"
              },
              {
                "name": "CurrencyCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the currency code."
              }
            ],
            "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.Price",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "If the catalog entry price model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If entry does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "NPfHKZPbgg3BFJWPHyOYn",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices \\\n     --header 'accept: application/json'"
        },
        {
          "id": "4ddvbpiedO-pr00bWQE5K",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "ij_Y7sKHVLQSotB-k8Uh4",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "u62sX8QPCXQJarYR9pzTq",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/prices\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "NPfHKZPbgg3BFJWPHyOYn"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalog entry price is saved.\n{\n  \"PriceValueId\": \"\",\n  \"CatalogEntryCode\": \"\",\n  \"MarketId\": \"\",\n  \"PriceTypeId\": \"\",\n  \"PriceCode\": \"\",\n  \"ValidFrom\": \"\",\n  \"ValidUntil\": \"\",\n  \"MinQuantity\": \"\",\n  \"UnitPrice\": \"\",\n  \"CurrencyCode\": \"\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// If the catalog entry price model is not valid.\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// If entry does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}