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

# Set the commission status of a campaign

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "4.4.12",
    "title": "Campaign API"
  },
  "x-explorer-enabled": false,
  "paths": {
    "/app-api/campaign/{campaignExternalId}/commission-status": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ParamCampaignExternalId"
        }
      ],
      "post": {
        "tags": [
          "Campaign"
        ],
        "summary": "Set the commission status of a campaign",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommissionStatus"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Commission status was updated successfully"
          },
          "400": {
            "description": "Returns a list of errors in the input data. For this call the following violation codes can be expected\n * `48f7f665-0181-431c-a094-d6a09842690f` - Cannot change commission because flights were already invoiced in this campaign\n * `9bf0acca-73cf-448f-8907-bc70ae240b16` - The provided commission status value is invalid\n * `16a35de8-46dd-454d-9150-b11280782ff9` - Changes not allowed. Flight already deferred\n"
          },
          "404": {
            "description": "The campaign does not exist"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerErrorDefault"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "InternalServerErrorResponse": {
        "properties": {
          "message": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "CommissionStatus": {
        "properties": {
          "commissionStatus": {
            "type": "integer",
            "enum": [
              0,
              2,
              3,
              4
            ],
            "example": 4,
            "description": "Commission status:\n * `0` - Commission direct\n * `2` - AC direct, Agency rebate indirect (accrual)\n * `3` - AC separate, Agency rebate indirect (accrual)\n * `4` - Agency rebate separate\n"
          }
        }
      }
    },
    "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)"
      }
    },
    "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"
            }
          }
        }
      }
    }
  }
}
```