---
title: Create tiered absolute product item automatic promotion
slug: reference/create-tiered-absolute-product-item-automatic-promotion
docTags: 
createdAt: 2025-03-18T18:28:02.919Z
---

{
  "id": "1Yr_FRPM718sGBzwCNohV",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/tiered_absolute_product_item_automatic_promotion",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/tiered_absolute_product_item_automatic_promotion"
      }
    ],
    "name": "Create tiered absolute product item automatic promotion",
    "description": "<p>Creates a tiered promotion with escalating fixed-amount discounts for specific product items based on item usage thresholds.</p>\n<p>Customers automatically qualify for higher discount tiers as their usage of specific items increases. Each tier provides\nprogressively higher fixed dollar amount discounts on the targeted product items.</p>\n<p>Use this for item-specific volume programs where you want fixed-amount discounts that increase with usage\nof particular services like API calls, storage, or compute resources.</p>\n<ul>\n<li>Service-specific volume discount programs</li>\n<li>API usage incentives for developer adoption</li>\n<li>Infrastructure utilization rewards for cloud services</li>\n<li>Feature adoption campaigns with usage-based benefits</li>\n<li>Customer expansion into specific service areas</li>\n</ul>\n<p><strong>Granular Tier Management:</strong></p>\n<ul>\n<li>Multiple tier structures for different product items</li>\n<li>Service-specific qualification criteria</li>\n<li>Usage pattern-based tier adjustments</li>\n<li>Custom thresholds for specialized services</li>\n<li>Integration with product analytics and usage monitoring</li>\n</ul>\n<p><strong>Advanced Applications:</strong></p>\n<ul>\n<li>Developer program incentives for API usage growth</li>\n<li>Infrastructure optimization rewards for efficient usage</li>\n<li>Feature adoption acceleration through usage-based discounts</li>\n<li>Customer journey progression through service utilization</li>\n<li>Technical engagement rewards for deep product integration</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "Tiered absolute product item automatic promotion configuration with item-specific tier thresholds and discount amounts",
          "customType": "payment.pricing.promotions.pre_created.TieredAbsoluteProductItemAutomaticPromotion.in",
          "schema": [
            {
              "name": "id",
              "kind": "required",
              "type": "string",
              "description": "Unique identifier for the tiered absolute product item automatic promotion configuration.",
              "example": ""
            },
            {
              "name": "type",
              "kind": "optional",
              "type": "string",
              "description": "Fixed promotion type identifier for item-level tiered absolute automatic promotions.",
              "example": "",
              "default": "tiered_absolute_product_item_automatic_promotion"
            },
            {
              "name": "promotionName",
              "kind": "required",
              "type": "string",
              "description": "Display name for the tiered absolute product item promotion in billing interfaces.",
              "example": ""
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "Optional detailed description explaining the tiered item promotion's purpose and discount structure.",
              "example": ""
            },
            {
              "name": "lockingStatus",
              "kind": "optional",
              "type": "string",
              "description": "Administrative lock status controlling whether the tiered item promotion settings can be modified.",
              "modelRef": "#/components/schemas/common.LockingStatus.in",
              "customType": "common.LockingStatus.in",
              "schema": []
            },
            {
              "name": "dimensionConstraintMap",
              "kind": "optional",
              "type": "map",
              "description": "Optional dimension filters restricting when the tiered item promotion applies to specific usage characteristics.",
              "example": "",
              "customType": "map<string, string>",
              "schema": []
            },
            {
              "name": "customerTags",
              "kind": "optional",
              "type": "map",
              "description": "Required customer tag criteria that automatically trigger tiered item discount promotion activation.",
              "example": "",
              "customType": "map<string, string>",
              "schema": []
            },
            {
              "name": "isHidden",
              "kind": "optional",
              "type": "boolean",
              "description": "Controls whether the tiered item promotion appears in customer-facing billing statements and interfaces.",
              "example": ""
            },
            {
              "name": "discountMap",
              "kind": "optional",
              "type": "map",
              "description": "Usage threshold map defining fixed discount amounts for each item tier level.",
              "example": "",
              "customType": "map<string, number>",
              "schema": []
            },
            {
              "name": "totalMaxDiscount",
              "kind": "optional",
              "type": "number",
              "description": "Optional maximum total discount amount across all billing cycles for cost control.",
              "example": ""
            },
            {
              "name": "measure",
              "kind": "optional",
              "type": "object",
              "description": "Measure for calculating discount thresholds, defaults to TotalPrice when not specified.",
              "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.Measure.in",
              "customType": "payment.pricing.promotions.attributes.measure.Measure.in",
              "schema": [],
              "complexType": "oneOf",
              "complexItems": [
                {
                  "name": "payment.pricing.promotions.attributes.measure.PerUnitBatch.in",
                  "description": "",
                  "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.PerUnitBatch.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Measure type identifier always set to 'per_batch' for batch-based discount calculations.",
                      "example": "",
                      "default": "per_batch"
                    },
                    {
                      "name": "batchSize",
                      "kind": "optional",
                      "type": "integer<int64>",
                      "description": "Number of usage units grouped together to form a single discountable batch for promotion calculations.",
                      "example": 0
                    }
                  ]
                },
                {
                  "name": "payment.pricing.promotions.attributes.measure.PerUnit.in",
                  "description": "",
                  "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.PerUnit.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Measure type identifier always set to 'per_unit' for per-unit discount calculations.",
                      "example": "",
                      "default": "per_unit"
                    }
                  ]
                },
                {
                  "name": "payment.pricing.promotions.attributes.measure.TotalPrice.in",
                  "description": "",
                  "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.TotalPrice.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Measure type identifier always set to 'total_price' for total price discount calculations.",
                      "example": "",
                      "default": "total_price"
                    }
                  ]
                }
              ]
            },
            {
              "name": "targetProductItemId",
              "kind": "optional",
              "type": "string",
              "description": "Specific product item identifier that this tiered absolute promotion targets for discount application.",
              "example": ""
            },
            {
              "name": "isRegEx",
              "kind": "optional",
              "type": "boolean",
              "description": "Enables regular expression pattern matching for dimension constraint values providing flexible targeting rules.",
              "example": ""
            }
          ],
          "modelRef": "#/components/schemas/payment.pricing.promotions.pre_created.TieredAbsoluteProductItemAutomaticPromotion.in",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Tiered absolute product item automatic promotion successfully created",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Created tiered promotion applying fixed-amount discounts to specific product item charges based on usage thresholds and customer tags.",
            "customType": "payment.pricing.promotions.pre_created.TieredAbsoluteProductItemAutomaticPromotion.out",
            "schema": [
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": "Unique identifier for the created tiered absolute product item automatic promotion configuration.",
                "example": ""
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "string",
                "description": "Fixed promotion type identifier confirming item-level tiered absolute automatic promotion.",
                "example": "",
                "default": "tiered_absolute_product_item_automatic_promotion"
              },
              {
                "name": "promotionName",
                "kind": "required",
                "type": "string",
                "description": "Display name for the created tiered absolute product item promotion in billing interfaces.",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "description": "Optional detailed description explaining the tiered item promotion's purpose and discount structure.",
                "example": ""
              },
              {
                "name": "lockingStatus",
                "kind": "optional",
                "type": "string",
                "description": "Current administrative lock status controlling whether the tiered item promotion settings can be modified.",
                "modelRef": "#/components/schemas/common.LockingStatus.in",
                "customType": "common.LockingStatus.in",
                "schema": []
              },
              {
                "name": "lastUpdateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Unix timestamp in milliseconds when the tiered item promotion was last modified.",
                "example": 0
              },
              {
                "name": "dimensionConstraintMap",
                "kind": "optional",
                "type": "map",
                "description": "Applied dimension filters restricting when the tiered item promotion applies to specific usage characteristics.",
                "example": "",
                "customType": "map<string, string>",
                "schema": []
              },
              {
                "name": "customerTags",
                "kind": "optional",
                "type": "map",
                "description": "Configured customer tag criteria that automatically trigger tiered item discount promotion activation.",
                "example": "",
                "customType": "map<string, string>",
                "schema": []
              },
              {
                "name": "isHidden",
                "kind": "optional",
                "type": "boolean",
                "description": "Current visibility setting controlling whether tiered item promotion appears in customer billing statements.",
                "example": ""
              },
              {
                "name": "discountMap",
                "kind": "optional",
                "type": "map",
                "description": "Configured usage threshold map defining fixed discount amounts for each item tier level.",
                "example": "",
                "customType": "map<string, number>",
                "schema": []
              },
              {
                "name": "totalMaxDiscount",
                "kind": "optional",
                "type": "number",
                "description": "Configured maximum total discount amount across all billing cycles for cost control.",
                "example": ""
              },
              {
                "name": "measure",
                "kind": "optional",
                "type": "object",
                "description": "Applied measure for calculating discount thresholds, defaults to TotalPrice when not specified.",
                "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.Measure.out",
                "customType": "payment.pricing.promotions.attributes.measure.Measure.out",
                "schema": [],
                "complexType": "oneOf",
                "complexItems": [
                  {
                    "name": "payment.pricing.promotions.attributes.measure.PerUnitBatch.in",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.PerUnitBatch.in",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Measure type identifier always set to 'per_batch' for batch-based discount calculations.",
                        "example": "",
                        "default": "per_batch"
                      },
                      {
                        "name": "batchSize",
                        "kind": "optional",
                        "type": "integer<int64>",
                        "description": "Number of usage units grouped together to form a single discountable batch for promotion calculations.",
                        "example": 0
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.promotions.attributes.measure.PerUnit.in",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.PerUnit.in",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Measure type identifier always set to 'per_unit' for per-unit discount calculations.",
                        "example": "",
                        "default": "per_unit"
                      }
                    ]
                  },
                  {
                    "name": "payment.pricing.promotions.attributes.measure.TotalPrice.in",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.promotions.attributes.measure.TotalPrice.in",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Measure type identifier always set to 'total_price' for total price discount calculations.",
                        "example": "",
                        "default": "total_price"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "targetProductItemId",
                "kind": "optional",
                "type": "string",
                "description": "Specific product item identifier that this tiered absolute promotion targets for discount application.",
                "example": ""
              },
              {
                "name": "isRegEx",
                "kind": "optional",
                "type": "boolean",
                "description": "Current setting enabling regular expression pattern matching for dimension constraint values.",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/payment.pricing.promotions.pre_created.TieredAbsoluteProductItemAutomaticPromotion.out",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request - invalid item targeting or tier configuration",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Product item not found or not available for tiered promotions",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "409",
        "description": "Conflict - tiered promotion conflicts with existing item-level automatic promotions",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "bWeNGrsg7VF1mCB3ThJuv",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/tiered_absolute_product_item_automatic_promotion \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"id\": \"\",\n     \"type\": \"tiered_absolute_product_item_automatic_promotion\",\n     \"promotionName\": \"\",\n     \"measure\": {\n     \"type\": \"per_batch\"\n     }\n     }'"
        },
        {
          "id": "19A5izRv8m7jyeh-IYLsj",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"\",\n   \"type\": \"tiered_absolute_product_item_automatic_promotion\",\n   \"promotionName\": \"\",\n   \"measure\": {\n      \"type\": \"per_batch\"\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/tiered_absolute_product_item_automatic_promotion\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "vHyInl63cPa6uA2uS5_gV",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/tiered_absolute_product_item_automatic_promotion\")\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\"\nrequest.body = JSON.dump({\n   \"id\": \"\",\n   \"type\": \"tiered_absolute_product_item_automatic_promotion\",\n   \"promotionName\": \"\",\n   \"measure\": {\n      \"type\": \"per_batch\"\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "cOmkSDtly25KygMrduPEI",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/tiered_absolute_product_item_automatic_promotion\"\n\npayload = json.dumps({\n   \"id\": \"\",\n   \"type\": \"tiered_absolute_product_item_automatic_promotion\",\n   \"promotionName\": \"\",\n   \"measure\": {\n      \"type\": \"per_batch\"\n   }\n})\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": "bWeNGrsg7VF1mCB3ThJuv"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Tiered absolute product item automatic promotion successfully created\n{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"promotionName\": \"\",\n  \"description\": \"\",\n  \"lockingStatus\": \"\",\n  \"lastUpdateTimeInMillis\": \"\",\n  \"dimensionConstraintMap\": \"\",\n  \"customerTags\": \"\",\n  \"isHidden\": false,\n  \"discountMap\": \"\",\n  \"totalMaxDiscount\": 0,\n  \"measure\": {},\n  \"targetProductItemId\": \"\",\n  \"isRegEx\": false\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Bad request - invalid item targeting or tier configuration\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// Product item not found or not available for tiered promotions\n"
        },
        {
          "id": "response-3-409",
          "language": "409",
          "code": "// Conflict - tiered promotion conflicts with existing item-level automatic promotions\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}