---
title: Remove a promotion from a customer pricing plan
slug: reference/remove-a-promotion-from-a-customer-pricing-plan
docTags: 
createdAt: 2025-03-18T18:28:02.918Z
---

{
  "id": "4G-atAcM-YOKsOx9fsVoQ",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://app.amberflo.io/payments/pricing/amberflo/customer-promotions",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/pricing/amberflo/customer-promotions"
      }
    ],
    "name": "Remove a promotion from a customer pricing plan",
    "description": "<p>Removes a previously applied promotion from a specific customer's pricing plan.</p>\n<p>This stops the promotion from affecting the customer's future billing. Historical billing\nwith promotional discounts remains unchanged.</p>\n<p>Use RelationId for direct identification, or combine Id + CustomerId to specify the\ncustomer promotion application to remove.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "RelationId",
          "type": "string",
          "description": "<p>Base64-encoded customer promotion relation data containing all necessary identifiers. Takes precedence over individual parameters when provided.</p>"
        },
        {
          "kind": "optional",
          "name": "CustomerId",
          "type": "string",
          "description": "The unique identifier of the customer whose promotion application should be removed. Required when RelationId is not provided."
        },
        {
          "kind": "optional",
          "name": "Id",
          "type": "string",
          "description": "The unique identifier of the specific customer promotion application to remove. Required when RelationId is not provided."
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Promotion successfully removed from customer pricing plan",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request - invalid parameters",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Customer promotion not found",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "uuHfxzMp4IU60LGKmIMK5",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://app.amberflo.io/payments/pricing/amberflo/customer-promotions \\\n     --header 'accept: application/json'"
        },
        {
          "id": "3Tss9_THZs0mSVcnMULDs",
          "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: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/payments/pricing/amberflo/customer-promotions\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "5iQTCqnBCePZUcmeJ87sP",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/pricing/amberflo/customer-promotions\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "dm_mtcUDZk8onMrwJvfOR",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/pricing/amberflo/customer-promotions\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "uuHfxzMp4IU60LGKmIMK5"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Promotion successfully removed from customer pricing plan\n\"\""
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Bad request - invalid parameters\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// Customer promotion not found\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}