{
  "openapi": "3.0.1",
  "info": {
    "title": "TrackCrest API",
    "description": "Send an API key as `Authorization: Bearer pk_…`. Create keys in the app: Integrations → API Keys (networks), Settings → API Keys (affiliates), API Keys (advertisers). Errors are application/problem+json.",
    "version": "v1"
  },
  "paths": {
    "/api/v1/advertiser/me": {
      "get": {
        "tags": [
          "Advertiser · Account"
        ],
        "summary": "Your profile, the network's name and currency, and its reversal rules.",
        "description": "Any valid key.",
        "operationId": "AdvertiserMe",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserMeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "any"
      }
    },
    "/api/v1/advertiser/integration": {
      "get": {
        "tags": [
          "Advertiser · Account"
        ],
        "summary": "Your postback URL template, its parameters, and pixel and script snippets for your thank-you page.",
        "description": "Requires scope `postbacks:read`.",
        "operationId": "AdvertiserIntegration",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserIntegrationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "postbacks:read"
      }
    },
    "/api/v1/advertiser/conversions": {
      "post": {
        "tags": [
          "Advertiser · Conversions"
        ],
        "summary": "Report a conversion server to server: clickId (required), event, amount, currency, orderId, sub1–sub5. Same rules as the /p postback; a repeat (same orderId, or same click and event) returns 409 with the original.",
        "description": "Requires scope `conversions:write`.",
        "operationId": "AdvertiserRecordConversion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvertiserConversionInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserConversionViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserConversionViewResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:write"
      },
      "get": {
        "tags": [
          "Advertiser · Conversions"
        ],
        "summary": "Your conversions, newest first, cursor-paged: status, offer, event, revenue, country, your orderId. Up to 93 days (default 7).",
        "description": "Requires scope `conversions:read`.",
        "operationId": "AdvertiserListConversions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserConversionViewCursorPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:read"
      }
    },
    "/api/v1/advertiser/conversions/batch": {
      "post": {
        "tags": [
          "Advertiser · Conversions"
        ],
        "summary": "Up to 500 conversions in one call. Each item gets its own result: created, duplicate or error.",
        "description": "Requires scope `conversions:write`.",
        "operationId": "AdvertiserRecordConversionBatch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvertiserConversionBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchItemResultListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:write"
      }
    },
    "/api/v1/advertiser/conversions/{id}/reverse": {
      "post": {
        "tags": [
          "Advertiser · Conversions"
        ],
        "summary": "Reverse a conversion (chargeback, refund) with a reason, within the network's window (see /me). 200 when applied at once; 202 when it waits for the network's review.",
        "description": "Requires scope `conversions:write`.",
        "operationId": "AdvertiserReverseConversion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReversalInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReversalViewResponse"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReversalViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:write"
      }
    },
    "/api/v1/advertiser/reversals": {
      "get": {
        "tags": [
          "Advertiser · Conversions"
        ],
        "summary": "Your reversals and their status: pending, applied or denied.",
        "description": "Requires scope `conversions:read`.",
        "operationId": "AdvertiserListReversals",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReversalViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:read"
      }
    },
    "/api/v1/advertiser/invoices": {
      "get": {
        "tags": [
          "Advertiser · Invoices"
        ],
        "summary": "Invoices the network issued to you. Filter: status.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "AdvertiserListInvoices",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserInvoiceViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/advertiser/invoices/{publicId}": {
      "get": {
        "tags": [
          "Advertiser · Invoices"
        ],
        "summary": "One invoice with its lines.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "AdvertiserGetInvoice",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserInvoiceViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/advertiser/invoices/{publicId}/pdf": {
      "get": {
        "tags": [
          "Advertiser · Invoices"
        ],
        "summary": "The invoice as a PDF.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "AdvertiserInvoicePdf",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/advertiser/offers": {
      "get": {
        "tags": [
          "Advertiser · Offers"
        ],
        "summary": "Your offers: status, revenue model and amount, caps, targeting, landing URL. Filters: status, q.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AdvertiserListOffers",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserOfferViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/advertiser/offers/{publicId}": {
      "get": {
        "tags": [
          "Advertiser · Offers"
        ],
        "summary": "One offer with its conversion events and the revenue for each.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AdvertiserGetOffer",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserOfferViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/advertiser/reports/summary": {
      "get": {
        "tags": [
          "Advertiser · Reports"
        ],
        "summary": "Clicks, conversions, CR and revenue. groupBy: up to 3 of day, offer, country, event.",
        "description": "Requires scope `reports:read`.",
        "operationId": "AdvertiserReportSummary",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportRowPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "reports:read",
        "x-report": true
      }
    },
    "/api/v1/advertiser/webhooks": {
      "get": {
        "tags": [
          "Advertiser · Webhooks"
        ],
        "summary": "Webhook subscriptions.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AdvertiserListWebhooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      },
      "post": {
        "tags": [
          "Advertiser · Webhooks"
        ],
        "summary": "Subscribe a URL to events. The signing secret is returned once: verify X-Signature (t=<unix>,v1=<hex HMAC-SHA256 of \"t.body\">) on every delivery.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AdvertiserCreateWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/advertiser/webhooks/{publicId}": {
      "delete": {
        "tags": [
          "Advertiser · Webhooks"
        ],
        "summary": "Unsubscribe. Deliveries still queued are dropped.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AdvertiserDeleteWebhook",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/advertiser/webhooks/{publicId}/test": {
      "post": {
        "tags": [
          "Advertiser · Webhooks"
        ],
        "summary": "Send a webhook.test event now and see what the endpoint answered.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AdvertiserTestWebhook",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookTestResultResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/advertiser/webhooks/{publicId}/deliveries": {
      "get": {
        "tags": [
          "Advertiser · Webhooks"
        ],
        "summary": "Recent deliveries: status, attempts, the endpoint's last answer and the next retry.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AdvertiserWebhookDeliveries",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/affiliate/me": {
      "get": {
        "tags": [
          "Affiliate · Account"
        ],
        "summary": "Your profile, manager and the network's currency.",
        "description": "Any valid key.",
        "operationId": "AffiliateMe",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateMeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "any"
      }
    },
    "/api/v1/affiliate/payouts": {
      "get": {
        "tags": [
          "Affiliate · Finance"
        ],
        "summary": "Your balance per currency: pending, payable and paid.",
        "description": "Requires scope `payouts:read`.",
        "operationId": "AffiliatePayouts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutBalanceListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "payouts:read"
      }
    },
    "/api/v1/affiliate/invoices": {
      "get": {
        "tags": [
          "Affiliate · Finance"
        ],
        "summary": "Your invoices.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "AffiliateListInvoices",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateInvoiceViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/affiliate/invoices/{publicId}": {
      "get": {
        "tags": [
          "Affiliate · Finance"
        ],
        "description": "Requires scope `invoices:read`.",
        "operationId": "AffiliateGetInvoice",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateInvoiceViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/affiliate/invoices/{publicId}/pdf": {
      "get": {
        "tags": [
          "Affiliate · Finance"
        ],
        "summary": "The invoice as a PDF.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "AffiliateInvoicePdf",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/affiliate/tracking-links": {
      "get": {
        "tags": [
          "Affiliate · Links"
        ],
        "summary": "Your tracking links.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AffiliateListTrackingLinks",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateLinkViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      },
      "post": {
        "tags": [
          "Affiliate · Links"
        ],
        "summary": "Build a link for an offer you're approved for, with sub1–sub5 and an optional deep link. Nothing is stored: the values ride on the URL.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AffiliateBuildTrackingLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AffiliateLinkInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateLinkViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/affiliate/offers": {
      "get": {
        "tags": [
          "Affiliate · Offers"
        ],
        "summary": "Offers you can see, with your payout and application status. Filters: approved, category, country, q.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AffiliateListOffers",
        "parameters": [
          {
            "name": "approved",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateOfferViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/affiliate/offers/{publicId}": {
      "get": {
        "tags": [
          "Affiliate · Offers"
        ],
        "summary": "One offer with its events (your payout per event) and creatives.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AffiliateGetOffer",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateOfferViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/affiliate/offers/{publicId}/apply": {
      "post": {
        "tags": [
          "Affiliate · Offers"
        ],
        "summary": "Apply to run an offer, with an optional note. Public offers are approved at once.",
        "description": "Requires scope `offers:write`.",
        "operationId": "AffiliateApplyForOffer",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/affiliate/offer-requests": {
      "get": {
        "tags": [
          "Affiliate · Offers"
        ],
        "summary": "Your applications and their status.",
        "description": "Requires scope `offers:read`.",
        "operationId": "AffiliateListOfferRequests",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/affiliate/postbacks": {
      "get": {
        "tags": [
          "Affiliate · Postbacks"
        ],
        "summary": "Your postbacks: global, or for one offer.",
        "description": "Requires scope `postbacks:read`.",
        "operationId": "AffiliateListPostbacks",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliatePostbackViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "postbacks:read"
      },
      "post": {
        "tags": [
          "Affiliate · Postbacks"
        ],
        "summary": "Add a postback: url (with macros such as {click_id}), optional offerId, event (Conversion, Click, Lead, Rejected, All) and trigger (Every, First, Unique).",
        "description": "Requires scope `postbacks:write`.",
        "operationId": "AffiliateCreatePostback",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostbackInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliatePostbackViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "postbacks:write"
      }
    },
    "/api/v1/affiliate/postbacks/{publicId}": {
      "patch": {
        "tags": [
          "Affiliate · Postbacks"
        ],
        "summary": "Change a postback. Fields left out stay as they are.",
        "description": "Requires scope `postbacks:write`.",
        "operationId": "AffiliateUpdatePostback",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostbackPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliatePostbackViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "postbacks:write"
      },
      "delete": {
        "tags": [
          "Affiliate · Postbacks"
        ],
        "description": "Requires scope `postbacks:write`.",
        "operationId": "AffiliateDeletePostback",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "postbacks:write"
      }
    },
    "/api/v1/affiliate/postbacks/deliveries": {
      "get": {
        "tags": [
          "Affiliate · Postbacks"
        ],
        "summary": "Recent postback firings: the URL called, the HTTP status and any error.",
        "description": "Requires scope `postbacks:read`.",
        "operationId": "AffiliatePostbackDeliveries",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostbackDeliveryViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "postbacks:read"
      }
    },
    "/api/v1/affiliate/reports/summary": {
      "get": {
        "tags": [
          "Affiliate · Reports"
        ],
        "summary": "Clicks, conversions, CR, payout and EPC. groupBy: up to 3 of day, hour, offer, country, event, subId1–subId5.",
        "description": "Requires scope `reports:read`.",
        "operationId": "AffiliateReportSummary",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportRowPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "reports:read",
        "x-report": true
      }
    },
    "/api/v1/affiliate/conversions": {
      "get": {
        "tags": [
          "Affiliate · Reports"
        ],
        "summary": "Your conversions, newest first, cursor-paged: status, event, payout, sub IDs. Up to 93 days (default 7).",
        "description": "Requires scope `conversions:read`.",
        "operationId": "AffiliateListConversions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateConversionViewCursorPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:read"
      }
    },
    "/api/v1/affiliate/clicks": {
      "get": {
        "tags": [
          "Affiliate · Reports"
        ],
        "summary": "Your clicks, newest first, cursor-paged. Up to 31 days (default 1).",
        "description": "Requires scope `clicks:read`.",
        "operationId": "AffiliateListClicks",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClickViewCursorPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "clicks:read"
      }
    },
    "/api/v1/affiliate/webhooks": {
      "get": {
        "tags": [
          "Affiliate · Webhooks"
        ],
        "summary": "Webhook subscriptions.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AffiliateListWebhooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      },
      "post": {
        "tags": [
          "Affiliate · Webhooks"
        ],
        "summary": "Subscribe a URL to events. The signing secret is returned once: verify X-Signature (t=<unix>,v1=<hex HMAC-SHA256 of \"t.body\">) on every delivery.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AffiliateCreateWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/affiliate/webhooks/{publicId}": {
      "delete": {
        "tags": [
          "Affiliate · Webhooks"
        ],
        "summary": "Unsubscribe. Deliveries still queued are dropped.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AffiliateDeleteWebhook",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/affiliate/webhooks/{publicId}/test": {
      "post": {
        "tags": [
          "Affiliate · Webhooks"
        ],
        "summary": "Send a webhook.test event now and see what the endpoint answered.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AffiliateTestWebhook",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookTestResultResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/affiliate/webhooks/{publicId}/deliveries": {
      "get": {
        "tags": [
          "Affiliate · Webhooks"
        ],
        "summary": "Recent deliveries: status, attempts, the endpoint's last answer and the next retry.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "AffiliateWebhookDeliveries",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/key": {
      "get": {
        "tags": [
          "Key"
        ],
        "summary": "The calling key: its type, scopes, network and rate limits.",
        "description": "Any valid key.",
        "operationId": "PublicApiKeyInfo",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyInfoResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "any"
      }
    },
    "/api/v1/network/payouts/ledger": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "Pending, payable, paid and rejected amounts per affiliate and currency.",
        "description": "Requires scope `payouts:read`.",
        "operationId": "NetworkPayoutLedger",
        "parameters": [
          {
            "name": "affiliateId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "payouts:read"
      }
    },
    "/api/v1/network/affiliate-invoices": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "Invoices for affiliate payouts. Filters: status, affiliateId.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "NetworkListAffiliateInvoices",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "affiliateId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateInvoiceViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/network/affiliate-invoices/{publicId}": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "description": "Requires scope `invoices:read`.",
        "operationId": "NetworkGetAffiliateInvoice",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateInvoiceViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      },
      "patch": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "Mark an affiliate invoice paid, partially paid (with amountPaid) or void.",
        "description": "Requires scope `invoices:write`.",
        "operationId": "NetworkUpdateAffiliateInvoice",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoicePatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateInvoiceViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:write"
      }
    },
    "/api/v1/network/affiliate-invoices/{publicId}/pdf": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "The invoice as a PDF.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "NetworkAffiliateInvoicePdf",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/network/advertiser-invoices": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "Invoices issued to advertisers. Filters: status, advertiserId.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "NetworkListAdvertiserInvoices",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "advertiserId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserInvoiceViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/network/advertiser-invoices/{publicId}": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "One advertiser invoice with its lines.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "NetworkGetAdvertiserInvoice",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserInvoiceViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/network/advertiser-invoices/{publicId}/pdf": {
      "get": {
        "tags": [
          "Network · Finance"
        ],
        "summary": "The invoice as a PDF.",
        "description": "Requires scope `invoices:read`.",
        "operationId": "NetworkAdvertiserInvoicePdf",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "invoices:read"
      }
    },
    "/api/v1/network/offers": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Offers. Filters: status, advertiserId, category, visibility, q.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkListOffers",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "advertiserId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "visibility",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      },
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Create an offer. Counts against the plan's offer limit.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkCreateOffer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOfferInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offers/{publicId}": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "One offer with payout, revenue, caps, targeting and dates.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkGetOffer",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      },
      "patch": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Change an offer's name, URLs, payout, revenue, status or dates. Fields left out stay as they are.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkUpdateOffer",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offers/{publicId}/events": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Conversion events, with payout and revenue per event.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkOfferEvents",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferEventViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      },
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Add a conversion event with its own payout and revenue.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkCreateOfferEvent",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferEventInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferEventViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offers/{publicId}/payout-rules": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Per-affiliate, per-event and per-country payout overrides.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkOfferPayoutRules",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutRuleViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      },
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Add a payout override for some affiliates, an event or countries.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkCreatePayoutRule",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayoutRuleInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutRuleViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offers/{publicId}/creatives": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Creatives with download URLs.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkOfferCreatives",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreativeViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/network/offers/{publicId}/caps": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Capping rules and their usage this period.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkOfferCaps",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/network/offer-requests": {
      "get": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Affiliate applications for offers. Filters: status, offerId, affiliateId.",
        "description": "Requires scope `offers:read`.",
        "operationId": "NetworkListOfferRequests",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "affiliateId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:read"
      }
    },
    "/api/v1/network/offers/{publicId}/targeting": {
      "patch": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Replace the countries, devices or operating systems an offer accepts. A list left out stays; an empty list clears it.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkUpdateOfferTargeting",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TargetingInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offer-requests/{publicId}/approve": {
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Approve an affiliate's offer request, with an optional note.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkApproveOfferRequest",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offer-requests/{publicId}/reject": {
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Reject an affiliate's offer request, with an optional note.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkRejectOfferRequest",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offer-requests/{publicId}/suspend": {
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Suspend an affiliate's offer request, with an optional note.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkSuspendOfferRequest",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/offer-requests/{publicId}/reinstate": {
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "Reinstate an affiliate's offer request, with an optional note.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkReinstateOfferRequest",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRequestViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/tracking-links": {
      "post": {
        "tags": [
          "Network · Offers"
        ],
        "summary": "A tracking link for an affiliate and offer, with optional sub IDs.",
        "description": "Requires scope `offers:write`.",
        "operationId": "NetworkCreateTrackingLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackingLinkInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackingLinkViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "offers:write"
      }
    },
    "/api/v1/network/advertisers": {
      "get": {
        "tags": [
          "Network · Partners"
        ],
        "summary": "Advertisers. Filters: status, q.",
        "description": "Requires scope `advertisers:read`.",
        "operationId": "NetworkListAdvertisers",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "advertisers:read"
      },
      "post": {
        "tags": [
          "Network · Partners"
        ],
        "summary": "Create an advertiser. Counts against the plan's advertiser limit.",
        "description": "Requires scope `advertisers:write`.",
        "operationId": "NetworkCreateAdvertiser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvertiserInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "advertisers:write"
      }
    },
    "/api/v1/network/advertisers/{publicId}": {
      "get": {
        "tags": [
          "Network · Partners"
        ],
        "description": "Requires scope `advertisers:read`.",
        "operationId": "NetworkGetAdvertiser",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "advertisers:read"
      },
      "patch": {
        "tags": [
          "Network · Partners"
        ],
        "summary": "Change an advertiser's details or status.",
        "description": "Requires scope `advertisers:write`.",
        "operationId": "NetworkUpdateAdvertiser",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdvertiserPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvertiserViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "advertisers:write"
      }
    },
    "/api/v1/network/affiliates": {
      "get": {
        "tags": [
          "Network · Partners"
        ],
        "summary": "Affiliates. Filters: status, manager, q. Payment details are never included.",
        "description": "Requires scope `affiliates:read`.",
        "operationId": "NetworkListAffiliates",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manager",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "affiliates:read"
      },
      "post": {
        "tags": [
          "Network · Partners"
        ],
        "summary": "Create an affiliate; sendInvite emails them a link to set a password. Counts against the plan's affiliate limit.",
        "description": "Requires scope `affiliates:write`.",
        "operationId": "NetworkCreateAffiliate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AffiliateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "affiliates:write"
      }
    },
    "/api/v1/network/affiliates/{publicId}": {
      "get": {
        "tags": [
          "Network · Partners"
        ],
        "description": "Requires scope `affiliates:read`.",
        "operationId": "NetworkGetAffiliate",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "affiliates:read"
      },
      "patch": {
        "tags": [
          "Network · Partners"
        ],
        "summary": "Change an affiliate's details, or its status (active, pending, suspended…). Status changes email the affiliate as in the dashboard.",
        "description": "Requires scope `affiliates:write`.",
        "operationId": "NetworkUpdateAffiliate",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AffiliatePatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffiliateViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "affiliates:write"
      }
    },
    "/api/v1/network/reports/summary": {
      "get": {
        "tags": [
          "Network · Reports"
        ],
        "summary": "Clicks, conversions, CR, revenue, payout and profit. groupBy: up to 3 of day, hour, offer, affiliate, advertiser, country, event, subId1–subId5.",
        "description": "Requires scope `reports:read`.",
        "operationId": "NetworkReportSummary",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "affiliateId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "advertiserId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportRowPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "reports:read",
        "x-report": true
      }
    },
    "/api/v1/network/reports/revenue": {
      "get": {
        "tags": [
          "Network · Reports"
        ],
        "summary": "Revenue, payout and profit per day, week or month. Range up to a year (default 90 days).",
        "description": "Requires scope `reports:read`.",
        "operationId": "NetworkReportRevenue",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "advertiserId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevenuePeriodRowListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "reports:read",
        "x-report": true
      }
    },
    "/api/v1/network/reports/fraud": {
      "get": {
        "tags": [
          "Network · Reports"
        ],
        "summary": "Fraud signals per offer, affiliate and signal type.",
        "description": "Requires scope `reports:read`.",
        "operationId": "NetworkReportFraud",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FraudReportRowListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "reports:read",
        "x-report": true
      }
    },
    "/api/v1/network/conversions": {
      "get": {
        "tags": [
          "Network · Traffic"
        ],
        "summary": "Raw conversions, newest first, cursor-paged. Range up to 93 days (default 7).",
        "description": "Requires scope `conversions:read`.",
        "operationId": "NetworkListConversions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "affiliateId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "advertiserId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeTest",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversionViewCursorPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:read"
      },
      "post": {
        "tags": [
          "Network · Traffic"
        ],
        "summary": "Record a conversion for one of the network's clicks, server to server. Same rules as the /p postback; a duplicate returns 409 with the original.",
        "description": "Requires scope `conversions:write`.",
        "operationId": "NetworkRecordConversion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversionViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversionViewResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:write"
      }
    },
    "/api/v1/network/clicks": {
      "get": {
        "tags": [
          "Network · Traffic"
        ],
        "summary": "Raw clicks, newest first, cursor-paged. Range up to 31 days (default 1).",
        "description": "Requires scope `clicks:read`.",
        "operationId": "NetworkListClicks",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "affiliateId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "advertiserId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeTest",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClickViewCursorPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "clicks:read"
      }
    },
    "/api/v1/network/clicks/{clickId}": {
      "get": {
        "tags": [
          "Network · Traffic"
        ],
        "summary": "One click and the conversions attributed to it.",
        "description": "Requires scope `clicks:read`.",
        "operationId": "NetworkGetClick",
        "parameters": [
          {
            "name": "clickId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClickDetailViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "clicks:read"
      }
    },
    "/api/v1/network/conversions/status": {
      "post": {
        "tags": [
          "Network · Traffic"
        ],
        "summary": "Approve, reject, set pending or mark payable up to 1000 conversions, with an optional reason. All or nothing.",
        "description": "Requires scope `conversions:write`.",
        "operationId": "NetworkSetConversionStatus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionStatusInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusChangeViewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "conversions:write"
      }
    },
    "/api/v1/network/webhooks": {
      "get": {
        "tags": [
          "Network · Webhooks"
        ],
        "summary": "Webhook subscriptions.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "NetworkListWebhooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookViewListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      },
      "post": {
        "tags": [
          "Network · Webhooks"
        ],
        "summary": "Subscribe a URL to events. The signing secret is returned once: verify X-Signature (t=<unix>,v1=<hex HMAC-SHA256 of \"t.body\">) on every delivery.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "NetworkCreateWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedWebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/network/webhooks/{publicId}": {
      "delete": {
        "tags": [
          "Network · Webhooks"
        ],
        "summary": "Unsubscribe. Deliveries still queued are dropped.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "NetworkDeleteWebhook",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/network/webhooks/{publicId}/test": {
      "post": {
        "tags": [
          "Network · Webhooks"
        ],
        "summary": "Send a webhook.test event now and see what the endpoint answered.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "NetworkTestWebhook",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookTestResultResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    },
    "/api/v1/network/webhooks/{publicId}/deliveries": {
      "get": {
        "tags": [
          "Network · Webhooks"
        ],
        "summary": "Recent deliveries: status, attempts, the endpoint's last answer and the next retry.",
        "description": "Requires scope `webhooks:write`.",
        "operationId": "NetworkWebhookDeliveries",
        "parameters": [
          {
            "name": "publicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryViewPage"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {}
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/problem+json": {}
            }
          },
          "403": {
            "description": "Missing scope or wrong key type",
            "content": {
              "application/problem+json": {}
            }
          },
          "404": {
            "description": "Not found (also for other networks' records)",
            "content": {
              "application/problem+json": {}
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/problem+json": {}
            }
          }
        },
        "x-scope": "webhooks:write"
      }
    }
  },
  "components": {
    "schemas": {
      "AdvertiserApiPolicy": {
        "type": "object",
        "properties": {
          "reversalWindowDays": {
            "type": "integer",
            "format": "int32"
          },
          "reversalsNeedReview": {
            "type": "boolean"
          },
          "affiliateIdsHidden": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserConversionBatch": {
        "type": "object",
        "properties": {
          "conversions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertiserConversionInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserConversionInput": {
        "type": "object",
        "properties": {
          "clickId": {
            "type": "string",
            "format": "uuid"
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "orderId": {
            "type": "string",
            "nullable": true
          },
          "sub1": {
            "type": "string",
            "nullable": true
          },
          "sub2": {
            "type": "string",
            "nullable": true
          },
          "sub3": {
            "type": "string",
            "nullable": true
          },
          "sub4": {
            "type": "string",
            "nullable": true
          },
          "sub5": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserConversionView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "clickId": {
            "type": "string",
            "format": "uuid"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "affiliateId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "event": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "orderId": {
            "type": "string",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "convertedAt": {
            "type": "string",
            "format": "date-time"
          },
          "approvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserConversionViewCursorPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertiserConversionView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiCursor"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserConversionViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AdvertiserConversionView"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserIntegration": {
        "type": "object",
        "properties": {
          "postbackUrl": {
            "type": "string"
          },
          "tokens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IntegrationToken"
            }
          },
          "snippets": {
            "$ref": "#/components/schemas/IntegrationSnippets"
          },
          "apiEndpoint": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserIntegrationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AdvertiserIntegration"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserInvoiceView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "number": {
            "type": "string"
          },
          "advertiser": {
            "$ref": "#/components/schemas/Ref"
          },
          "status": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time"
          },
          "sentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paidAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceLineView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserInvoiceViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertiserInvoiceView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserInvoiceViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AdvertiserInvoiceView"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserMe": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "network": {
            "$ref": "#/components/schemas/AdvertiserNetwork"
          },
          "policy": {
            "$ref": "#/components/schemas/AdvertiserApiPolicy"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserMeResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AdvertiserMe"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserNetwork": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserOfferEvent": {
        "type": "object",
        "properties": {
          "eventKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserOfferView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "revenueModel": {
            "type": "string"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenuePercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "caps": {
            "$ref": "#/components/schemas/OfferCaps"
          },
          "targeting": {
            "$ref": "#/components/schemas/OfferTargeting"
          },
          "landingUrl": {
            "type": "string"
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertiserOfferEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserOfferViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertiserOfferView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserOfferViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AdvertiserOfferView"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserPatch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvertiserView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "planLocked": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertiserView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AdvertiserViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AdvertiserView"
          }
        },
        "additionalProperties": false
      },
      "AffiliateApplication": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string"
          },
          "appliedAt": {
            "type": "string",
            "format": "date-time"
          },
          "reviewedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliateConversionView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "clickId": {
            "type": "string",
            "format": "uuid"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "event": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "subIds": {
            "$ref": "#/components/schemas/SubIds"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "affClickId": {
            "type": "string",
            "nullable": true
          },
          "convertedAt": {
            "type": "string",
            "format": "date-time"
          },
          "approvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliateConversionViewCursorPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliateConversionView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiCursor"
          }
        },
        "additionalProperties": false
      },
      "AffiliateInput": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "telegram": {
            "type": "string",
            "nullable": true
          },
          "sendInvite": {
            "type": "boolean"
          },
          "requireIdVerification": {
            "type": "boolean"
          },
          "requireInsertionOrder": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliateInvoiceView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "number": {
            "type": "string"
          },
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "status": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time"
          },
          "paidAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliateInvoiceViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliateInvoiceView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AffiliateInvoiceViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AffiliateInvoiceView"
          }
        },
        "additionalProperties": false
      },
      "AffiliateLinkInput": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "integer",
            "format": "int32"
          },
          "sub1": {
            "type": "string",
            "nullable": true
          },
          "sub2": {
            "type": "string",
            "nullable": true
          },
          "sub3": {
            "type": "string",
            "nullable": true
          },
          "sub4": {
            "type": "string",
            "nullable": true
          },
          "sub5": {
            "type": "string",
            "nullable": true
          },
          "deepLink": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliateLinkView": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "subIds": {
            "$ref": "#/components/schemas/SubIds"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AffiliateLinkViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliateLinkView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AffiliateLinkViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AffiliateLinkView"
          }
        },
        "additionalProperties": false
      },
      "AffiliateMe": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "network": {
            "$ref": "#/components/schemas/AffiliateNetwork"
          }
        },
        "additionalProperties": false
      },
      "AffiliateMeResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AffiliateMe"
          }
        },
        "additionalProperties": false
      },
      "AffiliateNetwork": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AffiliateOfferEvent": {
        "type": "object",
        "properties": {
          "eventKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AffiliateOfferView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          },
          "payoutModel": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "targeting": {
            "$ref": "#/components/schemas/OfferTargeting"
          },
          "caps": {
            "$ref": "#/components/schemas/OfferCaps"
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approved": {
            "type": "boolean"
          },
          "application": {
            "$ref": "#/components/schemas/AffiliateApplication"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "kpi": {
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliateOfferEvent"
            },
            "nullable": true
          },
          "creatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreativeView"
            },
            "nullable": true
          },
          "payoutsByCountry": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tracking.Application.Offers.CountryPayout"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliateOfferViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliateOfferView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AffiliateOfferViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AffiliateOfferView"
          }
        },
        "additionalProperties": false
      },
      "AffiliatePatch": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "telegram": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AffiliatePostbackView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "type": "string"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "event": {
            "type": "string"
          },
          "trigger": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AffiliatePostbackViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliatePostbackView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AffiliatePostbackViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AffiliatePostbackView"
          }
        },
        "additionalProperties": false
      },
      "AffiliateView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string"
          },
          "manager": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "telegram": {
            "type": "string",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "nullable": true
          },
          "insertionOrderRequired": {
            "type": "boolean"
          },
          "insertionOrderSignedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "planLocked": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AffiliateViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffiliateView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "AffiliateViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AffiliateView"
          }
        },
        "additionalProperties": false
      },
      "ApiCursor": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "nextCursor": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiPagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ApplyInput": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "BatchItemResult": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string"
          },
          "conversion": {
            "$ref": "#/components/schemas/AdvertiserConversionView"
          },
          "error": {
            "$ref": "#/components/schemas/BatchError"
          }
        },
        "additionalProperties": false
      },
      "BatchItemResultListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchItemResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CapView": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "overCapAction": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "used": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CapViewListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CapView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChangePlanInput": {
        "type": "object",
        "properties": {
          "planSlug": {
            "type": "string",
            "nullable": true
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "interval": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "trialDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClickDetailView": {
        "type": "object",
        "properties": {
          "click": {
            "$ref": "#/components/schemas/ClickView"
          },
          "conversions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConversionView"
            }
          }
        },
        "additionalProperties": false
      },
      "ClickDetailViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ClickDetailView"
          }
        },
        "additionalProperties": false
      },
      "ClickView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "device": {
            "type": "string",
            "nullable": true
          },
          "os": {
            "type": "string",
            "nullable": true
          },
          "browser": {
            "type": "string",
            "nullable": true
          },
          "ip": {
            "type": "string",
            "nullable": true
          },
          "subIds": {
            "$ref": "#/components/schemas/SubIds"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "affClickId": {
            "type": "string",
            "nullable": true
          },
          "unique": {
            "type": "boolean"
          },
          "fraudFlagged": {
            "type": "boolean"
          },
          "clickedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ClickViewCursorPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClickView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiCursor"
          }
        },
        "additionalProperties": false
      },
      "ConversionInput": {
        "type": "object",
        "properties": {
          "clickId": {
            "type": "string",
            "format": "uuid"
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "transactionId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConversionStatusInput": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "status": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConversionView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "clickId": {
            "type": "string",
            "format": "uuid"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "advertiser": {
            "$ref": "#/components/schemas/Ref"
          },
          "event": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "payout": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "subIds": {
            "$ref": "#/components/schemas/SubIds"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "affClickId": {
            "type": "string",
            "nullable": true
          },
          "advertiserTxnId": {
            "type": "string",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "convertedAt": {
            "type": "string",
            "format": "date-time"
          },
          "approvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConversionViewCursorPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConversionView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiCursor"
          }
        },
        "additionalProperties": false
      },
      "ConversionViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ConversionView"
          }
        },
        "additionalProperties": false
      },
      "CreateOfferInput": {
        "type": "object",
        "properties": {
          "advertiserId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "landingUrl": {
            "type": "string"
          },
          "payoutModel": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "nullable": true
          },
          "kpi": {
            "type": "string",
            "nullable": true
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenuePercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targeting": {
            "$ref": "#/components/schemas/TargetingInput"
          }
        },
        "additionalProperties": false
      },
      "CreateWebhookInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "CreatedWebhook": {
        "type": "object",
        "properties": {
          "webhook": {
            "$ref": "#/components/schemas/WebhookView"
          },
          "secret": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CreatedWebhookResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CreatedWebhook"
          }
        },
        "additionalProperties": false
      },
      "CreativeView": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          },
          "dimensions": {
            "type": "string",
            "nullable": true
          },
          "trackingUrl": {
            "type": "string",
            "nullable": true
          },
          "downloadUrl": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreativeViewListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreativeView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExtendTrialInput": {
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FraudReportRow": {
        "type": "object",
        "properties": {
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "signalType": {
            "type": "string"
          },
          "signals": {
            "type": "integer",
            "format": "int32"
          },
          "high": {
            "type": "integer",
            "format": "int32"
          },
          "unresolved": {
            "type": "integer",
            "format": "int32"
          },
          "lastDetectedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "FraudReportRowListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FraudReportRow"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IntegrationSnippets": {
        "type": "object",
        "properties": {
          "s2S": {
            "type": "string"
          },
          "pixel": {
            "type": "string"
          },
          "iframe": {
            "type": "string"
          },
          "gtm": {
            "type": "string"
          },
          "webSdk": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "IntegrationToken": {
        "type": "object",
        "properties": {
          "param": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "InvoiceLineView": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "unitRate": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "offer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvoicePatch": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "amountPaid": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KeyCompany": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "KeyInfo": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "network": {
            "$ref": "#/components/schemas/KeyCompany"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rateLimit": {
            "$ref": "#/components/schemas/KeyRateLimit"
          }
        },
        "additionalProperties": false
      },
      "KeyInfoResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/KeyInfo"
          }
        },
        "additionalProperties": false
      },
      "KeyRateLimit": {
        "type": "object",
        "properties": {
          "requestsPerMinute": {
            "type": "integer",
            "format": "int32"
          },
          "reportRequestsPerMinute": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LedgerView": {
        "type": "object",
        "properties": {
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "currency": {
            "type": "string"
          },
          "pending": {
            "type": "number",
            "format": "double"
          },
          "payable": {
            "type": "number",
            "format": "double"
          },
          "paid": {
            "type": "number",
            "format": "double"
          },
          "rejected": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "LedgerViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LedgerView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "MarkPaidInput": {
        "type": "object",
        "properties": {
          "reference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MoneyAmount": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "OfferCaps": {
        "type": "object",
        "properties": {
          "daily": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "monthly": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "global": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OfferEventInput": {
        "type": "object",
        "properties": {
          "eventKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OfferEventView": {
        "type": "object",
        "properties": {
          "eventKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OfferEventViewListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferEventView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OfferEventViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/OfferEventView"
          }
        },
        "additionalProperties": false
      },
      "OfferPatch": {
        "type": "object",
        "properties": {
          "advertiserId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "landingUrl": {
            "type": "string",
            "nullable": true
          },
          "payoutModel": {
            "type": "string",
            "nullable": true
          },
          "payout": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "nullable": true
          },
          "kpi": {
            "type": "string",
            "nullable": true
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenuePercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OfferRequestView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "status": {
            "type": "string"
          },
          "affiliateNote": {
            "type": "string",
            "nullable": true
          },
          "reviewNote": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "reviewedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OfferRequestViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferRequestView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "OfferRequestViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/OfferRequestView"
          }
        },
        "additionalProperties": false
      },
      "OfferTargeting": {
        "type": "object",
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "devices": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operatingSystems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "OfferView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "visibility": {
            "type": "string",
            "nullable": true
          },
          "advertiser": {
            "$ref": "#/components/schemas/Ref"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "payoutModel": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenuePercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "caps": {
            "$ref": "#/components/schemas/OfferCaps"
          },
          "targeting": {
            "$ref": "#/components/schemas/OfferTargeting"
          },
          "landingUrl": {
            "type": "string"
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "planLocked": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "kpi": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OfferViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "OfferViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/OfferView"
          }
        },
        "additionalProperties": false
      },
      "PayoutBalance": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "pending": {
            "type": "number",
            "format": "double"
          },
          "payable": {
            "type": "number",
            "format": "double"
          },
          "paid": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PayoutBalanceListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayoutBalance"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayoutRuleInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "payoutModel": {
            "type": "string",
            "nullable": true
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "affiliateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "enabled": {
            "type": "boolean"
          },
          "excludeAffiliates": {
            "type": "boolean"
          },
          "excludeEvents": {
            "type": "boolean"
          },
          "excludeCountries": {
            "type": "boolean"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenuePercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayoutRuleView": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "payoutModel": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "affiliateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "enabled": {
            "type": "boolean"
          },
          "excludeAffiliates": {
            "type": "boolean"
          },
          "excludeEvents": {
            "type": "boolean"
          },
          "excludeCountries": {
            "type": "boolean"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenuePercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayoutRuleViewListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayoutRuleView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayoutRuleViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PayoutRuleView"
          }
        },
        "additionalProperties": false
      },
      "PlanViewListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tracking.Application.Billing.PlanView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlanViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Tracking.Application.Billing.PlanView"
          }
        },
        "additionalProperties": false
      },
      "PlatformCompanyCounts": {
        "type": "object",
        "properties": {
          "users": {
            "type": "integer",
            "format": "int32"
          },
          "affiliates": {
            "type": "integer",
            "format": "int32"
          },
          "advertisers": {
            "type": "integer",
            "format": "int32"
          },
          "offers": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PlatformCompanyPatch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "accountEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformCompanyView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "accountEmail": {
            "type": "string",
            "nullable": true
          },
          "ownerName": {
            "type": "string",
            "nullable": true
          },
          "ownerEmail": {
            "type": "string",
            "nullable": true
          },
          "plan": {
            "$ref": "#/components/schemas/PlatformPlanRef"
          },
          "subscriptionStatus": {
            "type": "string",
            "nullable": true
          },
          "trialEndsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "counts": {
            "$ref": "#/components/schemas/PlatformCompanyCounts"
          }
        },
        "additionalProperties": false
      },
      "PlatformCompanyViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformCompanyView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "PlatformCompanyViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PlatformCompanyView"
          }
        },
        "additionalProperties": false
      },
      "PlatformInvoiceLineView": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "unitAmount": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "kind": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PlatformInvoiceView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "number": {
            "type": "string"
          },
          "company": {
            "$ref": "#/components/schemas/Ref"
          },
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "taxAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time"
          },
          "paidAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "paymentProvider": {
            "type": "string",
            "nullable": true
          },
          "paymentReference": {
            "type": "string",
            "nullable": true
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformInvoiceLineView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformInvoiceViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformInvoiceView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "PlatformInvoiceViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PlatformInvoiceView"
          }
        },
        "additionalProperties": false
      },
      "PlatformPlanRef": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PlatformStats": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "companies": {
            "type": "integer",
            "format": "int32"
          },
          "activeCompanies": {
            "type": "integer",
            "format": "int32"
          },
          "newCompanies": {
            "type": "integer",
            "format": "int32"
          },
          "trialing": {
            "type": "integer",
            "format": "int32"
          },
          "paying": {
            "type": "integer",
            "format": "int32"
          },
          "pastDue": {
            "type": "integer",
            "format": "int32"
          },
          "mrr": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MoneyAmount"
            }
          },
          "clicks": {
            "type": "integer",
            "format": "int64"
          },
          "conversions": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "PlatformStatsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PlatformStats"
          }
        },
        "additionalProperties": false
      },
      "PlatformSubscriptionView": {
        "type": "object",
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Ref"
          },
          "plan": {
            "$ref": "#/components/schemas/PlatformPlanRef"
          },
          "status": {
            "type": "string"
          },
          "billingCycle": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "currentPeriodStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentPeriodEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "trialEndsAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelAtPeriodEnd": {
            "type": "boolean"
          },
          "pastDueSince": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "scheduledPlan": {
            "$ref": "#/components/schemas/PlatformPlanRef"
          },
          "openAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PlatformSubscriptionViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformSubscriptionView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "PlatformSubscriptionViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PlatformSubscriptionView"
          }
        },
        "additionalProperties": false
      },
      "PlatformUsageView": {
        "type": "object",
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Ref"
          },
          "plan": {
            "$ref": "#/components/schemas/PlatformPlanRef"
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "usage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tracking.Application.Billing.UsageLine"
            }
          }
        },
        "additionalProperties": false
      },
      "PlatformUsageViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PlatformUsageView"
          }
        },
        "additionalProperties": false
      },
      "PostbackDeliveryView": {
        "type": "object",
        "properties": {
          "postbackPublicId": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "type": "string"
          },
          "httpStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "conversionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "triggeredAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PostbackDeliveryViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostbackDeliveryView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "PostbackInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "offerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "trigger": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostbackPatch": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "offerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "event": {
            "type": "string",
            "nullable": true
          },
          "trigger": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProvisionCompanyInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "ownerEmail": {
            "type": "string",
            "nullable": true
          },
          "ownerFirstName": {
            "type": "string",
            "nullable": true
          },
          "ownerLastName": {
            "type": "string",
            "nullable": true
          },
          "planSlug": {
            "type": "string",
            "nullable": true
          },
          "trialDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "interval": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Ref": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ReportRowPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "RevenuePeriodRow": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "format": "date"
          },
          "currency": {
            "type": "string"
          },
          "conversions": {
            "type": "integer",
            "format": "int64"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "profit": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "RevenuePeriodRowListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RevenuePeriodRow"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReversalInput": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReversalView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "conversionId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "reviewNote": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "reviewedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReversalViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReversalView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "ReversalViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ReversalView"
          }
        },
        "additionalProperties": false
      },
      "ReviewInput": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StatusChangeView": {
        "type": "object",
        "properties": {
          "updated": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "StatusChangeViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusChangeView"
          }
        },
        "additionalProperties": false
      },
      "SubIds": {
        "type": "object",
        "properties": {
          "sub1": {
            "type": "string",
            "nullable": true
          },
          "sub2": {
            "type": "string",
            "nullable": true
          },
          "sub3": {
            "type": "string",
            "nullable": true
          },
          "sub4": {
            "type": "string",
            "nullable": true
          },
          "sub5": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TargetingInput": {
        "type": "object",
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "devices": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "operatingSystems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Tracking.Application.Billing.PlanFeatureView": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "limit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Tracking.Application.Billing.PlanOverageView": {
        "type": "object",
        "properties": {
          "featureKey": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "unitSize": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Tracking.Application.Billing.PlanPriceView": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "amount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Tracking.Application.Billing.PlanView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "highlights": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tracking.Application.Billing.PlanPriceView"
            }
          },
          "isDefault": {
            "type": "boolean"
          },
          "highlighted": {
            "type": "boolean"
          },
          "trialDays": {
            "type": "integer",
            "format": "int32"
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tracking.Application.Billing.PlanFeatureView"
            }
          },
          "overages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tracking.Application.Billing.PlanOverageView"
            }
          },
          "audience": {
            "type": "string"
          },
          "isCustom": {
            "type": "boolean"
          },
          "ctaLabel": {
            "type": "string"
          },
          "ctaUrl": {
            "type": "string",
            "nullable": true
          },
          "footnote": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Tracking.Application.Billing.UsageLine": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "used": {
            "type": "integer",
            "format": "int64"
          },
          "limit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "monthly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Tracking.Application.Offers.CountryPayout": {
        "type": "object",
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allExcept": {
            "type": "boolean"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "eventsExcept": {
            "type": "boolean"
          },
          "payoutModel": {
            "type": "string"
          },
          "payout": {
            "type": "number",
            "format": "double"
          },
          "payoutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "TrackingLinkInput": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "integer",
            "format": "int32"
          },
          "affiliateId": {
            "type": "integer",
            "format": "int32"
          },
          "sub1": {
            "type": "string",
            "nullable": true
          },
          "sub2": {
            "type": "string",
            "nullable": true
          },
          "sub3": {
            "type": "string",
            "nullable": true
          },
          "sub4": {
            "type": "string",
            "nullable": true
          },
          "sub5": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrackingLinkView": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "offer": {
            "$ref": "#/components/schemas/Ref"
          },
          "affiliate": {
            "$ref": "#/components/schemas/Ref"
          },
          "subIds": {
            "$ref": "#/components/schemas/SubIds"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TrackingLinkViewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TrackingLinkView"
          }
        },
        "additionalProperties": false
      },
      "WebhookDeliveryView": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "lastStatusCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "deliveredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextAttemptAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookDeliveryViewPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDeliveryView"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/ApiPagination"
          }
        },
        "additionalProperties": false
      },
      "WebhookTestResult": {
        "type": "object",
        "properties": {
          "delivered": {
            "type": "boolean"
          },
          "statusCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "durationMs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "WebhookTestResultResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/WebhookTestResult"
          }
        },
        "additionalProperties": false
      },
      "WebhookView": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastSuccessAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastFailureAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookViewListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookView"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too."
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "servers": [
    {
      "url": "https://trakcrt.com",
      "description": "Production"
    }
  ]
}
