---
updatedAt: 2026-05-20T09:37:17.000Z
agentTools:
  projectIndex: https://dev.gotom.io/llms.txt
---

# Delete a flight discount

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "4.4.12",
    "title": "Campaign API"
  },
  "x-explorer-enabled": false,
  "paths": {
    "/app-api/campaign/{campaignExternalId}/campaign-discount/{cDiscountEID}/flight-discount/{fDiscountEID}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ParamCampaignExternalId"
        },
        {
          "$ref": "#/components/parameters/ParamCampaignDiscountExternalId"
        },
        {
          "$ref": "#/components/parameters/ParamFlightDiscountExternalId"
        }
      ],
      "delete": {
        "tags": [
          "CampaignDiscount"
        ],
        "summary": "Delete a flight discount",
        "responses": {
          "204": {
            "description": "Flight discount has been deleted"
          },
          "400": {
            "description": "Returns a list of errors in the input data. For this call the following violation codes can be expected:\n * `cfa53928-478d-4c37-b844-d0643be2b2b4` - Error: At least one Flight has already been invoiced.\n * `26415fc8-24d2-4cd7-8561-a62fe636f3c4` - Changes not allowed. Flight already deferred.\n * `0e31a231-9575-4430-8ab2-937bbd9e771d` - Flight with external ID 'exampleExternalId' is already partly invoiced.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolationResponse"
                }
              }
            }
          },
          "404": {
            "description": "A flight discount does not exist with that external id."
          },
          "500": {
            "$ref": "#/components/responses/InternalServerErrorDefault"
          },
          "501": {
            "$ref": "#/components/responses/SumUpCaseNotImplemented"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AnyValue": {
        "description": "Can be any value - string, number, boolean, array or object.",
        "nullable": true,
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "integer"
          },
          {
            "type": "boolean"
          },
          {
            "type": "array",
            "items": {}
          },
          {
            "type": "object"
          }
        ]
      },
      "InternalServerErrorResponse": {
        "properties": {
          "message": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "ConstraintViolationResponse": {
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConstraintViolationItem"
            }
          }
        }
      },
      "ConstraintViolationItem": {
        "properties": {
          "propertyPath": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "invalidValue": {
            "$ref": "#/components/schemas/AnyValue"
          },
          "cause": {
            "$ref": "#/components/schemas/AnyValue"
          },
          "code": {
            "type": "string"
          }
        }
      }
    },
    "parameters": {
      "ParamCampaignExternalId": {
        "in": "path",
        "name": "campaignExternalId",
        "schema": {
          "type": "string"
        },
        "required": true,
        "example": "example-campaign",
        "description": "External ID of a campaign. See: [Good and Bad External IDs](/docs/good-and-bad-external-ids)"
      },
      "ParamCampaignDiscountExternalId": {
        "in": "path",
        "name": "cDiscountEID",
        "schema": {
          "type": "string"
        },
        "required": true,
        "example": "campaignDiscountExternalId1234",
        "description": "External ID of a campaign discount. See: [Good and Bad External IDs](/docs/good-and-bad-external-ids)"
      },
      "ParamFlightDiscountExternalId": {
        "in": "path",
        "name": "fDiscountEID",
        "schema": {
          "type": "string"
        },
        "required": true,
        "example": "flightDiscountExternalId1234",
        "description": "External ID of a flight discount. See: [Good and Bad External IDs](/docs/good-and-bad-external-ids)"
      }
    },
    "responses": {
      "InternalServerErrorDefault": {
        "description": "If your request broke our code. Send us your request-document to reproduce the error and we'll fix it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InternalServerErrorResponse"
            }
          }
        }
      },
      "SumUpCaseNotImplemented": {
        "description": "* Code: `4c396abe-92c8-45ae-a3af-9baa4b76bbda` - Api discount manipulation currently not supported for sum up strategy.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ConstraintViolationResponse"
            }
          }
        }
      }
    }
  }
}
```