---
updatedAt: 2026-08-13T23:51:37.000Z
---

# Create a line item

Create a new line item under an existing campaign.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Core API Resources",
    "version": "2.0.0",
    "description": "Buzz API v2"
  },
  "paths": {
    "/line-items": {
      "post": {
        "operationId": "line_items_create",
        "description": "Create a new line item under an existing campaign.",
        "summary": "Create a line item",
        "tags": [
          "Line Items"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LineItem"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/LineItem"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/LineItem"
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "nestSessionAuth": []
          },
          {
            "nestBasicAuth": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LineItem"
                }
              }
            },
            "description": "Line item created successfully."
          },
          "400": {
            "description": "Invalid or incomplete request data."
          },
          "401": {
            "description": "Authentication required."
          },
          "403": {
            "description": "You do not have permission to create a line item."
          },
          "409": {
            "description": "Line item already exists with provided details."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AssignmentLevelEnum": {
        "enum": [
          "creative_line_item",
          "line_item"
        ],
        "type": "string",
        "description": "* `creative_line_item` - Creative Line Item\n* `line_item` - Line Item"
      },
      "BidShadingControlEnum": {
        "enum": [
          "less_aggressive",
          "more_aggressive",
          "normal"
        ],
        "type": "string",
        "description": "* `less_aggressive` - Less Aggressive\n* `more_aggressive` - More Aggressive\n* `normal` - Normal"
      },
      "Bidding": {
        "type": "object",
        "properties": {
          "strategy": {
            "type": "string",
            "description": "The strategy to use. One of: `\"CPM\"`, `\"CPC\"`, `\"VCR\"`, `\"CPM_PACED\"`, `\"CPC_PACED\"`, `\"VCR_PACED\"`, `\"CPA\"`, `\"CPA_PACED\"`."
          },
          "pacing": {
            "nullable": true,
            "description": "The algorithmic ability to smooth spend across the duration of the day or lifetime of a line item.\n\n* `daily` - Daily\n* `flight` - Flight\n* `lifetime` - Lifetime\n* `none` - None",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PacingEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "pacing_behavior": {
            "nullable": true,
            "description": "Pacing behavior determines the rate at which the budget is spent.\n\n* `even` - Even\n* `ahead` - Ahead",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PacingBehaviorEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "multiplier": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,1}(?:\\.\\d{0,3})?$",
            "nullable": true,
            "description": "Multiplier enables control over spending speed. e.g. setting it to 1.5 will spend 150% of the allocated target amount."
          },
          "catchup_behavior": {
            "nullable": true,
            "description": "Catchup behavior determines how the pacemaker responds when the budget delivery falls behind and inventory becomes suddenly available at a certain point.\n\n* `immediate` - Immediate\n* `even` - Even\n* `smooth` - Smooth",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CatchupBehaviorEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "custom": {
            "type": "boolean",
            "description": "Whether the strategy is custom."
          },
          "bid_shading_control": {
            "nullable": true,
            "description": "This field determines how aggressive the bid shading algorithm should be.\n\n* `less_aggressive` - Less Aggressive\n* `more_aggressive` - More Aggressive\n* `normal` - Normal",
            "oneOf": [
              {
                "$ref": "#/components/schemas/BidShadingControlEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          }
        },
        "required": [
          "pacing",
          "strategy"
        ]
      },
      "BudgetCarryOverTypeEnum": {
        "enum": [
          "None",
          "carry_over",
          "evenly_distribute",
          "prorated_distribute"
        ],
        "type": "string",
        "description": "* `None` - None\n* `carry_over` - Carry Over\n* `evenly_distribute` - Evenly Distribute\n* `prorated_distribute` - Prorated Distribute"
      },
      "CatchupBehaviorEnum": {
        "enum": [
          "immediate",
          "even",
          "smooth"
        ],
        "type": "string",
        "description": "* `immediate` - Immediate\n* `even` - Even\n* `smooth` - Smooth"
      },
      "ExtensionTypeEnum": {
        "enum": [
          "person",
          "household",
          "person_extend_only",
          "household_extend_only"
        ],
        "type": "string",
        "description": "* `person` - Person\n* `household` - Household\n* `person_extend_only` - Person Extend Only\n* `household_extend_only` - Household Extend Only"
      },
      "FrequencyCap": {
        "type": "object",
        "properties": {
          "id_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FrequencyCapIdTypeEnum"
              }
            ],
            "description": "The type of frequency capping method.\n\n* `STANDARD` - Standard\n* `IP_ADDR` - IP Address\n* `CUSTOMER` - Customer ID\n* `PERSON` - Person ID\n* `HOUSEHOLD` - Household ID"
          },
          "use_fallback": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the frequency capping type is used with a fallback."
          },
          "id_vendor": {
            "type": "string",
            "nullable": true,
            "description": "Extends the frequency cap with the device graph. The valid value depends on which vendors have been enabled at the system level. Fees may apply."
          },
          "id_vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "The unique identifier of the frequency cap vendor."
          },
          "limits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Limit"
            },
            "description": "The set of caps that limits the number of times the ad appears."
          }
        },
        "required": [
          "id_type",
          "limits",
          "use_fallback"
        ]
      },
      "FrequencyCapIdTypeEnum": {
        "enum": [
          "STANDARD",
          "IP_ADDR",
          "CUSTOMER",
          "PERSON",
          "HOUSEHOLD"
        ],
        "type": "string",
        "description": "* `STANDARD` - Standard\n* `IP_ADDR` - IP Address\n* `CUSTOMER` - Customer ID\n* `PERSON` - Person ID\n* `HOUSEHOLD` - Household ID"
      },
      "GhostBidding": {
        "type": "object",
        "properties": {
          "id_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IdTypeFd0Enum"
              }
            ],
            "description": "The type of the ghost bidding.\n\n* `STANDARD` - Standard\n* `IP_ADDR` - IP Address\n* `PERSON` - Person\n* `HOUSEHOLD` - Household"
          },
          "id_vendor": {
            "type": "string",
            "nullable": true,
            "description": "Extends the ghost bidding with the device graph. The valid value depends on which vendors have been enabled at the system level. Fees may apply."
          },
          "id_vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "The unique identifier of the ghost bidding vendor."
          }
        },
        "required": [
          "id_type"
        ]
      },
      "IdTypeFd0Enum": {
        "enum": [
          "STANDARD",
          "IP_ADDR",
          "PERSON",
          "HOUSEHOLD"
        ],
        "type": "string",
        "description": "* `STANDARD` - Standard\n* `IP_ADDR` - IP Address\n* `PERSON` - Person\n* `HOUSEHOLD` - Household"
      },
      "ImpressionsBudget": {
        "type": "object",
        "properties": {
          "lifetime": {
            "type": "integer",
            "minimum": 0.01,
            "description": "The maximum amount that can be spent or delivered., e.g. 700."
          },
          "daily": {
            "type": "integer",
            "minimum": 0,
            "nullable": true,
            "description": "The maximum amount that can be spent or delivered per day., e.g. 50."
          }
        },
        "required": [
          "lifetime"
        ]
      },
      "Limit": {
        "type": "object",
        "properties": {
          "duration": {
            "type": "integer",
            "minimum": 1,
            "description": "The duration of time in which to cap impressions, e.g. 864000 seconds."
          },
          "impressions": {
            "type": "integer",
            "minimum": 1,
            "description": "The number of impressions to allow within the duration set."
          }
        },
        "required": [
          "duration",
          "impressions"
        ]
      },
      "LineItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "account_id": {
            "type": "integer",
            "readOnly": true
          },
          "create_date": {
            "type": "string",
            "readOnly": true,
            "nullable": true,
            "description": "The date and time the object was first created",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "update_date": {
            "type": "string",
            "readOnly": true,
            "nullable": true,
            "description": "The date and time the object was last updated",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "last_active": {
            "type": "string",
            "readOnly": true,
            "description": "The last time the object was deactivated.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "advertiser_id": {
            "type": "integer",
            "readOnly": true,
            "nullable": true,
            "description": "The unique identifier of the advertiser that owns the line item."
          },
          "campaign_id": {
            "type": "integer",
            "description": "The unique identifier of the campaign the line item belongs to."
          },
          "name": {
            "type": "string",
            "description": "The descriptive name of the line item, e.g. \"Spring lead generation\".",
            "maxLength": 280
          },
          "active": {
            "type": "boolean",
            "default": false
          },
          "type": {
            "type": "string",
            "nullable": true,
            "description": "The type of the line item. One of: `\"banner\"`, `\"video\"`, `\"native\"`."
          },
          "bid_modifier_id": {
            "type": "integer",
            "description": "The unique identifier of the bid modifier. If it is set, `max_bid` must also be specified.",
            "nullable": true
          },
          "delivery_modifier_id": {
            "type": "integer",
            "nullable": true,
            "description": "The unique identifier of the delivery modifier."
          },
          "targeting_expression_id": {
            "type": "integer",
            "nullable": true,
            "description": "The unique identifier of the targeting expression."
          },
          "start_date": {
            "type": "string",
            "nullable": true,
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "alternative_id": {
            "type": "string",
            "nullable": true,
            "description": "An ID that may be used for any reporting or administrative purpose. Limited to 191 characters.",
            "maxLength": 200
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "Free-form notes of up to 255 characters.",
            "maxLength": 255
          },
          "currency": {
            "type": "string",
            "description": "The currency code in which both lifetime and daily budgets are expressed, e.g. USD."
          },
          "guaranteed": {
            "type": "boolean",
            "description": "Whether the line item is programmatically guaranteed."
          },
          "min_bid": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
            "nullable": true,
            "description": "The minimum bid after taking into consideration any bid modifier, e.g. 1.23."
          },
          "max_bid": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
            "nullable": true,
            "description": "The maximum bid after taking into consideration any bid modifier, e.g. 7.89."
          },
          "bidding": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Bidding"
              }
            ],
            "nullable": true,
            "description": "The configuration of the bidding strategy and its related settings. It may include information such as the bidding algorithm used and any additional parameters or constraints. Note: When updating the pacing option for the same strategy via a PATCH call, the fields `pacing_behavior`, `multiplier`, and `catchup_behavior` will be reset to their default values."
          },
          "skad_network": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LineItemSkadNetwork"
              }
            ],
            "nullable": true,
            "description": "The configuration of the SKAd network."
          },
          "revenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Revenue"
              }
            ],
            "nullable": true,
            "description": "The configuration of the revenue."
          },
          "spend": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "readOnly": true
          },
          "impressions": {
            "type": "integer",
            "readOnly": true,
            "default": 0
          },
          "budget_type": {
            "type": "string",
            "nullable": true,
            "description": "The type of the budget. One of: `\"spend\"`, `\"impressions\"`, `\"spend including vendor fees\"`."
          },
          "spend_budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpendBudget"
              }
            ],
            "nullable": true,
            "description": "The representation of the budget if the budget type is either `\"spend\"` or `\"spend including vendor fees\"`. If the budget type is `\"impressions\"`, null will be populated."
          },
          "impressions_budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ImpressionsBudget"
              }
            ],
            "nullable": true,
            "description": "The representation of the budget if the budget type is `\"impressions\"`. If the budget type is either `\"spend\"` or `\"spend including vendor fees\"`, null will be populated."
          },
          "budget_carry_over_type": {
            "nullable": true,
            "description": "Options field to calculate carry-budget over and total budget for flights depends on selection calculate carry/total budget.Requires at least two flights; if only one or no flights are configured, the request will be rejected.\n\n* `None` - None\n* `carry_over` - Carry Over\n* `evenly_distribute` - Evenly Distribute\n* `prorated_distribute` - Prorated Distribute",
            "oneOf": [
              {
                "$ref": "#/components/schemas/BudgetCarryOverTypeEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "vendor_fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorFee"
            },
            "description": "The list of the vendor fees objects."
          },
          "active_flights": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItemFlight"
            },
            "description": "The list of flights with an end date greater than the current time."
          },
          "past_flights": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItemFlight"
            },
            "readOnly": true,
            "description": "The list of flights whose end date is in the past."
          },
          "ghost_bidding": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GhostBidding"
              }
            ],
            "nullable": true,
            "description": "The configuration of the ghost bidding. This is used to assess media buy impact by predicting ad outcomes without sending them to the exchange."
          },
          "event_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "The list of the unique identifiers representing the associated events."
          },
          "frequency_caps": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FrequencyCap"
              }
            ],
            "nullable": true,
            "description": "The configuration of the frequency capping."
          },
          "segment_extension": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SegmentExtension"
              }
            ],
            "nullable": true,
            "description": "The configuration of the segment extension."
          },
          "test_plan_id": {
            "type": "integer",
            "readOnly": true
          },
          "test_group_id": {
            "type": "integer",
            "nullable": true,
            "description": "The unique identifier of the test group. This field is used when using Experiments to separate users into different groups for testing purposes."
          },
          "user_timezones": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "account_id",
          "advertiser_id",
          "campaign_id",
          "create_date",
          "id",
          "impressions",
          "last_active",
          "name",
          "past_flights",
          "spend",
          "test_plan_id",
          "type",
          "update_date"
        ]
      },
      "LineItemFlight": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "default": "",
            "description": "The descriptive name of the flight. This field can be left blank.",
            "maxLength": 191
          },
          "start_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "spend_budget": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "nullable": true,
            "description": "The budget for the flight in currency amount, e.g. 100.12. This field is optional and can be left blank or null. Note that if `impressions_budget` is provided, this field will be ignored."
          },
          "impressions_budget": {
            "type": "integer",
            "minimum": 1,
            "nullable": true,
            "description": "The budget for the flight in impressions, e.g. 100. This field is optional and can be left blank or null. Note that if `spend_budget` is provided, this field will be ignored."
          },
          "on_schedule_indicator": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "readOnly": true,
            "description": "The metric used to measure how well a line item is pacing against its goal. The OSI is calculated as a percentage."
          },
          "days_remaining": {
            "type": "integer",
            "readOnly": true,
            "description": "The days remaining until the end date of a flight line item."
          },
          "hours_remaining_percentage": {
            "type": "number",
            "format": "float",
            "readOnly": true,
            "description": "The hours remaining until the end date of a flight line item. The hours remaining is calculated as a percentage."
          },
          "spend": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "readOnly": true,
            "description": "Actual Spend budget within flight from Stats."
          },
          "impressions": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "readOnly": true,
            "description": "Actual Impressions within flight from stats table."
          },
          "flight_budget_percentage": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "readOnly": true,
            "description": "Calculate Actual Budget within flight, Flight budget is calculated as a percentage."
          },
          "budget_carry_over": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,8}(?:\\.\\d{0,6})?$",
            "readOnly": true,
            "description": "How much carry-over budget is attributed to that flight."
          },
          "total_budget": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "readOnly": true,
            "description": "The target budget sum and how much carry-over budget is attributed to that flight."
          }
        },
        "required": [
          "budget_carry_over",
          "days_remaining",
          "end_date",
          "flight_budget_percentage",
          "hours_remaining_percentage",
          "impressions",
          "on_schedule_indicator",
          "spend",
          "start_date",
          "total_budget"
        ]
      },
      "LineItemSkadNetwork": {
        "type": "object",
        "properties": {
          "enable_skad_tracking": {
            "type": "boolean",
            "description": "Whether the Apple's SKAd Network tracking is enabled."
          },
          "assignment_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AssignmentLevelEnum"
              }
            ],
            "description": "Determines whether individual SKAd identifiers are assigned to each creative line item association or a single SKAd is assigned to the line item itself.\n\n* `creative_line_item` - Creative Line Item\n* `line_item` - Line Item"
          },
          "target_skad": {
            "type": "boolean",
            "description": "Whether the line item only targets SKAd-enabled Apple inventory."
          }
        },
        "required": [
          "assignment_level",
          "enable_skad_tracking",
          "target_skad"
        ]
      },
      "NameEnum": {
        "enum": [
          "liveramp",
          "tapad",
          "freewheel"
        ],
        "type": "string",
        "description": "* `liveramp` - liveramp\n* `tapad` - tapad\n* `freewheel` - freewheel"
      },
      "NullEnum": {
        "enum": [
          null
        ]
      },
      "PacingBehaviorEnum": {
        "enum": [
          "even",
          "ahead"
        ],
        "type": "string",
        "description": "* `even` - Even\n* `ahead` - Ahead"
      },
      "PacingEnum": {
        "enum": [
          "daily",
          "flight",
          "lifetime",
          "none"
        ],
        "type": "string",
        "description": "* `daily` - Daily\n* `flight` - Flight\n* `lifetime` - Lifetime\n* `none` - None"
      },
      "Revenue": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the revenue. One of: `\"CPM\"`, `\"CPC\"`, `\"CPCV\"`, `\"CPI\"`, `\"CPA\"`."
          },
          "amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,11}(?:\\.\\d{0,4})?$",
            "description": "The basis of the revenue calculation, e.g. 5.125."
          }
        },
        "required": [
          "amount",
          "type"
        ]
      },
      "SegmentExtension": {
        "type": "object",
        "properties": {
          "extension_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExtensionTypeEnum"
              }
            ],
            "description": "The default type of person and household segment extension.\n\n* `person` - Person\n* `household` - Household\n* `person_extend_only` - Person Extend Only\n* `household_extend_only` - Household Extend Only"
          },
          "segment_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SegmentTypeEnum"
              }
            ],
            "description": "The type of segment extension.\n\n* `all` - ALL\n* `1st_party` - 1P\n* `3rd_party` - 3P"
          },
          "vendors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SegmentExtensionVendor"
            },
            "description": "The list of vendors to use for audience extension."
          }
        },
        "required": [
          "extension_type",
          "segment_type",
          "vendors"
        ]
      },
      "SegmentExtensionVendor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NameEnum"
              }
            ],
            "description": "The name of the vendor.\n\n* `liveramp` - liveramp\n* `tapad` - tapad\n* `freewheel` - freewheel"
          }
        }
      },
      "SegmentTypeEnum": {
        "enum": [
          "all",
          "1st_party",
          "3rd_party"
        ],
        "type": "string",
        "description": "* `all` - ALL\n* `1st_party` - 1P\n* `3rd_party` - 3P"
      },
      "SpendBudget": {
        "type": "object",
        "properties": {
          "lifetime": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "description": "The maximum amount that can be spent or delivered., e.g. 700.35."
          },
          "daily": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$",
            "nullable": true,
            "description": "The maximum amount that can be spent or delivered per day., e.g. 50.25."
          },
          "include_fees": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "required": [
          "include_fees",
          "lifetime"
        ]
      },
      "VendorFee": {
        "type": "object",
        "properties": {
          "object_id": {
            "type": "integer"
          },
          "object_type": {
            "type": "string",
            "description": "The object_type of the VendorFee. Like line_item, campaign or creative"
          },
          "id": {
            "type": "integer"
          },
          "vendor": {
            "type": "string",
            "readOnly": true,
            "description": "The name of the vendor associated with the vendor fee. Read-only; it is derived from `vendor_id` and ignored if supplied on write."
          },
          "vendor_id": {
            "type": "integer",
            "description": "The unique identifier of the vendor associated with the vendor fee. This is the only way to set the vendor and is required."
          },
          "name": {
            "type": "string",
            "description": "The descriptive name of the vendor fee.",
            "maxLength": 100
          },
          "cpm_currency": {
            "type": "string",
            "description": "The currency code for the CPM fee amount, e.g. USD.",
            "nullable": true
          },
          "cpm_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,3})?$",
            "nullable": true,
            "description": "The fee amount of the CPM, e.g. 90.123. Note that only one of `cpm_amount` and `percentage` can be specified."
          },
          "percentage": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,3})?$",
            "nullable": true,
            "description": "The fee amount in a percentage."
          },
          "read_only": {
            "type": "boolean",
            "readOnly": true,
            "default": false,
            "description": "If the vendor fee is read-only."
          },
          "create_date": {
            "type": "string",
            "nullable": true,
            "description": "The date and time the object was first created",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "update_date": {
            "type": "string",
            "readOnly": true,
            "nullable": true,
            "description": "The date and time the object was last updated",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2025-09-29 00:00:00"
          },
          "alternative_id": {
            "type": "string",
            "nullable": true,
            "description": "An ID that may be used for any reporting or administrative purpose. Limited to 191 characters.",
            "maxLength": 200
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "Free-form notes of up to 255 characters.",
            "maxLength": 255
          },
          "fee_type": {
            "type": "string",
            "description": "The key of the fee type",
            "nullable": true
          }
        },
        "required": [
          "name",
          "vendor"
        ]
      }
    },
    "securitySchemes": {
      "nestBasicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Form-based Basic Authentication"
      },
      "nestSessionAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Form-based Basic Authentication"
      }
    }
  },
  "x-explorer-enabled": false,
  "x-samples-languages": [
    "curl",
    "node",
    "ruby",
    "javascript",
    "python",
    "php",
    "java"
  ],
  "servers": [
    {
      "url": "https://{buzz_key}.api.beeswax.com/rest/v2",
      "variables": {
        "buzz_key": {
          "default": "stingersbx",
          "description": "Unique customer ID assigned by the Beeswax"
        }
      }
    }
  ],
  "x-readme": {
    "apply-endpoint-order": true,
    "apply-tag-changes": true
  }
}
```