---
title: Update product item prices.
slug: amberflo-api/update-product-item-prices
docTags: 
createdAt: 2024-11-07T15:10:16.976Z
---

{
  "id": "Wvb5BVnNXNdDh-6eN1VIV",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-item-prices",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-item-prices"
      }
    ],
    "name": "Update product item prices.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "payment.pricing.ProductItemPrices.in",
          "schema": [
            {
              "name": "productItemId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "defaultItemPriceId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "lockingStatus",
              "kind": "optional",
              "type": "string",
              "description": "",
              "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.in",
              "customType": "com.amberflo.service.common.LockingStatus.in",
              "schema": []
            },
            {
              "name": "productItemPriceMap",
              "kind": "optional",
              "type": "map",
              "example": "",
              "customType": "map<string, payment.pricing.ProductItemPrice.in>",
              "schema": []
            },
            {
              "name": "lastUpdateTimeInMillis",
              "kind": "optional",
              "type": "integer<int64>",
              "example": 0
            }
          ],
          "modelRef": "#/components/schemas/payment.pricing.ProductItemPrices.in",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "payment.pricing.ProductItemPrices.out",
            "schema": [
              {
                "name": "productItemId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "defaultItemPriceId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "lockingStatus",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                "customType": "com.amberflo.service.common.LockingStatus.out",
                "schema": []
              },
              {
                "name": "productItemPriceMap",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, payment.pricing.ProductItemPrice.out>",
                "schema": []
              },
              {
                "name": "lastUpdateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              }
            ],
            "modelRef": "#/components/schemas/payment.pricing.ProductItemPrices.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "C5J681qREFR5b8GrN0MuD",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-item-prices \\\n     --header 'accept: application/json'"
        },
        {
          "id": "loO9Io-KnSOeCMdTm-rJF",
          "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(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-item-prices\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "fZLsdxhqEzwwIhnt9Ax32",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-item-prices\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "QbrksGRXd2h_66cHVGqB5",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-item-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": "C5J681qREFR5b8GrN0MuD"
    },
    "results": {
      "languages": [
        {
          "id": "Nx23ZAO2alAuMUqNVblv3",
          "language": "200",
          "code": "// Successful request\n{\n  \"productItemId\": \"\",\n  \"defaultItemPriceId\": \"\",\n  \"lockingStatus\": \"\",\n  \"productItemPriceMap\": \"\",\n  \"lastUpdateTimeInMillis\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "Nx23ZAO2alAuMUqNVblv3"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}