{
  "info": {
    "title": "SaaSify API",
    "version": "2026-12",
    "description": "The SaaSify API lets ISVs and integrators manage marketplace subscriptions, metering, entitlements, private offers, co-sell, leads and funding across the AWS, Microsoft and Google Cloud marketplaces.\n\n## Base URLs\n- **Production:** `https://api.saasify.ai`\n- **Demo (sandbox):** `https://api-demo.saasify.ai` — this is the only server configured below, so the **Try it** console targets demo. Point your production integration at the production base URL.\n\n## Authentication\nCall `POST /api/token` with the OAuth2 resource-owner **password** grant (`grant_type=password`, `username`, `password`) to receive an opaque bearer token. There are no client ids/secrets, API keys or scopes — permissions come from the authenticating user's role, so integrate under a dedicated least-privilege service user. Send the token on every other request as `Authorization: Bearer <token>`. Tokens last 1440 minutes; refresh with `grant_type=refresh_token`. If the user belongs to more than one tenant, send the optional `TenantCode` header; otherwise the tenant comes from the token.\n\n## Response envelope\nEvery endpoint (except `POST /api/token`) returns HTTP 200 with a standard envelope: `{ \"OperationType\", \"Status\", \"RequestCorrelationID\", \"ErrorDetail\", \"Data\", \"StatusCode\", \"ErrorMessage\" }`. Envelope fields are PascalCase; enums serialize as strings. The business payload is in `Data`, which is sometimes a JSON string that must be parsed again.\n\n## Errors\nMany business errors are returned as **HTTP 200 with `Status: \"ERROR\"`** and a message in `ErrorMessage`/`ErrorDetail` — always check `Status`, not just the HTTP code. Transport-level failures use HTTP 400 (bad input), 401 (unauthenticated), 403 (missing permission / not a tenant user), 404 and 500. Do not depend on `ErrorDetail` as a stable field.\n\n## Pagination\nPagination is per-operation and inconsistent. List endpoints take some mix of `PageNumber`/`PageNo`, `PageSize`, `StartIndex` (1-based), `SearchText`, `SortColumn` and `SortOrder`, in the query or a POST body. Where a paged result is returned it looks like `PagedDataResult`: `{ PageSize, CurrentPageNo, Data[], TotalDataCount }`. There are no cursors or `Link` headers.\n\n## Versioning & limits\nThere is no platform-wide API version; some routes carry ad-hoc segments (`/v2/`, `/v3/`, `/v1/`). There are no published rate limits today — treat usage as fair-use; a `429` may be introduced later. There is no idempotency key."
  },
  "tags": [
    {
      "name": "Authentication",
      "description": "Get a bearer token and read the current user."
    },
    {
      "name": "Subscriptions",
      "description": "List, inspect and manage marketplace subscriptions."
    },
    {
      "name": "Metering & usage",
      "description": "Post and read metered usage for usage-based plans."
    },
    {
      "name": "Entitlements & licenses",
      "description": "Grant seats/entitlements and validate licenses at runtime."
    },
    {
      "name": "Customers",
      "description": "Manage customers and their cloud-provider accounts."
    },
    {
      "name": "Offers & plans",
      "description": "Read offers and plans configured in the tenant."
    },
    {
      "name": "Private offers",
      "description": "Create and manage private offers (including CPPO) across clouds."
    },
    {
      "name": "Co-sell",
      "description": "Manage co-sell opportunities and reference data (v3)."
    },
    {
      "name": "Leads",
      "description": "Work with marketplace and co-sell leads."
    },
    {
      "name": "Funding",
      "description": "Partner funding (MDF / co-op) requests and programs."
    },
    {
      "name": "Agent offers",
      "description": "Offer-request workflow for AI agents and partners."
    }
  ],
  "paths": {
    "/api/lead": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "List leads",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "stage": "Qualified",
                        "leadId": "lead_001",
                        "status": "Active",
                        "referenceId": "REF-001",
                        "cloudProvider": "AWS"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "PageNumber",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "1-based page number."
          },
          {
            "in": "query",
            "name": "PageSize",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "Number of records per page."
          },
          {
            "in": "query",
            "name": "SearchText",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Free-text filter."
          },
          {
            "in": "query",
            "name": "SortColumn",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Column to sort by."
          },
          {
            "in": "query",
            "name": "SortOrder",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "`asc` or `desc`."
          }
        ],
        "description": "Returns the co-sell / marketplace leads for the tenant.",
        "operationId": "Leads_List"
      },
      "patch": {
        "tags": [
          "Leads"
        ],
        "summary": "Update a lead",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stage": "Qualified",
                    "leadId": "lead_001",
                    "status": "Active",
                    "referenceId": "REF-001",
                    "cloudProvider": "AWS"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Updates fields on a lead.",
        "operationId": "Leads_Update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "leadId": "lead_001",
                "status": "Active"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/user": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "summary": "Get the current user profile",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "roles": [
                      "Integration"
                    ],
                    "userName": "integration@acme.com",
                    "tenantCode": "ACME",
                    "isTenantUser": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the profile of the user that owns the bearer token, including their tenant and role context. Use it to confirm which tenant and identity a token resolves to.",
        "operationId": "Authentication_GetProfile"
      }
    },
    "/api/leads": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "List lead transactions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "leadId": "lead_001",
                        "source": "Marketplace",
                        "company": "Acme Corp"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "PageNumber",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "1-based page number."
          },
          {
            "in": "query",
            "name": "PageSize",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "Number of records per page."
          },
          {
            "in": "query",
            "name": "SearchText",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Free-text filter."
          },
          {
            "in": "query",
            "name": "SortColumn",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Column to sort by."
          },
          {
            "in": "query",
            "name": "SortOrder",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "`asc` or `desc`."
          }
        ],
        "description": "Returns the marketplace lead transactions (the raw lead feed) for the tenant.",
        "operationId": "Leads_ListTransactions"
      }
    },
    "/api/token": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Get an access token (password or refresh_token grant)",
        "security": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                },
                "example": {
                  "userName": "integration@acme.com",
                  "expires_in": 86399,
                  "onBehalfOf": "",
                  "token_type": "bearer",
                  "access_token": "m5Jb3q...opaque-katana-token",
                  "isTenantUser": "true",
                  "refresh_token": "N2Q0...opaque"
                }
              }
            },
            "description": "A bearer token. This endpoint returns the raw OAuth token object, not the standard envelope."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "error_description": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "invalid_grant",
                  "error_description": "The user name or password is incorrect."
                }
              }
            },
            "description": "Invalid grant. Standard OAuth error body."
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "TenantCode",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Optional tenant code. Sets the default tenant context for the issued token."
          }
        ],
        "description": "Exchanges SaaSify user credentials for an opaque bearer token using the OAuth2 resource-owner **password** grant, or refreshes an existing token with the **refresh_token** grant. The body is `application/x-www-form-urlencoded`. There is no client id/secret. Send the optional `TenantCode` header to select a tenant when the user belongs to more than one. The returned token is valid for 1440 minutes and is sent on every other call as `Authorization: Bearer <token>`. Do not send the `X-SaaSify-Client` header from server-to-server integrations (it switches the token into browser cookies).",
        "operationId": "Authentication_GetToken",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "grant_type"
                ],
                "properties": {
                  "password": {
                    "type": "string",
                    "description": "SaaSify user password (password grant)."
                  },
                  "username": {
                    "type": "string",
                    "description": "SaaSify user email (password grant)."
                  },
                  "grant_type": {
                    "enum": [
                      "password",
                      "refresh_token"
                    ],
                    "type": "string",
                    "description": "Grant type."
                  },
                  "onBehalfOf": {
                    "type": "string",
                    "description": "Optional impersonation claim (username to act on behalf of)."
                  },
                  "refresh_token": {
                    "type": "string",
                    "description": "A previously issued refresh token (refresh_token grant)."
                  }
                }
              },
              "examples": {
                "refresh": {
                  "value": {
                    "grant_type": "refresh_token",
                    "refresh_token": "N2Q0...opaque"
                  },
                  "summary": "Refresh token grant"
                },
                "password": {
                  "value": {
                    "password": "••••••••",
                    "username": "integration@acme.com",
                    "grant_type": "password"
                  },
                  "summary": "Password grant"
                }
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offers": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "List offers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "offerID": "OFFER-001",
                      "offerName": "My SaaS Offer",
                      "description": "SaaS product offer"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the offers configured in the tenant.",
        "operationId": "Offers_List"
      }
    },
    "/api/customers": {
      "get": {
        "tags": [
          "Customers"
        ],
        "summary": "Search customers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "name": "Acme Corp",
                      "email": "contact@acme.com",
                      "phone": "+1234567890",
                      "customerId": "CUST-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Optional name to filter customers by."
          }
        ],
        "description": "Returns customers matching an optional name filter.",
        "operationId": "Customers_Search"
      },
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Create or update a customer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "name": "Acme Corp",
                    "email": "contact@acme.com",
                    "phone": "+1234567890",
                    "customerId": "CUST-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates a new customer, or updates an existing one when an id is supplied.",
        "operationId": "Customers_Save",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "name": "Acme Corp",
                "email": "contact@acme.com",
                "phone": "+1234567890"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/list": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "List deals / private offers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "status": "Active",
                        "dealName": "New Deal",
                        "offerURL": "https://aws.amazon.com/marketplace/offer",
                        "offerName": "My AWS Private Offer",
                        "customerName": "Acme Corp",
                        "cloudProvider": "AWS",
                        "dealReferenceID": "DEAL-001"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns a paged list of deals (private-offer workspaces) for the tenant.",
        "operationId": "PrivateOffers_ListDeals",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "status": "Active",
                "pageSize": 20,
                "pageNumber": 1
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/lead/batch": {
      "post": {
        "tags": [
          "Leads"
        ],
        "summary": "Update a batch of leads",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "updated": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Updates many leads in one call.",
        "operationId": "Leads_BatchUpdate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "leads": [
                  {
                    "stage": "Qualified",
                    "leadId": "lead_001"
                  }
                ]
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/lead/stage": {
      "patch": {
        "tags": [
          "Leads"
        ],
        "summary": "Update a lead's stage",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stage": "Qualified",
                    "leadId": "lead_001",
                    "status": "Active",
                    "referenceId": "REF-001",
                    "cloudProvider": "AWS"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Moves a lead to a different pipeline stage.",
        "operationId": "Leads_UpdateStage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "stage": "Qualified",
                "leadId": "lead_001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/entitlement": {
      "get": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "List user entitlements",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "status": "Active",
                      "userId": "USER-001",
                      "resourceId": "res_001",
                      "permissionLevel": "Read"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the seat/user entitlements for the tenant.",
        "operationId": "Entitlements_List"
      }
    },
    "/api/deals/cancel": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Cancel a private offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "cancelled": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Cancels a private offer.",
        "operationId": "PrivateOffers_Cancel",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/status": {
      "get": {
        "tags": [
          "Private offers"
        ],
        "summary": "Get a deal's job status",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Completed",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "dealReferenceID",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Deal to check."
          }
        ],
        "description": "Returns the asynchronous job status for an in-progress deal operation.",
        "operationId": "PrivateOffers_GetJobStatus"
      }
    },
    "/api/leads/export": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "Export lead transactions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "fileUrl": "https://api-demo.saasify.ai/exports/leads-2026-02.csv"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Exports the marketplace lead transactions as a downloadable file.",
        "operationId": "Leads_Export"
      }
    },
    "/api/offers/search": {
      "post": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "Search offers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "offerID": "OFFER-001",
                        "offerName": "My SaaS Offer",
                        "description": "SaaS product offer"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns a paged, filtered list of offers.",
        "operationId": "Offers_Search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "pageSize": 20,
                "pageNumber": 1,
                "searchText": ""
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/withdraw": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Withdraw a private offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "withdrawn": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Withdraws a private offer that has been extended to a customer.",
        "operationId": "PrivateOffers_Withdraw",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/plan/plansList": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "List plans for an offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "price": 99,
                      "planID": "PLAN-001",
                      "offerID": "OFFER-001",
                      "planName": "Scale",
                      "planProviderID": "PP-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "offerID",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Offer to list plans for."
          }
        ],
        "description": "Returns the plans that belong to an offer.",
        "operationId": "Plans_ListByOffer"
      }
    },
    "/api/customeraccounts": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "List customer accounts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "customerId": "CUST-001",
                        "accountName": "Main Account"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns a paged list of customer accounts, optionally filtered by customer.",
        "operationId": "Customers_ListAccounts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "pageSize": 20,
                "customerId": "CUST-001",
                "pageNumber": 1
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/entitlement/save": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Grant or update a user entitlement",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "userId": "USER-001",
                    "resourceId": "res_001",
                    "permissionLevel": "Read"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates or updates an entitlement that grants a user access to a resource at a permission level.",
        "operationId": "Entitlements_Save",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "userId": "USER-001",
                "resourceId": "res_001",
                "permissionLevel": "Read"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/batchusage/joblog": {
      "get": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "List bulk usage jobs",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "failed": 0,
                      "status": "Completed",
                      "jobLogID": "JOB-001",
                      "processed": 1
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the log of bulk usage-meter jobs.",
        "operationId": "Metering_BatchJobLog"
      }
    },
    "/api/aws/postmeterusage": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Post AWS metered usage",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Posts a metered-usage event to an AWS Marketplace subscription.",
        "operationId": "Metering_PostUsageAws",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "quantity": 5,
                "dimension": "users",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/entitlement/revoke": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Revoke a user entitlement",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "revoked": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Revokes a previously granted user entitlement.",
        "operationId": "Entitlements_Revoke",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "userId": "USER-001",
                "resourceId": "res_001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/gcp/getentitlement": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Get a Google Cloud entitlement",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "entitlementId": "ent_001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns a single Google Cloud Marketplace entitlement.",
        "operationId": "Entitlements_GetGcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "entitlementId": "ent_001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/lead/{referenceId}": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "Get a lead",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stage": "Qualified",
                    "leadId": "lead_001",
                    "status": "Active",
                    "referenceId": "REF-001",
                    "cloudProvider": "AWS"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "referenceId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Resource reference identifier."
          }
        ],
        "description": "Returns a single lead by its reference id.",
        "operationId": "Leads_Get"
      }
    },
    "/api/subscriptions/list": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "List subscriptions (query body)",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "planId": "PLAN-001",
                        "status": "Active",
                        "quantity": 10,
                        "customerId": "CUST-001",
                        "cloudProvider": "AWS",
                        "subscriptionId": "SUB-001"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns a paged list of subscriptions for the tenant. Pass paging and filter fields in the body. Totals are returned inside `Data` (`TotalDataCount`).",
        "operationId": "Subscriptions_List",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "status": "Active",
                "pageSize": 20,
                "sortOrder": "desc",
                "pageNumber": 1,
                "searchText": "",
                "sortColumn": ""
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cosell/v3/providers": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "List co-sell providers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    "AWS",
                    "AMP",
                    "GCP"
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the cloud providers that support co-sell.",
        "operationId": "CoSell_GetProviders"
      }
    },
    "/api/deals/createcppo/aws": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Create an AWS CPPO (channel) private offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Processing",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AWS",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates a Channel Partner Private Offer (CPPO) in AWS Marketplace from the deal.",
        "operationId": "PrivateOffers_CreateCppoAws",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001",
                "resellerAccountId": "acc_123"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offer/private/search": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Search private offers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "status": "Active",
                        "dealName": "New Deal",
                        "offerURL": "https://aws.amazon.com/marketplace/offer",
                        "offerName": "My AWS Private Offer",
                        "customerName": "Acme Corp",
                        "cloudProvider": "AWS",
                        "dealReferenceID": "DEAL-001"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns a paged, filtered list of private offers.",
        "operationId": "PrivateOffers_Search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "pageSize": 20,
                "pageNumber": 1,
                "cloudProvider": "AWS"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/batchusage/bulkupload": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Bulk-upload usage meters",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Queued",
                    "jobLogID": "JOB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Starts a bulk usage-meter upload job. Returns a job log id you can poll.",
        "operationId": "Metering_BatchBulkUpload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "usageRecords": [
                  {
                    "quantity": 5,
                    "dimension": "users"
                  }
                ],
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/gcp/lookupentitlement": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Look up a Google Cloud entitlement",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "EntitlementActivationRequested",
                    "entitlementId": "ent_001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Looks up a Google Cloud Marketplace entitlement by id, before activation.",
        "operationId": "Entitlements_LookupGcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "entitlementId": "ent_001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/customers/{customerId}": {
      "delete": {
        "tags": [
          "Customers"
        ],
        "summary": "Delete a customer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "deleted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "customerId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Customer identifier."
          }
        ],
        "description": "Deletes a customer by id.",
        "operationId": "Customers_Delete"
      }
    },
    "/api/gcp/getallentitlements": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "List Google Cloud entitlements",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "status": "Active",
                      "entitlementId": "ent_001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns all Google Cloud Marketplace entitlements for a seller account.",
        "operationId": "Entitlements_GetAllGcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "sellerCode": "SELLER001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/activate": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Activate a subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-001",
                    "status": "Active",
                    "quantity": 10,
                    "customerId": "CUST-001",
                    "cloudProvider": "AWS",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Activates a pending subscription so the customer can start using the product.",
        "operationId": "Subscriptions_Activate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/getPlans": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "List plans available for a subscription's offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "price": 99,
                      "planID": "PLAN-001",
                      "offerID": "OFFER-001",
                      "planName": "Scale",
                      "planProviderID": "PP-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "offerId",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Offer to list plans for."
          }
        ],
        "description": "Returns the plans a subscription can change to, for the offer it belongs to.",
        "operationId": "Subscriptions_GetPlansByOffer"
      }
    },
    "/api/offers/enabledproviders": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "List enabled marketplace providers for offers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    "AWS",
                    "AMP",
                    "GCP"
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the cloud marketplaces (providers) enabled for offers in this tenant.",
        "operationId": "Offers_GetEnabledProviders"
      }
    },
    "/api/subscriptions/postUsage": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Post a usage event",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Posts a single metered-usage event for a subscription, with the subscription id in the body.",
        "operationId": "Metering_PostUsage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "quantity": 5,
                "dimension": "dim1",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cosell/v3/selleraccounts": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "List co-sell seller accounts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "sellerCode": "SELLER001",
                      "cloudProvider": "AMP"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the seller accounts available for co-sell.",
        "operationId": "CoSell_ListSellerAccounts"
      }
    },
    "/api/plan/meterslist/{planID}": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "List a plan's meters",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "unit": "GB",
                      "meterName": "storage"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "planID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Plan identifier."
          }
        ],
        "description": "Returns the metered dimensions configured for a plan.",
        "operationId": "Plans_GetMeters"
      }
    },
    "/api/subscriptions/changeplan": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Change a subscription's plan",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-002",
                    "status": "Active",
                    "quantity": 10,
                    "customerId": "CUST-001",
                    "cloudProvider": "AWS",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Moves a subscription to a different plan. The change is propagated to the marketplace.",
        "operationId": "Subscriptions_ChangePlan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "newPlanId": "PLAN-002",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/deactivate": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Deactivate a subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-001",
                    "status": "Suspended",
                    "quantity": 10,
                    "customerId": "CUST-001",
                    "cloudProvider": "AWS",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Deactivates (suspends) an active subscription.",
        "operationId": "Subscriptions_Deactivate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/agentoffer/GetProductTypes": {
      "get": {
        "tags": [
          "Agent offers"
        ],
        "summary": "List offer-request product types",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    "SaaS",
                    "Container",
                    "VM"
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the product types available for agent offer requests.",
        "operationId": "AgentOffers_GetProductTypes"
      }
    },
    "/api/deals/aws/extendexpiration": {
      "patch": {
        "tags": [
          "Private offers"
        ],
        "summary": "Extend an AWS private offer's expiration",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "dealReferenceID": "DEAL-001",
                    "newExpirationDate": "2026-12-31"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Extends the expiration date of an AWS Marketplace private offer.",
        "operationId": "PrivateOffers_ExtendAwsExpiration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001",
                "newExpirationDate": "2026-12-31"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/sendprivateofferlink": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Send a private-offer link to the buyer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "sent": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Emails the private-offer acceptance link to the buyer.",
        "operationId": "PrivateOffers_SendLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "email": "buyer@example.com",
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/metersbyplan": {
      "get": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "List meters for a plan",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "unit": "seat",
                      "dimension": "users"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "planId",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Plan to list meters for."
          }
        ],
        "description": "Returns the metered dimensions configured for a plan.",
        "operationId": "Metering_GetMetersByPlan"
      }
    },
    "/api/gcp/subscriptions/postUsage": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Post Google Cloud metered usage",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Posts a metered-usage event to a Google Cloud subscription.",
        "operationId": "Metering_PostUsageGcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "quantity": 5,
                "dimension": "dim1",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offers/parameters/{offerID}": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "List an offer's input parameters",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "dataType": "string",
                      "paramName": "param1"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "offerID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Offer identifier."
          }
        ],
        "description": "Returns the configured input parameters for an offer.",
        "operationId": "Offers_GetParameters"
      }
    },
    "/api/deals/createprivateoffer/amp": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Create a Microsoft private offer from a deal",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Processing",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AMP",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Publishes the deal as a Microsoft Marketplace private offer.",
        "operationId": "PrivateOffers_CreateAmp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/createprivateoffer/aws": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Create an AWS private offer from a deal",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Processing",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AWS",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Publishes the deal as an AWS Marketplace private offer.",
        "operationId": "PrivateOffers_CreateAws",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/createprivateoffer/gcp": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Create a Google Cloud private offer from a deal",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Processing",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "GCP",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Publishes the deal as a Google Cloud Marketplace private offer.",
        "operationId": "PrivateOffers_CreateGcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/changequantity": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Change seat quantity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-001",
                    "status": "Active",
                    "quantity": 20,
                    "customerId": "CUST-001",
                    "cloudProvider": "AWS",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "subscriptionId",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Subscription to change."
          },
          {
            "in": "query",
            "name": "quantity",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "New seat quantity."
          }
        ],
        "description": "Changes the seat/quantity of a subscription. Note: this operation is implemented as a GET that mutates state; pass `subscriptionId` and the new `quantity` as query parameters.",
        "operationId": "Subscriptions_ChangeQuantity"
      }
    },
    "/api/subscriptions/linktocustomer": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Link a subscription to a customer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "customerId": "CUST-001",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Associates an existing subscription with a customer record.",
        "operationId": "Subscriptions_LinkToCustomer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "customerId": "CUST-001",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/agentoffer/updateofferRequest": {
      "post": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Update an offer request",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Pending",
                    "comment": "Submitted for review",
                    "productType": "SaaS",
                    "offerRequestId": "OR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Updates the fields of an agent offer request.",
        "operationId": "AgentOffers_Update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "productType": "SaaS",
                "offerRequestId": "OR-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/plan/plandetailsbyid/{planId}": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "Get plan details by id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "price": 99,
                    "planID": "PLAN-001",
                    "offerID": "OFFER-001",
                    "planName": "Scale",
                    "planProviderID": "PP-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "planId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Plan identifier."
          }
        ],
        "description": "Returns the full detail of a plan, including its access permissions.",
        "operationId": "Plans_GetById"
      }
    },
    "/api/agentoffer/getOfferRequestList": {
      "get": {
        "tags": [
          "Agent offers"
        ],
        "summary": "List agent offer requests",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "status": "Pending",
                      "comment": "Submitted for review",
                      "productType": "SaaS",
                      "offerRequestId": "OR-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the offer requests submitted through the agent/partner offer-request workflow.",
        "operationId": "AgentOffers_List"
      }
    },
    "/api/subscriptions/additionaldetail": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Save a custom subscription detail",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "key": "PONumber",
                    "value": "PO-99812"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates or updates a custom key/value detail record on a subscription.",
        "operationId": "Subscriptions_SaveAdditionalDetail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "key": "PONumber",
                "value": "PO-99812",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/importbatchusage": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Import a batch of usage records",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": 1,
                    "rejected": 0
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Imports many usage records for a subscription in one call.",
        "operationId": "Metering_ImportBatchUsage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "usageRecords": [
                  {
                    "quantity": 5,
                    "dimension": "users"
                  }
                ],
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/license/validate": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Validate a license at runtime",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "valid": true,
                    "status": "Active",
                    "subscriptionId": "SUB-001",
                    "entitledQuantity": 10
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Validates a subscription license so an ISV application can check, at runtime, whether a customer is entitled. Returns the license status and entitled quantity.",
        "operationId": "Licenses_Validate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "licenseKey": "LIC-ABC-123",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/{subscriptionId}": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get a subscription by id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-001",
                    "status": "Active",
                    "quantity": 10,
                    "customerId": "CUST-001",
                    "cloudProvider": "AWS",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Returns the full detail of a single subscription.",
        "operationId": "Subscriptions_Get"
      }
    },
    "/api/deals/{dealreferenceID}/details": {
      "get": {
        "tags": [
          "Private offers"
        ],
        "summary": "Get a deal's details",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AWS",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "dealreferenceID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Private-offer / deal reference identifier."
          }
        ],
        "description": "Returns the full detail of a deal / private offer.",
        "operationId": "PrivateOffers_GetDeal"
      }
    },
    "/api/aws/entitlement/{getentitlement}": {
      "get": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Look up AWS marketplace entitlements",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "value": 10,
                      "dimension": "users",
                      "customerId": "aws-cust-1"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "getentitlement",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "AWS entitlement lookup key (customer identifier or agreement id)."
          }
        ],
        "description": "Returns AWS Marketplace entitlements for the given lookup key.",
        "operationId": "Entitlements_GetAws"
      }
    },
    "/api/subscriptions/subscriptionstatus": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "List subscription statuses",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    "Active",
                    "Suspended",
                    "Unsubscribed",
                    "PendingActivation"
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the set of subscription status values available for filtering.",
        "operationId": "Subscriptions_GetStatusList"
      }
    },
    "/api/offer/private/saveampprivateoffer": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Save a Microsoft private offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AMP",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates or updates a Microsoft Marketplace private offer.",
        "operationId": "PrivateOffers_SaveAmp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "offerName": "My Private Offer",
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offer/private/saveawsprivateoffer": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Save an AWS private offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AWS",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates or updates an AWS Marketplace private offer.",
        "operationId": "PrivateOffers_SaveAws",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "offerName": "My AWS Private Offer",
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offers/offerdetailsbyid/{offerId}": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "Get offer details by id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "offerID": "OFFER-001",
                    "offerName": "My SaaS Offer",
                    "description": "SaaS product offer"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "offerId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Offer identifier."
          }
        ],
        "description": "Returns the full detail of an offer, including its access permissions.",
        "operationId": "Offers_GetById"
      }
    },
    "/api/batchusage/{jobLogID}/usagehistory": {
      "get": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Get usage history for a bulk job",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "quantity": 5,
                      "dimension": "users",
                      "subscriptionId": "SUB-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "jobLogID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Bulk-job log identifier returned when the job was submitted."
          }
        ],
        "description": "Returns the per-record usage history for a bulk usage job.",
        "operationId": "Metering_BatchUsageHistory"
      }
    },
    "/api/agentoffer/updateofferRequestStatus": {
      "post": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Update an offer request's status",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Approved",
                    "comment": "Submitted for review",
                    "productType": "SaaS",
                    "offerRequestId": "OR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Moves an agent offer request to a new status (for example Approved or Rejected).",
        "operationId": "AgentOffers_UpdateStatus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "status": "Approved",
                "offerRequestId": "OR-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/customeraccounts/saveproductaccount": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Save a product account",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "productId": "prod_001",
                    "customerId": "CUST-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Links a product to a customer account.",
        "operationId": "Customers_SaveProductAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "productId": "prod_001",
                "customerId": "CUST-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/{dealreferenceID}/activitylog": {
      "get": {
        "tags": [
          "Private offers"
        ],
        "summary": "Get a deal's activity log",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "event": "PrivateOfferAcceptedByTheCustomer",
                      "timestamp": "2026-02-10T12:00:00Z"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "dealreferenceID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Private-offer / deal reference identifier."
          }
        ],
        "description": "Returns the activity log for a deal / private offer.",
        "operationId": "PrivateOffers_GetDealActivityLog"
      }
    },
    "/api/offer/private/cancelawsprivateoffer": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Cancel an AWS private offer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "cancelled": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Cancels an AWS Marketplace private offer.",
        "operationId": "PrivateOffers_CancelAws",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "privateOfferId": "po_123"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/additionaldetail/list": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "List custom subscription details",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "key": "PONumber",
                      "value": "PO-99812"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Returns the custom key/value detail records attached to a subscription.",
        "operationId": "Subscriptions_ListAdditionalDetails",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/v2/subscriptions/{origin}/usagepost": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Post usage from a source system (v2)",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "origin",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Source system / cloud origin for the usage post (for example `aws`, `amp`, `gcp`, or a CRM name such as `salesforce`)."
          }
        ],
        "description": "Posts metered usage where the `{origin}` names the source system (for example `salesforce`, `hubspot`, `aws`, `amp`, `gcp`). Built for posting usage from CRM and ISV systems.",
        "operationId": "Metering_UsagePostV2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "quantity": 5,
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/agentoffer/InsertofferRequestComment": {
      "post": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Add a comment to an offer request",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "comment": "Approved",
                    "offerRequestId": "OR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Adds a comment to the agent offer-request thread.",
        "operationId": "AgentOffers_InsertComment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "comment": "Approved",
                "offerRequestId": "OR-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/aws/getsubscription/{SubscriptionId}": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get an AWS subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-001",
                    "status": "Active",
                    "quantity": 10,
                    "customerId": "CUST-001",
                    "cloudProvider": "AWS",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "SubscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SubscriptionId path parameter."
          }
        ],
        "description": "Returns the AWS-marketplace view of a subscription, including agreement and dimension detail.",
        "operationId": "Subscriptions_GetAws"
      }
    },
    "/api/customeraccounts/savecustomeraccount": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Save a customer account",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "customerId": "CUST-001",
                    "accountName": "Main Account"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates or updates a customer account.",
        "operationId": "Customers_SaveAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "customerId": "CUST-001",
                "accountName": "Main Account"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/gcp/getsubscription/{SubscriptionId}": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get a Google Cloud subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "planId": "PLAN-001",
                    "status": "Active",
                    "quantity": 10,
                    "customerId": "CUST-001",
                    "cloudProvider": "GCP",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "SubscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SubscriptionId path parameter."
          }
        ],
        "description": "Returns the Google Cloud marketplace view of a subscription.",
        "operationId": "Subscriptions_GetGcp"
      }
    },
    "/api/subscriptions/{subscriptionID}/usage": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Post a usage event (v1)",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": true,
                    "quantity": 5,
                    "dimension": "users"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Posts a single metered-usage event for a subscription (v1 shape, subscription id in the path). Use this to report consumption for usage-based (metered) dimensions.",
        "operationId": "Metering_PostUsageV1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "quantity": 5,
                "dimension": "users"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offer/private/create/from-opportunity": {
      "post": {
        "tags": [
          "Private offers"
        ],
        "summary": "Create a private offer from an opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AWS",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates a private offer from a CRM opportunity / deal.",
        "operationId": "PrivateOffers_CreateFromOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealReferenceID": "DEAL-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/offers/offersbyproviders/{providerId}": {
      "get": {
        "tags": [
          "Offers & plans"
        ],
        "summary": "List offers by provider",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "offerID": "OFFER-001",
                      "offerName": "My SaaS Offer",
                      "description": "SaaS product offer"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "providerId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Cloud provider identifier."
          }
        ],
        "description": "Returns the offers for a given cloud provider.",
        "operationId": "Offers_ListByProvider"
      }
    },
    "/api/subscriptions/{subscriptionID}/meters": {
      "get": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "List meters for a subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "unit": "seat",
                      "dimension": "users"
                    },
                    {
                      "unit": "GB",
                      "dimension": "storage"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Returns the metered dimensions configured for a subscription.",
        "operationId": "Metering_GetMetersBySubscription"
      }
    },
    "/api/agentoffer/saveofferrequestentitlement": {
      "post": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Save an offer request's entitlement",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "quantity": 10,
                    "offerRequestId": "OR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Saves the entitlement associated with an agent offer request.",
        "operationId": "AgentOffers_SaveEntitlement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "quantity": 10,
                "offerRequestId": "OR-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/savesubscriptionlicenses": {
      "post": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Save subscription licenses",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "saved": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "description": "Creates or updates the license records (assignments) for a subscription.",
        "operationId": "Licenses_Save",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "licenses": [
                  {
                    "assignedTo": "user@acme.com",
                    "licenseKey": "LIC-ABC-123"
                  }
                ],
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/v2/subscriptions/{origin}/chargebatchusage": {
      "post": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Charge a batch of usage (v2)",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "accepted": 1,
                    "jobLogID": "JOB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "origin",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Source system / cloud origin for the usage post (for example `aws`, `amp`, `gcp`, or a CRM name such as `salesforce`)."
          }
        ],
        "description": "Submits a batch of usage records for charging through the v2 pipeline.",
        "operationId": "Metering_ChargeBatchUsageV2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "usageRecords": [
                  {
                    "quantity": 5,
                    "dimension": "users"
                  }
                ],
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/lead/providers/{cloudProvider}/referencedata": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "Get lead reference data",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stages": [
                      "New",
                      "Qualified"
                    ],
                    "sources": [
                      "Marketplace"
                    ]
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "cloudProvider",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Cloud marketplace: `AWS`, `AMP` (Microsoft), or `GCP`."
          }
        ],
        "description": "Returns reference data (stages, sources) for a cloud provider's leads.",
        "operationId": "Leads_GetReferenceData"
      }
    },
    "/api/agentoffer/GetCommentHistory/{offerRequestId}": {
      "get": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Get an offer request's comment history",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "author": "reviewer@acme.com",
                      "comment": "Approved",
                      "timestamp": "2026-02-01T10:00:00Z"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "offerRequestId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Agent offer-request identifier."
          }
        ],
        "description": "Returns the comment history for an agent offer request.",
        "operationId": "AgentOffers_GetCommentHistory"
      }
    },
    "/api/agentoffer/getActivityLogList/{offerRequestId}": {
      "get": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Get an offer request's activity log",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "event": "StatusChanged",
                      "timestamp": "2026-02-01T10:00:00Z"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "offerRequestId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Agent offer-request identifier."
          }
        ],
        "description": "Returns the activity log for an agent offer request.",
        "operationId": "AgentOffers_GetActivityLog"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/solutions": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "List co-sell solutions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "name": "Acme Platform",
                      "solutionId": "sol_001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          }
        ],
        "description": "Returns the solutions registered for a seller account.",
        "operationId": "CoSell_ListSolutions"
      }
    },
    "/api/customeraccounts/CustomerprovideraccountID/{ID}": {
      "delete": {
        "tags": [
          "Customers"
        ],
        "summary": "Delete a provider account",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "deleted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "ID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Resource identifier."
          }
        ],
        "description": "Deletes a customer provider-account link by id.",
        "operationId": "Customers_DeleteProviderAccount"
      }
    },
    "/api/cosell/v3/providers/{cloudProvider}/referencedata": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Get co-sell reference data",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stages": [
                      "Prospect",
                      "Qualified"
                    ],
                    "industries": [
                      "Software"
                    ]
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "cloudProvider",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Cloud marketplace: `AWS`, `AMP` (Microsoft), or `GCP`."
          }
        ],
        "description": "Returns reference data (industries, stages, etc.) for a cloud provider's co-sell.",
        "operationId": "CoSell_GetReferenceData"
      }
    },
    "/api/cosell/v3/providers/{cloudProvider}/referraltypes": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "List co-sell referral types",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    "CoSell",
                    "ForVisibilityOnly"
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "cloudProvider",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Cloud marketplace: `AWS`, `AMP` (Microsoft), or `GCP`."
          }
        ],
        "description": "Returns the referral types supported by a cloud provider.",
        "operationId": "CoSell_GetReferralTypes"
      }
    },
    "/api/v2/subscriptions/{origin}/updateprovisoningstatus": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Report provisioning status (v2)",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "subscriptionId": "SUB-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "origin",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Source system / cloud origin for the usage post (for example `aws`, `amp`, `gcp`, or a CRM name such as `salesforce`)."
          }
        ],
        "description": "Lets an ISV or CRM system report that provisioning for a subscription has finished (or failed). The `{origin}` segment names the source system. Note the historical spelling `updateprovisoningstatus` in the route.",
        "operationId": "Subscriptions_UpdateProvisioningStatus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "status": "Active",
                "subscriptionId": "SUB-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/agentoffer/getOfferRequestDetails/{offerRequestId}": {
      "get": {
        "tags": [
          "Agent offers"
        ],
        "summary": "Get an agent offer request",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Pending",
                    "comment": "Submitted for review",
                    "productType": "SaaS",
                    "offerRequestId": "OR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "offerRequestId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Agent offer-request identifier."
          }
        ],
        "description": "Returns the detail of a single agent offer request.",
        "operationId": "AgentOffers_Get"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "List co-sell opportunities",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "crmID": "opp_001",
                        "dealSize": 50000,
                        "cloudProvider": "AMP",
                        "opportunityName": "New CoSell",
                        "saasifyRecordId": "SR-001",
                        "partnerAcceptanceStatus": "Pending"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "query",
            "name": "PageNumber",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "1-based page number."
          },
          {
            "in": "query",
            "name": "PageSize",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "Number of records per page."
          },
          {
            "in": "query",
            "name": "SearchText",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Free-text filter."
          },
          {
            "in": "query",
            "name": "SortColumn",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Column to sort by."
          },
          {
            "in": "query",
            "name": "SortOrder",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "`asc` or `desc`."
          }
        ],
        "description": "Returns the co-sell opportunities for a seller account.",
        "operationId": "CoSell_ListOpportunities"
      },
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Create a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 50000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Pending"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          }
        ],
        "description": "Creates a new co-sell opportunity in a seller account and syncs it to the cloud provider.",
        "operationId": "CoSell_CreateOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "dealSize": 75000,
                "cloudProvider": "AMP",
                "opportunityName": "New CoSell"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/v2/subscriptions/{origin}/usagepost/{subscriptionId}": {
      "get": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Get posted usage for a subscription (v2)",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "quantity": 5,
                      "dimension": "users",
                      "subscriptionId": "SUB-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "origin",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Source system / cloud origin for the usage post (for example `aws`, `amp`, `gcp`, or a CRM name such as `salesforce`)."
          },
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Returns the usage records posted through the v2 endpoint for a subscription.",
        "operationId": "Metering_GetUsagePostV2"
      }
    },
    "/api/subscriptions/getSubscriptionLicenses/{subscriptionId}": {
      "get": {
        "tags": [
          "Entitlements & licenses"
        ],
        "summary": "Get licenses for a subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "status": "Active",
                      "assignedTo": "user@acme.com",
                      "licenseKey": "LIC-ABC-123"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Returns the license records associated with a subscription.",
        "operationId": "Licenses_GetBySubscription"
      }
    },
    "/api/subscriptions/subscriptionactivitylog/{subscriptionId}": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get a subscription activity log",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "event": "ActivationSuccess",
                      "detail": "Subscription activated",
                      "timestamp": "2026-01-15T10:22:00Z"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Returns the lifecycle activity log (status changes, plan changes, usage events) for a subscription.",
        "operationId": "Subscriptions_GetActivityLog"
      }
    },
    "/api/customeraccounts/provideraccount/{customercrmaccountid}": {
      "get": {
        "tags": [
          "Customers"
        ],
        "summary": "Get provider accounts for a customer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "provider": "AWS",
                      "providerAccountId": "123456789012"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "customercrmaccountid",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "customercrmaccountid path parameter."
          }
        ],
        "description": "Returns the cloud-provider accounts linked to a customer.",
        "operationId": "Customers_GetProviderAccounts"
      }
    },
    "/api/subscriptions/subscriptionmeteredusage/{subscriptionId}": {
      "get": {
        "tags": [
          "Metering & usage"
        ],
        "summary": "Get metered usage for a subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "quantity": 5,
                      "dimension": "users",
                      "subscriptionId": "SUB-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify subscription identifier."
          }
        ],
        "description": "Returns the recorded metered-usage history for a subscription.",
        "operationId": "Metering_GetMeteredUsage"
      }
    },
    "/api/offer/private/getawsprivateofferdetails/{privateOfferId}": {
      "get": {
        "tags": [
          "Private offers"
        ],
        "summary": "Get AWS private offer details",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Active",
                    "dealName": "New Deal",
                    "offerURL": "https://aws.amazon.com/marketplace/offer",
                    "offerName": "My AWS Private Offer",
                    "customerName": "Acme Corp",
                    "cloudProvider": "AWS",
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "privateOfferId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Private-offer identifier."
          }
        ],
        "description": "Returns the detail of an AWS Marketplace private offer.",
        "operationId": "PrivateOffers_GetAwsById"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/query": {
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Query co-sell opportunities",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "Data": [
                      {
                        "crmID": "opp_001",
                        "dealSize": 50000,
                        "cloudProvider": "AMP",
                        "opportunityName": "New CoSell",
                        "saasifyRecordId": "SR-001",
                        "partnerAcceptanceStatus": "Pending"
                      }
                    ],
                    "PageSize": 20,
                    "CurrentPageNo": 1,
                    "TotalDataCount": 1
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          }
        ],
        "description": "Returns co-sell opportunities matching a structured query.",
        "operationId": "CoSell_QueryOpportunities",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "filters": {
                  "stage": "Qualified"
                },
                "pageSize": 20,
                "pageNumber": 1
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/deals/{dealreferenceID}/checkprivateofferacceptancestatus": {
      "get": {
        "tags": [
          "Private offers"
        ],
        "summary": "Check private-offer acceptance status",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "status": "Pending",
                    "accepted": false,
                    "dealReferenceID": "DEAL-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "dealreferenceID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Private-offer / deal reference identifier."
          }
        ],
        "description": "Returns whether the customer has accepted the private offer.",
        "operationId": "PrivateOffers_CheckAcceptanceStatus"
      }
    },
    "/api/partnerfunding/v1/providers/{cloudProvider}/referencedata": {
      "get": {
        "tags": [
          "Funding"
        ],
        "summary": "Get funding reference data",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "activityTypes": [
                      "Event",
                      "Campaign"
                    ]
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "cloudProvider",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Cloud marketplace: `AWS`, `AMP` (Microsoft), or `GCP`."
          }
        ],
        "description": "Returns reference data for a cloud provider's funding programs.",
        "operationId": "Funding_GetReferenceData"
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/fundrequest": {
      "post": {
        "tags": [
          "Funding"
        ],
        "summary": "Create a funding request",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "status": "Submitted",
                    "programType": "MDF",
                    "requestAmount": 5000,
                    "saasifyRecordId": "SR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          }
        ],
        "description": "Creates a partner funding request against a funding program.",
        "operationId": "Funding_CreateRequest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "programType": "MDF",
                "requestAmount": 5000
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/agentoffer/getEntitlementOfferRequestList/{offerRequestId}": {
      "get": {
        "tags": [
          "Agent offers"
        ],
        "summary": "List an offer request's entitlements",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "quantity": 10,
                      "offerRequestId": "OR-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "offerRequestId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Agent offer-request identifier."
          }
        ],
        "description": "Returns the entitlements attached to an agent offer request.",
        "operationId": "AgentOffers_GetEntitlementList"
      }
    },
    "/api/lead/selleraccounts/{sellerCode}/crm/{crmName}/{crmLeadId}": {
      "get": {
        "tags": [
          "Leads"
        ],
        "summary": "Get a lead by CRM id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stage": "Qualified",
                    "leadId": "lead_001",
                    "status": "Active",
                    "referenceId": "REF-001",
                    "cloudProvider": "AWS"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "crmName",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "CRM connector name, for example `salesforce` or `hubspot`."
          },
          {
            "in": "path",
            "name": "crmLeadId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Identifier of the lead in the connected CRM."
          }
        ],
        "description": "Returns the lead that maps to a given CRM lead id.",
        "operationId": "Leads_GetByCrmId"
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/fundrequests": {
      "get": {
        "tags": [
          "Funding"
        ],
        "summary": "List funding requests",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "crmID": "opp_001",
                      "status": "Submitted",
                      "programType": "MDF",
                      "requestAmount": 5000,
                      "saasifyRecordId": "SR-001"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          }
        ],
        "description": "Returns the partner funding (MDF / co-op) requests for a seller account.",
        "operationId": "Funding_ListRequests"
      }
    },
    "/api/lead/selleraccounts/{sellerCode}/leads/{saasifyRecordId}/accept": {
      "post": {
        "tags": [
          "Leads"
        ],
        "summary": "Accept a lead opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stage": "Qualified",
                    "leadId": "lead_001",
                    "status": "Accepted",
                    "referenceId": "REF-001",
                    "cloudProvider": "AWS"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Accepts a lead shared with the seller account.",
        "operationId": "Leads_Accept",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "notes": "Accepted"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/lead/selleraccounts/{sellerCode}/leads/{saasifyRecordId}/reject": {
      "post": {
        "tags": [
          "Leads"
        ],
        "summary": "Reject a lead opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "stage": "Qualified",
                    "leadId": "lead_001",
                    "status": "Rejected",
                    "referenceId": "REF-001",
                    "cloudProvider": "AWS"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Rejects a lead shared with the seller account.",
        "operationId": "Leads_Reject",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "reason": "Not qualified"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/additionaldetail/{SubscriptionAdditionalDetailID}": {
      "delete": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete a custom subscription detail",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "deleted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "SubscriptionAdditionalDetailID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SubscriptionAdditionalDetailID path parameter."
          }
        ],
        "description": "Deletes a custom detail record by its identifier.",
        "operationId": "Subscriptions_DeleteAdditionalDetail"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/crmid/{crmID}": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Get a co-sell opportunity by CRM id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 50000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Pending"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "crmID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Identifier of the record in the connected CRM."
          }
        ],
        "description": "Returns a co-sell opportunity by the identifier of the record in the connected CRM.",
        "operationId": "CoSell_GetByCrmId"
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/partnerfundingprograms": {
      "get": {
        "tags": [
          "Funding"
        ],
        "summary": "List funding programs",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "name": "Marketing Development Funds",
                      "programType": "MDF"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          }
        ],
        "description": "Returns the partner funding programs available to a seller account.",
        "operationId": "Funding_ListPrograms"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/{saasifyRecordId}": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Get a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 50000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Pending"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Returns a co-sell opportunity by its SaaSify record id.",
        "operationId": "CoSell_GetOpportunity"
      },
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Update a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 90000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Pending"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Updates an existing co-sell opportunity.",
        "operationId": "CoSell_UpdateOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "stage": "Qualified",
                "dealSize": 90000
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Delete a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "deleted": true
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Deletes a co-sell opportunity.",
        "operationId": "CoSell_DeleteOpportunity"
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/fundrequests/crmid/{crmID}": {
      "get": {
        "tags": [
          "Funding"
        ],
        "summary": "Get a funding request by CRM id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "status": "Submitted",
                    "programType": "MDF",
                    "requestAmount": 5000,
                    "saasifyRecordId": "SR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "crmID",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Identifier of the record in the connected CRM."
          }
        ],
        "description": "Returns the funding request that maps to a given CRM record id.",
        "operationId": "Funding_GetRequestByCrmId"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/{saasifyRecordId}/logs": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Get a co-sell opportunity's logs",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "event": "CoSellPartnerReferralSubmitted",
                      "timestamp": "2026-02-01T09:00:00Z"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Returns the sync and activity logs for a co-sell opportunity.",
        "operationId": "CoSell_GetLogs"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/{saasifyRecordId}/accept": {
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Accept a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 50000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Accepted"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Accepts a co-sell opportunity shared by the cloud provider.",
        "operationId": "CoSell_AcceptOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "notes": "Accepted"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/{saasifyRecordId}/assign": {
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Assign a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "assignedTo": "rep@acme.com",
                    "saasifyRecordId": "SR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Assigns a co-sell opportunity to a team member.",
        "operationId": "CoSell_AssignOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "assignedTo": "rep@acme.com"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/{saasifyRecordId}/reject": {
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Reject a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 50000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Rejected"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Rejects a co-sell opportunity shared by the cloud provider.",
        "operationId": "CoSell_RejectOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "reason": "Not a fit"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/fundrequests/{saasifyRecordId}": {
      "get": {
        "tags": [
          "Funding"
        ],
        "summary": "Get a funding request",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "status": "Submitted",
                    "programType": "MDF",
                    "requestAmount": 5000,
                    "saasifyRecordId": "SR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Returns a single partner funding request.",
        "operationId": "Funding_GetRequest"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/{saasifyRecordId}/associateoffer": {
      "post": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Associate an offer with a co-sell opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "offerID": "OFFER-001",
                    "saasifyRecordId": "SR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Links a private offer / offer to a co-sell opportunity.",
        "operationId": "CoSell_AssociateOffer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "offerID": "OFFER-001"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/fundrequests/{saasifyRecordId}/history": {
      "get": {
        "tags": [
          "Funding"
        ],
        "summary": "Get a funding request's history",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": [
                    {
                      "status": "Submitted",
                      "timestamp": "2026-02-01T00:00:00Z"
                    }
                  ],
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Returns the status history of a partner funding request.",
        "operationId": "Funding_GetRequestHistory"
      }
    },
    "/api/cosell/v3/selleraccounts/{sellerCode}/opportunities/cloudcosellidentifier/{cloudCosellIdentifier}": {
      "get": {
        "tags": [
          "Co-sell"
        ],
        "summary": "Get a co-sell opportunity by cloud id",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "crmID": "opp_001",
                    "dealSize": 50000,
                    "cloudProvider": "AMP",
                    "opportunityName": "New CoSell",
                    "saasifyRecordId": "SR-001",
                    "partnerAcceptanceStatus": "Pending"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "cloudCosellIdentifier",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "cloudCosellIdentifier path parameter."
          }
        ],
        "description": "Returns a co-sell opportunity by the cloud provider's co-sell identifier.",
        "operationId": "CoSell_GetByCloudId"
      }
    },
    "/api/partnerfunding/v1/selleraccounts/{sellerCode}/fundrequests/{saasifyRecordId}/pfassociatepartneropportunity": {
      "patch": {
        "tags": [
          "Funding"
        ],
        "summary": "Associate a funding request with an opportunity",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                },
                "example": {
                  "Data": {
                    "opportunityId": "opp_001",
                    "saasifyRecordId": "SR-001"
                  },
                  "Status": "SUCCESS",
                  "StatusCode": 200,
                  "ErrorDetail": null,
                  "ErrorMessage": "",
                  "OperationType": null,
                  "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
                }
              }
            },
            "description": "Success. The business payload is returned in the `Data` field of the standard envelope."
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "sellerCode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Seller account code that selects the tenant and marketplace seller context."
          },
          {
            "in": "path",
            "name": "saasifyRecordId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "SaaSify record identifier for the resource."
          }
        ],
        "description": "Links a partner funding request to a partner opportunity.",
        "operationId": "Funding_AssociateOpportunity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "opportunityId": "opp_001"
              }
            }
          },
          "required": true
        }
      }
    }
  },
  "openapi": "3.1.0",
  "servers": [
    {
      "url": "https://api-demo.saasify.ai",
      "description": "Demo (use for testing)"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "schemas": {
      "Lead": {
        "type": "object",
        "properties": {
          "stage": {
            "type": "string"
          },
          "leadId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "referenceId": {
            "type": "string"
          },
          "cloudProvider": {
            "enum": [
              "AWS",
              "AMP",
              "GCP"
            ],
            "type": "string"
          }
        },
        "description": "A marketplace / co-sell lead."
      },
      "Plan": {
        "type": "object",
        "properties": {
          "price": {
            "type": "number"
          },
          "planID": {
            "type": "string"
          },
          "offerID": {
            "type": "string"
          },
          "planName": {
            "type": "string"
          },
          "planProviderID": {
            "type": "string"
          }
        },
        "description": "A plan belonging to an offer."
      },
      "Offer": {
        "type": "object",
        "properties": {
          "offerID": {
            "type": "string"
          },
          "offerName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "description": "A marketplace offer."
      },
      "CoSell": {
        "type": "object",
        "properties": {
          "crmID": {
            "type": "string"
          },
          "dealSize": {
            "type": "number"
          },
          "cloudProvider": {
            "enum": [
              "AWS",
              "AMP",
              "GCP"
            ],
            "type": "string"
          },
          "opportunityName": {
            "type": "string"
          },
          "saasifyRecordId": {
            "type": "string"
          },
          "partnerAcceptanceStatus": {
            "type": "string"
          }
        },
        "description": "A co-sell opportunity."
      },
      "Customer": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string"
          },
          "customerId": {
            "type": "string"
          }
        },
        "description": "A customer record."
      },
      "Envelope": {
        "type": "object",
        "required": [
          "Status",
          "Data"
        ],
        "properties": {
          "Data": {
            "description": "The business payload. Shape depends on the operation; occasionally a JSON-encoded string."
          },
          "Status": {
            "enum": [
              "SUCCESS",
              "ERROR"
            ],
            "type": "string",
            "description": "Business outcome. Check this, not just the HTTP code."
          },
          "StatusCode": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Optional numeric status code."
          },
          "ErrorDetail": {
            "type": [
              "string",
              "object",
              "array",
              "null"
            ],
            "description": "Raw error detail when Status is ERROR. Not a stable contract."
          },
          "ErrorMessage": {
            "type": "string",
            "description": "Human-readable error message when Status is ERROR."
          },
          "OperationType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reserved; usually null."
          },
          "RequestCorrelationID": {
            "type": "string",
            "description": "Correlation id for the request, useful for support."
          }
        },
        "description": "Standard response envelope returned by every endpoint except the token endpoint."
      },
      "Entitlement": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "resourceId": {
            "type": "string"
          },
          "permissionLevel": {
            "type": "string"
          }
        },
        "description": "A user/seat entitlement."
      },
      "UsageRecord": {
        "type": "object",
        "properties": {
          "quantity": {
            "type": "number"
          },
          "dimension": {
            "type": "string",
            "description": "Metered dimension name."
          },
          "subscriptionId": {
            "type": "string"
          }
        },
        "description": "A metered-usage record."
      },
      "PrivateOffer": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "dealName": {
            "type": "string"
          },
          "offerURL": {
            "type": "string",
            "format": "uri"
          },
          "offerName": {
            "type": "string"
          },
          "customerName": {
            "type": "string"
          },
          "cloudProvider": {
            "enum": [
              "AWS",
              "AMP",
              "GCP"
            ],
            "type": "string"
          },
          "dealReferenceID": {
            "type": "string"
          }
        },
        "description": "A private offer / deal."
      },
      "Subscription": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "e.g. Active, Suspended, Unsubscribed, PendingActivation."
          },
          "quantity": {
            "type": "integer"
          },
          "customerId": {
            "type": "string"
          },
          "cloudProvider": {
            "enum": [
              "AWS",
              "AMP",
              "GCP"
            ],
            "type": "string"
          },
          "subscriptionId": {
            "type": "string"
          }
        },
        "description": "A marketplace subscription."
      },
      "TokenResponse": {
        "type": "object",
        "required": [
          "access_token",
          "token_type"
        ],
        "properties": {
          "userName": {
            "type": "string"
          },
          "expires_in": {
            "type": "integer",
            "description": "Seconds until expiry (about 1440 minutes)."
          },
          "onBehalfOf": {
            "type": "string"
          },
          "token_type": {
            "type": "string",
            "example": "bearer"
          },
          "access_token": {
            "type": "string",
            "description": "Opaque bearer token."
          },
          "isTenantUser": {
            "type": "string"
          },
          "refresh_token": {
            "type": "string"
          }
        },
        "description": "OAuth token response from POST /api/token."
      },
      "PagedDataResult": {
        "type": "object",
        "properties": {
          "Data": {
            "type": "array",
            "items": {},
            "description": "The page of records."
          },
          "PageSize": {
            "type": "integer"
          },
          "CurrentPageNo": {
            "type": "integer"
          },
          "TotalDataCount": {
            "type": "integer"
          }
        },
        "description": "Generic paged result found inside `Data` for most list endpoints."
      },
      "FundingApplication": {
        "type": "object",
        "properties": {
          "crmID": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "programType": {
            "type": "string"
          },
          "requestAmount": {
            "type": "number"
          },
          "saasifyRecordId": {
            "type": "string"
          }
        },
        "description": "A partner funding (MDF / co-op) request."
      }
    },
    "responses": {
      "ErrorResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            },
            "example": {
              "Data": null,
              "Status": "ERROR",
              "StatusCode": 400,
              "ErrorDetail": "Validation failed for field 'subscriptionId'.",
              "ErrorMessage": "One or more validation errors occurred.",
              "OperationType": null,
              "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"
            }
          }
        },
        "description": "Error. Note that many business errors are also returned as HTTP 200 with `Status: \"ERROR\"` in the envelope."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Opaque bearer token obtained from `POST /api/token` (password grant). Send as `Authorization: Bearer <token>`."
      }
    }
  }
}