{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/venturu-com/json-schema/venturu-com-put-listing-request-schema-schema.json",
  "title": "putListingRequestSchema",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/venturu-com-openapi.json#/components/schemas/putListingRequestSchema",
  "type": "object",
  "properties": {
    "brokerExternalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the broker this listing belongs to (from your system). Use this if the broker already exists."
    },
    "broker": {
      "allOf": [
        {
          "$ref": "#/$defs/inlineBrokerSchema"
        }
      ],
      "description": "A complete broker object to create or update along with the listing. Use this to create both broker and listing in a single call."
    },
    "status": {
      "type": "object"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "A short title for the listing. Note that this title will not be used publicly."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "A detailed description of the listing. Note that we may optimize the description based on the listing's overall parameters."
    },
    "businessType": {
      "type": "string",
      "description": "The type of business being listed (e.g., 'Restaurant', etc.)."
    },
    "establishedAt": {
      "type": [
        "object",
        "null"
      ],
      "description": "The date when the business was established (ISO 8601 format)."
    },
    "location": {
      "type": "object",
      "properties": {
        "streetAddress1": {
          "type": [
            "string",
            "null"
          ],
          "description": "The primary street address of the business."
        },
        "streetAddress2": {
          "type": [
            "string",
            "null"
          ],
          "description": "The secondary street address of the business."
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "The city where the business is located."
        },
        "state": {
          "type": [
            "string",
            "null"
          ],
          "description": "The state where the business is located. It is recommended that this is specified as the full name of the state."
        },
        "postalCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The postal/ZIP code of the business."
        },
        "country": {
          "type": "string",
          "description": "The country where the business is located. It is recommended that this is specified as a two-letter ISO country code."
        },
        "visibility": {
          "type": "object"
        }
      },
      "required": [
        "country",
        "visibility"
      ],
      "description": "Location information about the business."
    },
    "financials": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "askingPrice": {
          "type": [
            "number",
            "null"
          ],
          "description": "The asking price of the listing in dollars."
        },
        "revenue": {
          "type": [
            "number",
            "null"
          ],
          "description": "The annual revenue of the business in dollars."
        },
        "profit": {
          "type": [
            "number",
            "null"
          ],
          "description": "The annual profit of the business in dollars."
        },
        "sde": {
          "type": [
            "number",
            "null"
          ],
          "description": "The Seller's Discretionary Earnings (SDE) of the business in dollars."
        },
        "inventory": {
          "type": [
            "number",
            "null"
          ],
          "description": "The value of the inventory included in the sale in dollars."
        },
        "ffande": {
          "type": [
            "number",
            "null"
          ],
          "description": "The value of furniture, fixtures, and equipment (FF&E) included in the sale in dollars."
        }
      },
      "default": {},
      "description": "Financial details of the listing."
    },
    "training": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "available": {
          "type": "boolean",
          "description": "Indicates if training is provided to the new business owner."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "A description of the training provided."
        },
        "duration": {
          "type": [
            "string",
            "null"
          ],
          "description": "The duration of the training (e.g., '2 Weeks')."
        },
        "cost": {
          "type": [
            "number",
            "null"
          ],
          "description": "The cost of the training in dollars. If not provided or zero, training is assumed to be free."
        }
      },
      "required": [
        "available"
      ],
      "description": "Details about training provided to the new business owner."
    },
    "property": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "propertyKind": {
          "type": "object"
        },
        "areaSqft": {
          "type": [
            "number",
            "null"
          ],
          "description": "The area of the property in square feet."
        },
        "rentData": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "amount": {
              "type": [
                "number",
                "null"
              ],
              "description": "The rent amount in dollars."
            },
            "frequency": {
              "type": "object"
            },
            "leaseRenewable": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Whether or not the lease is renewable."
            },
            "leaseNegotiable": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Whether or not the lease terms are negotiable."
            },
            "leaseExpiration": {
              "type": [
                "object",
                "null"
              ],
              "description": "The expiration date of the lease (ISO 8601 format)."
            },
            "leaseDetails": {
              "type": [
                "string",
                "null"
              ],
              "description": "Additional details about the lease."
            }
          },
          "required": [
            "frequency"
          ],
          "description": "Information about the rented property. Recommended to provide if propertyKind is 'RENTED'."
        },
        "ownedData": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "propertyIncludedInPrice": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates if the property is included in the listing's asking price."
            },
            "propertyAskingPrice": {
              "type": [
                "number",
                "null"
              ],
              "description": "The asking price for the property in dollars, if sold separately."
            },
            "propertyDetails": {
              "type": [
                "string",
                "null"
              ],
              "description": "Additional details about the owned property."
            }
          },
          "description": "Information about the owned property. Recommended to provide if propertyKind is 'OWNED'."
        }
      },
      "required": [
        "propertyKind"
      ],
      "description": "Information about a business' property."
    },
    "financing": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "financingAvailable": {
          "type": "boolean",
          "description": "Indicates if buyer financing options are available for the listing."
        },
        "sbaPrequalified": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates if the business is prequalified for SBA loans."
        },
        "minimumDownPayment": {
          "type": [
            "number",
            "null"
          ],
          "description": "The minimum down payment required from the buyer in dollars."
        },
        "buyerCanAssumeLoan": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates if the buyer can assume existing loans on the business."
        }
      },
      "required": [
        "financingAvailable"
      ],
      "description": "Details about financing options available for the listing."
    },
    "photos": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL of the photo."
          },
          "sortKey": {
            "type": "number",
            "description": "The sort order of the photo."
          }
        },
        "required": [
          "url",
          "sortKey"
        ],
        "description": "A photo associated with the listing."
      },
      "description": "A list of photos associated with the listing."
    }
  },
  "required": [
    "status",
    "businessType",
    "location"
  ],
  "$defs": {
    "inlineBrokerSchema": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The full name of the broker."
        },
        "email": {
          "type": "string",
          "description": "The email address of the broker."
        },
        "phone": {
          "type": [
            "string",
            "null"
          ],
          "description": "The phone number of the broker."
        },
        "avatarUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "A URL to the broker's profile picture."
        },
        "forwardingEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "If leads should be forwarded to a specific email address (i.e. in case of CRMs), this value can be specified."
        },
        "profile": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "bio": {
              "type": [
                "string",
                "null"
              ],
              "description": "A short biography of the broker."
            },
            "website": {
              "type": [
                "string",
                "null"
              ],
              "description": "The broker's personal or professional website."
            },
            "linkedInUrl": {
              "type": [
                "string",
                "null"
              ],
              "description": "The broker's LinkedIn profile URL."
            }
          },
          "description": "Additional profile information about the broker."
        },
        "licenses": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "licenseNumber": {
                "type": "string",
                "description": "The license number of the broker."
              },
              "state": {
                "type": "string",
                "description": "The state where the license is valid. It is recommended that this is specified as the full name of the state."
              },
              "country": {
                "type": "string",
                "description": "The country where the license is valid. It is recommended that this is specified as a two-letter ISO country code."
              }
            },
            "required": [
              "licenseNumber",
              "state",
              "country"
            ],
            "description": "A broker license."
          },
          "description": "A list of licenses held by the broker."
        },
        "serviceAreas": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "neighborhood": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The neighborhood served by the broker."
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The city served by the broker."
              },
              "county": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The county served by the broker."
              },
              "state": {
                "type": "string",
                "description": "The state served by the broker. It is recommended that this is specified as the full name of the state."
              },
              "country": {
                "type": "string",
                "description": "The country served by the broker. It is recommended that this is specified as a two-letter ISO country code."
              }
            },
            "required": [
              "state",
              "country"
            ],
            "description": "A service area served by the broker. The highest service area level that needs to be specified is 'state'."
          },
          "description": "A list of service areas covered by the broker."
        }
      },
      "required": [
        "name",
        "email"
      ]
    }
  }
}